richt99 Posted May 17, 2010 Share Posted May 17, 2010 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 More sharing options...
rocky Posted May 17, 2010 Share Posted May 17, 2010 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 More sharing options...
richt99 Posted May 19, 2010 Author Share Posted May 19, 2010 Thanks Rocky! That's great, and worked nicely.Worth mentioning to anyone else reading this thread that you do need to have the ajax-cart enabled for this to work properly. Link to comment Share on other sites More sharing options...
rocky Posted May 19, 2010 Share Posted May 19, 2010 If your issue is resolved, please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
bynd Posted May 29, 2012 Share Posted May 29, 2012 I want to try the the solution, but I don't find the lines you said I'm using " PrestaShop™ 1.4.8.2 " 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