Jump to content

Edit History

ibrahim.hajjaj

ibrahim.hajjaj

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!

ibrahim.hajjaj

ibrahim.hajjaj

Hello,

This question, or similar has been asked before, however the answers I've seen are not satisfactory.

As of PrestaShop 1.6.1.4 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!

×
×
  • Create New...