Topic: Shopping Cart / Purchase URL Error [SOLVED]

Hi,

To add a shopping cart button in my gallery, i have modified the config.xml file to add Purchase URL. However, when i open the gallery, i get an error - Juicebox Error: Config XML file not found.

When i remove the Purchase URL, the gallery works fine.

Could you please help?

<image imageURL="images/kashmir-highlights.jpg"
    thumbURL="thumbs/kashmir-highlights.jpg"
    purchaseURL="http://www.amazon.com"
    linkURL="images/kashmir-highlights.jpg"
    linkTarget="_blank"
    sourcePath="C:\Users\Aarush\SkyDrive\Augmented Reality\Veena World\India Tours\kashmir-highlights.jpg">
    <title><![CDATA[kashmir-highlights]]></title>
    <caption><![CDATA[]]></caption>
  </image>

Re: Shopping Cart / Purchase URL Error [SOLVED]

It sounds like there may be a syntax error somewhere within your gallery's XML file.
The code you posted looks OK and I have tried it in a test gallery of my own and the gallery displays and functions fine so the error may lie elsewhere.
Try opening your gallery's XML file directly in your browser to see if the browser gives you any indication as to what might be wrong with it.
Otherwise, please post the URL to your gallery so that I can take a look and investigate further.

Re: Shopping Cart / Purchase URL Error [SOLVED]

The URl of my test gallery is - http://119.9.79.197/slideshows/test-sli … /test.html

As mentioned, the gallery opens just fine in the browser when i remove the PurchaseURL from the code.

Re: Shopping Cart / Purchase URL Error [SOLVED]

I don't know if it can help but the URL http://119.9.79.197/slideshows/test-sli … config.xml doesn't display an XML file...

Re: Shopping Cart / Purchase URL Error [SOLVED]

Thanks. Basically it doesn't like the full Amazon purchase URL. The gallery works fine when i replace the link only with http://www.amazon.com

Is there a solution to it?

Re: Shopping Cart / Purchase URL Error [SOLVED]

Thank you for providing the URL to your gallery.
Your purchaseURL contains reserved characters which are currently breaking the syntax of the XML file and need to be escaped. Please see this web page for further details.
Change all & characters in the query string part of your purchaseURL (after the ? character) to &amp; as follows:

purchaseURL="http://www.amazon.in/dp/B00NEFFWF6?pf_rd_p=528846107&pf_rd_s=center-1&pf_rd_t=1401&pf_rd_i=1000826923&pf_rd_m=A1VBAL9TL5WCBF&pf_rd_r=1RQNS2D5ZXCG30PE45M5"

... to:

purchaseURL="http://www.amazon.in/dp/B00NEFFWF6?pf_rd_p=528846107&amp;pf_rd_s=center-1&amp;pf_rd_t=1401&amp;pf_rd_i=1000826923&amp;pf_rd_m=A1VBAL9TL5WCBF&amp;pf_rd_r=1RQNS2D5ZXCG30PE45M5"

Re: Shopping Cart / Purchase URL Error [SOLVED]

Awesome. It works fine now.

Many thanks for your support :)