ibrahim.hajjaj Posted June 18, 2023 Share Posted June 18, 2023 (edited) Hello, This question, or similar has been asked before, however the answers I've seen are not satisfactory. As of PrestaShop 1.7 there is still a default combination for a product, however for some attributes this is not logical. For example, people don't come in a default size, therefore it is not logical to have a default t-shirt size or default shoe size. A dropdown should say "Please select" until the customer chose a size. There should not be any value there until the customer puts it there. What the shop should do: 1. Force the customer to choose a size (and not set a default one) 2. Hide the Add to Cart button until a valid attribute value was selected Please suggest how to implement this cleanly. Some of the suggestions I've seen: 1. Use a JavaScript popup to ask the customer if they remembered to change the default attribute value. This is not a good solution because there shouldn't be a default value for some attributes, and JavaScript popups aren't optimal anyway. 2. Add the value "Please select" to each attribute type and set the quantity of the resulting combinations to 0 (zero). This is a bad solution because the shop shows a confusing and misleading message that the product is out of stock, when in fact this is only due to the fact that a valid attribute value has not yet been selected. I consider my question critical as it prevents many ordering mistakes. Please help. Thanks in advance! Edited June 18, 2023 by ibrahim.hajjaj (see edit history) Link to comment Share on other sites More sharing options...
dudecorn Posted February 29 Share Posted February 29 Same problem here. Anyone know the solution? Link to comment Share on other sites More sharing options...
JBW Posted March 2 Share Posted March 2 Check out my module "Please choose attributes - Product combination check" https://addons.prestashop.com/en/combinaisons-customization/47851-please-choose-attributes-product-combination-check.html 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