Todor Inchovski Posted May 10, 2019 Share Posted May 10, 2019 (edited) Hello! I need to put the product attributes in a custom modal. I have achieved that by copying the product-variants.tpl into my custom module tpl. All is good and well, but when I change the attributes, they jump back to the values entered into the product page. How can I make them change through the modal as well? Edited May 15, 2019 by Todor Inchovski (see edit history) Link to comment Share on other sites More sharing options...
Todor Inchovski Posted May 10, 2019 Author Share Posted May 10, 2019 So I have noticed that when I click on an attribute, the URL in the address bar changes, but it does not change when this is done through the modal. I tried force update of friendly URL, but it still does not update the URL when attribute is changed from the modal. If someone knows how I can force the change of the URL from the custom modal I would be grateful. Link to comment Share on other sites More sharing options...
Todor Inchovski Posted May 13, 2019 Author Share Posted May 13, 2019 Does anyone have any idea? Link to comment Share on other sites More sharing options...
Todor Inchovski Posted May 15, 2019 Author Share Posted May 15, 2019 I have figured out, that I need to copy the product-attributes code and delete the class of the main div <div class="product-variants"> and then the attributes stay the chosen ones in the modal. 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