Jump to content

[SOLVED] Making attributes mandatory


Recommended Posts

Problem:
On the site that I'm building I am selling T shirts and need to make a value on my 'size' attribute mandatory. At present I have a default of 'Please select size' - which is unsatisfactory.

From looking around the forums it seems that this is not possible - Can anyone verify this, or tell me how to do it if it is possible.

This is my first project using Prestashop and I really like it - I am find it hard to believe in a product this developed a basic feature such as this has not been included.

Thanks.

Link to comment
Share on other sites

See here. This code forces the customer to confirm before adding the default attribute to the cart. You could change the following code:

if (!confirm(attribute_alert_text))
                   return false;



to:

alert(attribute_alert_text);
return false;



This will prevent the customer from adding the default attribute to the cart.

Link to comment
Share on other sites

  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...