fonteyne131 Posted July 8, 2016 Share Posted July 8, 2016 Hi, I have two attributes, one of them i need to use for the layered navigation as a general clothessize. When the customer selects this attribute i want to show another attribute in the product page (the real size). (screenshot is attached) So I have to hide the first attribute in the product page. Problem is that I can't add it to the shopping cart anymore. Does someone have a solution? Best regards Jurgen Link to comment Share on other sites More sharing options...
rocky Posted July 8, 2016 Share Posted July 8, 2016 Assuming you're using the default PrestaShop v1.6 theme, look for the following line in product.tpl at about line 345: <fieldset class="attribute_fieldset"> and try changing it to: <fieldset class="attribute_fieldset"{if $id_attribute_group == 1} style="display: none"{/if}> Change 1 to the ID of the attribute group you want to hide. Link to comment Share on other sites More sharing options...
vekia Posted July 10, 2016 Share Posted July 10, 2016 isn't it a kind of redundancy? for one product is not a problem, but if you will have thousands of products, then you will have a lot of redundant datas in the database and it can slow down shop. why not to use only one attribute (size) and in the layered navigation block change the appearance (name) of the attribute ? Link to comment Share on other sites More sharing options...
fonteyne131 Posted July 12, 2016 Author Share Posted July 12, 2016 @rocky This solution works but the problem is that only the default combination can be added to the cart, when i want another combination the "add to cart button" disappears How can i solve that? @vekia i need to use a general size for all clothesbrands but when they click on the the size of the layered navigation, it's the real size of the brand that the customer has to see in the product page Hope you understand, Link to comment Share on other sites More sharing options...
rocky Posted July 14, 2016 Share Posted July 14, 2016 The "Add to cart" button shouldn't disappear when changing attributes. Make sure all the combinations have a quantity greater than 0. Link to comment Share on other sites More sharing options...
fonteyne131 Posted July 14, 2016 Author Share Posted July 14, 2016 Hi Rocky, The quantitys are more than 1. Only the first and second combination i can add to the shopping cart. The first combination is the default combination. Best regards Link to comment Share on other sites More sharing options...
rocky Posted July 15, 2016 Share Posted July 15, 2016 Sorry, I can't think of why it isn't working. Hiding a dropdown using CSS shouldn't prevent the other dropdowns from working. Link to comment Share on other sites More sharing options...
fonteyne131 Posted July 15, 2016 Author Share Posted July 15, 2016 I guess it is because all combinations aren't available. It only shows up when i click on the attributes that are linked together. See screenshot Link to comment Share on other sites More sharing options...
rocky Posted July 16, 2016 Share Posted July 16, 2016 That's right. You'll need to generate combinations for all attributes for the "Add to cart" button to work. 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