Author: max
Date: 2008-03-25 15:24:20 -0700 (Tue, 25 Mar 2008)
New Revision: 8405

Modified:
   openlaszlo/trunk/demos/amazon/shoppinglist.lzx
Log:
+ Shopping cart, list should use list price also

Modified: openlaszlo/trunk/demos/amazon/shoppinglist.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/shoppinglist.lzx      2008-03-25 22:08:01 UTC 
(rev 8404)
+++ openlaszlo/trunk/demos/amazon/shoppinglist.lzx      2008-03-25 22:24:20 UTC 
(rev 8405)
@@ -27,7 +27,7 @@
                     <view fontsize="12" fontstyle="bold">
                         <simplelayout axis="x" spacing="4"/>
                         <text>Our Price:</text>
-                        <text 
datapath="OfferSummary/LowestNewPrice/FormattedPrice/text()" 
width="${parent.width}"/>
+                        <text 
datapath="ItemAttributes/ListPrice/FormattedPrice/text()" 
width="${parent.width}"/>
                     </view>
                 </view>
 
@@ -51,12 +51,12 @@
         <method name="addItem" args="dpath">
             this.panel_to_nudge.nudge();
 
-            this.setAttribute("total", 
total+parseFloat(dpath.xpathQuery("OfferSummary/LowestNewPrice/FormattedPrice/text()").substring(1)));
+            this.setAttribute("total", 
total+parseFloat(dpath.xpathQuery("ItemAttributes/ListPrice/FormattedPrice/text()").substring(1)));
             datapath.addNodeFromPointer(dpath);
         </method>
 
         <method name="removeItem" args="dpath">
-            this.setAttribute("total", 
total-parseFloat(dpath.xpathQuery("OfferSummary/LowestNewPrice/FormattedPrice/text()").substring(1)));
+            this.setAttribute("total", 
total-parseFloat(dpath.xpathQuery("ItemAttributes/ListPrice/FormattedPrice/text()").substring(1)));
             dpath.deleteNode();
         </method>
 


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to