[Laszlo-checkins] r9487 - openlaszlo/trunk/demos/amazon

jcrowley@openlaszlo.org jcrowley at openlaszlo.org
Thu Jun 5 19:22:45 PDT 2008


Author: jcrowley
Date: 2008-06-05 19:22:25 -0700 (Thu, 05 Jun 2008)
New Revision: 9487

Modified:
   openlaszlo/trunk/demos/amazon/amazon.lzx
   openlaszlo/trunk/demos/amazon/recommendation.lzx
Log:
Change 20080604-laszlo-6 by laszlo at T43-L3XEXMW on 2008-06-04 22:09:15 EDT
    in /home/laszlo/src/svn/openlaszlo/trunk-3
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Use Amazon's price in the demo, not LowestNewPrice

New Features:

Bugs Fixed: LPP-5673 - Use Amazon's price in the demo, not LowestNewPrice

Technical Reviewer: max
QA Reviewer: phil
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Changed data request per suggestion in the bug to receive
    more comprehensive data which includes the Amazon price.  Since
    Amazon seems to always list itself as the first Offer in the
    OfferFull data, we're now using the correct Amazon price instead
    of the lowest price (LowestNewPrice), which may in many cases
    not be Amazon's price but that of a Marketplace seller.

Tests: It's difficult to really tell what's changed in the demo, since
    I think the lowest price for our items was from Amazon already.  I
    can't really think of a good way to test this one.
    
    Perhaps just compare the prices with those offered by Amazon in the
    XML generated by the script at this URL:
    
    http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&SubscriptionId=1ZJXY3M2VMFG0W1ZF1R2&AssociateTag=webservices&Operation=ItemLookup&ItemId=B00005YW4H,B00006IX86,B000005J56,B00006AAJF,B0002RUPH4,B00006IX6E,B000069HKH,B00006JP29,B000000QFU,B000002L2Z&ResponseGroup=ItemAttributes,OfferFull,Images



Modified: openlaszlo/trunk/demos/amazon/amazon.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/amazon.lzx	2008-06-06 01:08:36 UTC (rev 9486)
+++ openlaszlo/trunk/demos/amazon/amazon.lzx	2008-06-06 02:22:25 UTC (rev 9487)
@@ -139,7 +139,7 @@
                                     <![CDATA[
                                         infoLoader.show();
                                         var asin = parent.datapath.xpathQuery("ASIN/text()");
-                                        var url = canvas.baseURL + "&Operation=ItemLookup&ItemId=" + asin + "&ResponseGroup=ItemAttributes,OfferSummary,Images,Tracks,Reviews,EditorialReview";
+                                        var url = canvas.baseURL + "&Operation=ItemLookup&ItemId=" + asin + "&ResponseGroup=ItemAttributes,OfferFull,Images,Tracks,Reviews,EditorialReview";
                                         dsAsin.setSrc(url);
                                         dsAsin.doRequest();
                                     ]]>
@@ -213,7 +213,7 @@
                             <text y="55" fgcolor="#666699">Release Date:</text><text x="90" y="55" datapath="ItemAttributes/ReleaseDate/text()" width="${parent.width}" fgcolor="#666699"/>
                             <text y="70" fgcolor="#666699">Availability:</text><text x="90" y="70" datapath="Availability/text()" width="${parent.width}" fgcolor="#666699"/>
                             <text y="87" fgcolor="#666699" fontsize="14">List Price:</text><text x="90" y="87" datapath="ItemAttributes/ListPrice/FormattedPrice/text()" width="${parent.width}" fontsize="14" fgcolor="#666699"/>
-                            <text y="105" fgcolor="#666699" fontstyle="bold" fontsize="16">Our Price:</text><text x="90" y="105" datapath="OfferSummary/LowestNewPrice/FormattedPrice/text()" width="${parent.width}" fontstyle="bold" fontsize="16" fgcolor="#666699"/>
+                            <text y="105" fgcolor="#666699" fontstyle="bold" fontsize="16">Our Price:</text><text x="90" y="105" datapath="Offers/Offer[1]/OfferListing/Price/FormattedPrice/text()" width="${parent.width}" fontstyle="bold" fontsize="16" fgcolor="#666699"/>
                             <mouseview resource="cart_butt" x="214" y="105" width="54" height="18"
                                 onclick="cart.addItem(parent.parent.parent.datapath)"/>
                             <mouseview resource="wish_butt" x="270" y="105"  width="54" height="18"

Modified: openlaszlo/trunk/demos/amazon/recommendation.lzx
===================================================================
--- openlaszlo/trunk/demos/amazon/recommendation.lzx	2008-06-06 01:08:36 UTC (rev 9486)
+++ openlaszlo/trunk/demos/amazon/recommendation.lzx	2008-06-06 02:22:25 UTC (rev 9487)
@@ -58,7 +58,7 @@
             <![CDATA[
                 infoLoader.show();
                 var asin = this.datapath.xpathQuery("ASIN/text()");
-                var url = canvas.baseURL + "&Operation=ItemLookup&ItemId=" + asin + "&ResponseGroup=ItemAttributes,OfferSummary,Images,Tracks,Reviews,EditorialReview";
+                var url = canvas.baseURL + "&Operation=ItemLookup&ItemId=" + asin + "&ResponseGroup=ItemAttributes,OfferFull,Images,Tracks,Reviews,EditorialReview";
                 dsAsin.setSrc(url);
                 dsAsin.doRequest();
             ]]>
@@ -74,7 +74,7 @@
 
         <method name="getRecommendations">
             <![CDATA[
-                var url = canvas.baseURL + "&Operation=ItemLookup&ItemId=B00005YW4H,B00006IX86,B000005J56,B00006AAJF,B0002RUPH4,B00006IX6E,B000069HKH,B00006JP29,B000000QFU,B000002L2Z&ResponseGroup=ItemAttributes,OfferSummary,Images";
+                var url = canvas.baseURL + "&Operation=ItemLookup&ItemId=B00005YW4H,B00006IX86,B000005J56,B00006AAJF,B0002RUPH4,B00006IX6E,B000069HKH,B00006JP29,B000000QFU,B000002L2Z&ResponseGroup=ItemAttributes,OfferFull,Images";
                 dsRecommend.setSrc(url);
                 dsRecommend.doRequest();
             ]]>



More information about the Laszlo-checkins mailing list