how to have a "Select One" option for attribute combinations but not allow it?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
[u][/u]Hello-

I want the "base" SKU displayed on my product pages as they load rather than the SKU of the first attribute combination defined for the product.
For example,
My product SKU is "837"

I have about 20 attribute combinations defined for this product, and each one has it's own SKU, like:
837EM34
..or..
837EM35
..etc..

When the page loads, the SKU written on the page is the SKU of the first option in the Size drop-down:
837EM34
...AND that attribute combination is pre-selected.

This is a problem.
Many customers are stupid and do not change it to the correct size and we end up shipping them a size which will not fit and then deal with returns all the time...

The only way I can cause the 837 to appear on the page and the first attribute combination in the list to not be pre-selected when the page loads is to create a new attribute combination with the name: "Select One"

But...of course...many customers are stupid and do not select one of the options, and nopCommerce allows this option to be selected, which makes it impossible for us to know which size to ship to the customer without contacting them first....

Is there any way to have the option drop-down have either NOTHING displayed in it initially, or a "Select One" option that nopCommerce will not accept as a real value?

Thanks,
Steve
5 years ago
embryo wrote:
Is there any way to have the option drop-down have either NOTHING displayed in it initially, or a "Select One" option that nopCommerce will not accept as a real value?

I suggest to made modification at the view file. By default there is condition if attribute is NOT required. If you will remove @if condition from this line, you will get desired result.

Regards,
Tom
5 years ago
Brilliant!

Many thanks, Tom!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.