Jump to content

Displaying Combination Quantities on Product Page (with AJAX refresh)


Recommended Posts

Hi,

I was not able to find a solution for this problem :

I would like to display how many items remaining for each combination. When a combination is choosen, I want to see the remaining quantity for that combination. It must refresh with AJAX when we select another combination. I want the quantity to be displayed just above the "Add to cart" button.

Please explain how to do this, in details please. Which file to modify, etc. I am not an expert in web designing.

 

Thank you!

Link to comment
Share on other sites

Are you using 1.6? If so it's not too complex, if you edit product.js (theme folder/js) you can look for the findCombination method, and print out the combination array to see what the quantity value is (it might as well be "quantity", cannot remember off the top of my head), then you can just replace the value in any html block you like, much like it replaces the price

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...