9 / 9
Mar 2011

Hi



I am putting e-junkie add to cart buttons into my website www.orangenights.co.uk



The items which dont require a variant (i.e size, colour etc), the buttons work perfectly.



However some of my items require a variant. When I test out the buttons and the variant selections, the lighbox doesnt load up at all. Instead, the browser refreshes (both in IE and Firefox).



The web page I am testing is http://www.orangenights.co.uk/pvc.htm



If anyone can help resolve this issue, it would be appreciated. I have looked at my code (note, I am no expert!), and have not found any conflicting javascript code, maybe I am missing something???



Anyone help me please???



Darren

  • created

    Oct '09
  • last reply

    Mar '11
  • 8

    replies

  • 1.1k

    views

  • 4

    users

  • 8

    links

Darren,



I checked out your site and here is the button code you have for your PVC 3 Piece Set product:



form action="https://www.e-junkie.com/ecom/gb.php?c=cart&i=350932&cl=87018&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

<input type="hidden" name="on0" value="Size"/>

Size:<br/>

<select name="os0">

<option value="32" Bust">32" Bust</option>

<option value="34" Bust">34" Bust</option>

<option value="36" Bust">36" Bust</option>

<option value="38" Bust">38" Bust</option>

<option value="40" Bust">40" Bust</option>

<option value="42" Bust">42" Bust</option>

</select>

<br/>

<input type="image" src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" border="0" alt="Add to Cart" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this.parentNode);"/>

</form>



I then checked out your account in our system and here is the button code directly from your E-junkie account. Notice there is a slight difference in the code for the bust size. Try placing this code on your page to see if that fixes the issue:



<form action="https://www.e-junkie.com/ecom/gb.php?c=cart&i=350932&cl=87018&ejc=2" target="ejejc" method="POST" accept-charset="UTF-8">

<input type="hidden" name="on0" value="Size"/>

Size:<br/>

<select name="os0">

<option value="32" Bust">32" Bust</option>

<option value="34" Bust">34" Bust</option>

<option value="36" Bust">36" Bust</option>

<option value="38" Bust">38" Bust</option>

<option value="40" Bust">40" Bust</option>

<option value="42" Bust">42" Bust</option>

</select>

<br/>

<input type="image" src="http://www.e-junkie.com/ej/ejadd_to_cart.gif" border="0" alt="Add to Cart" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this.parentNode);"/>

</form>

Hi



Just wanted to thank the e-junkie team in solving my cart problem. www.orangenights.co.uk is now up and running properly. Better than ever!

The problem was that I hadnt deleted my old code. I had deleted the old shopping cart information, but did not delete the old form code ... <form name="order">



Once this was taken away, the light box displayed and the shopping cart works perfectly!



Thanks again e-junkie team!

1 year later

ok, i dont know if this is where i ask a question or not. I have a Joomla website template and the first couple products i added that have variations the shopping cart worked but now when i add new products with variations the shopping cart doesnt work. it just refreshes the page. i read on a different post about how the persons add to cart button wasnt working because she was using codes from her free trial and not her actual subscription (? if i understood it correctly-i'm new to all this). but i dont know how to even tell the difference. What am i doing wrong? i want my variations to work. instead im currently adding carts for each variant but i dont like that at all. pls help. thank you.

Could you provide the URL of your page where the problem is happening, so we could examine that to see what might be happening there?



You do have an active subscription, so the issue about using button codes from an expired trial period without having started a subscription would not apply to your situation.

The button code in your page does not appear to match what you would have obtained from your E-junkie Seller Admin; the code in your page is missing various parts of our original code that allow our cart to work properly in your page.



You will need to copy the button code provided in Seller Admin and find some way of pasting that directly into the raw HTML source code of your page and saving the page such that our button code is retained as-is, exactly as originally provided. If your page editor provides a way to switch between a visual-styled/WYSISYG view and HTML code view, use the code view to paste your code and then try saving the page directly from there.



Also, make sure you include one complete block of your View Cart code from Seller Admin on every single page that has any number of Add to Carts. This may work best if you just add the View Cart code to a common template area such as a header, footer or sidebar.

Yes, in e-junkie on the "add cart" button i 'select all', 'copy' and then i go directly into the editor on my page and click 'paste'. And yes I have recognized that after i "save" my page and then go back into the editor i can see that the original code has changed. But I dont know why the code is being changed when i "save". I've asked the guy who set up my Joomla template website about it and he claims the process works correctly when he adds a cart into my website from his computer but says he doesnt know why it wouldnt be working from my computer. It worked when I added carts during my trial period. Do you have any other ideas? This is very frustrating to me. Thank you.