westminster86 Posted January 3, 2008 Share Posted January 3, 2008 Hi there... having a little trouble with one of my scripts I have an add-to-cart button which adds the product selected by the user. In this particular instance its an item of clothing. However im finding that when the item is added to the cart its not adding the size that the user has opted for. I know why this... the button im using is not submitting the form... when i chnage it to do so... then it does not at items to the cart but just the sizes.. So my problem is how to i make one button add to the cart as well as submit form values... many thanks Quote Link to comment Share on other sites More sharing options...
chronister Posted January 3, 2008 Share Posted January 3, 2008 make your code react to the form being submitted. Don't try and make the add to cart a javascript function and the form submitting a PHP script. Make the form submit and add to the cart at the time the submit button is pressed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.