Jump to content

Addi +/- buttons for quantity


Recommended Posts

If you're looking at the source code, you can see the following snippet (for the + button):

 

<img src="path/plus.gif" alt="Increase" onclick="this.parentNode.getElementsByTagName('input')[0].value = (+this.parentNode.getElementsByTagName('input')[0].value + 1)" />

 

So it's quite simple: in the file shop/themes/yourTheme/product.tpl add the graphic of your choice and bind some JavaScript code on it. When the user clicks on the graphic, increment the value of the quantity input field.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...