Pr0wleR Posted March 1, 2020 Share Posted March 1, 2020 Good afternoon. My product combinations do not change automatically: my products have between 300 and 600 combinations in 4 different characteristics, depending on each other, the options should automatically change depending on the choices that customers make. The PS version is 1.7.6.3. evoracks.pt Can someone help me, please? Thanks. Link to comment Share on other sites More sharing options...
MarlexLadag Posted March 2, 2020 Share Posted March 2, 2020 I am not sure if this is a bug for this version or maybe they change something from the process. What I see is it's not changing the DOM. You can use prestashop javascripts events for this to solve. Link to comment Share on other sites More sharing options...
JBW Posted March 2, 2020 Share Posted March 2, 2020 There are some regression issues in 1.7.6.3 in this area https://github.com/PrestaShop/PrestaShop/issues/17437 Link to comment Share on other sites More sharing options...
MarlexLadag Posted March 2, 2020 Share Posted March 2, 2020 Just add this in your custom.js prestashop.on('updatedProduct', function(e){ $('.product-variants').replaceWith(e.product_variants) }); Link to comment Share on other sites More sharing options...
Pr0wleR Posted March 2, 2020 Author Share Posted March 2, 2020 Thanks for the comment ML. And where can I locate the file to do so? I'm using the classic theme. Sorry for my noobness. Thanks in advance Link to comment Share on other sites More sharing options...
MarlexLadag Posted March 2, 2020 Share Posted March 2, 2020 just in the assets/js/custom.js 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