How to Force Product Variant Attribute Selection

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
brad.wang wrote:
When you add a product attribute on the product variant details page (admin area), just ensure that "Is required" checkbox is ticked

How to make the "Is Required" checked by default when adding a new product attribute in the admin?

This is not available out of the box. It requires customization work.
7 years ago
[quote=a.m.]In this case try the following:
1. Open \Views\Catalog\_ProductAttributes.cshtml (Nop.Web project)
2. Replace
@if (!attribute.IsRequired)
{
   <option value="0">---</option>
}

with
<option value="0">---</option>


I know this is an old thread. Is this implemented in a elegant way with a setting to enable/disable?

I need products to have product attribute required but at the same time not have default value.
Probably dummy value like mentioned above so customers are forced to manually select it.

Btw, I am on version 3.8

I also saw this article talking about same thing.
http://blog.arvixe.com/how-to-prevent-first-item-from-being-selected-by-default-in-a-dropdown-attribute-in-nopcommerce/
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.