View Single Post
  #11  
Old 09-26-2012, 12:12 AM
 
xcartukguy xcartukguy is offline
 

Member
  
Join Date: May 2012
Posts: 17
 

Default Re: ajax add to cart button

Quote:
Originally Posted by Brett Forsyth
I am having a similar issue. What class where you missing?

Code:
<div class="details"> <form name="formname"> <input type="submit" onclick="!ajax.widgets.add2cart(formname)" value="Buy" /> OR <a href="#" onclick="!ajax.widgets.add2cart(formname)">Buy</a> </form> </div>

That worked for me but the button only works once; I need to find out how to reset it.

I suggest the input though so you've got a fallback for non-javascript useability.
__________________
X-Cart 4.3.1
X-Cart 4.5.4
Reply With Quote