yesdev Posted March 11, 2014 Share Posted March 11, 2014 (edited) I'm having a fairly unique issue with the cart logic at the moment. I've added in a couple of extra variables to be passed from the product page to the cart. When a customer adds in a second variant of the same product into the cart it's retaining the old values & duplicating when it should be seen as a separate product attribute variant I've tried a JQuery form reset of the product page and the blockcart-json.tpl file is still reporting the earlier values. e.g. Customer enters a value of 1200 for one variant of product. Adds to cart fine. Customer then enters a value of 925 for 2nd variant of same product. Instead of it being seen as a separate variant, it ends up being seen as a duplicate of 1st product added. Any ideas on how to fix this? - NVM fixed it Edited March 12, 2014 by yesdev (see edit history) Link to comment Share on other sites More sharing options...
hanny137 Posted March 4, 2016 Share Posted March 4, 2016 How did you fix this? Running into a similar issue. in the future - please post how you fix things instead of just 'nvm fixed it', so other developers will be able to learn as well. Link to comment Share on other sites More sharing options...
yesdev Posted March 6, 2016 Author Share Posted March 6, 2016 We ended up creating a few more variables to place inside the cart_product table that helped differentiate between product variants. Pretty bespoke code & refactoring as well. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now