Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
“This is a required field”
 
garyhe
Member
 
Total Posts:  33
Joined:  2008-03-31
 

Hi,

I have set up a series of configurable products and have thoroughly modified configurable.phtml to my liking, but when you try to add to cart without selecting a required field, it throws everything off kilter because it triggers a script that inserts and arrow and “This is a required field” under the box. Which file would I have to edit to get rid of this function? I would like to keep the box lit up red, but would like to remove the addition of the text and arrow.

Thank you,

GH

 
Magento Community Magento Community
Magento Community
Magento Community
 
chinesedream
Guru
 
Total Posts:  745
Joined:  2007-08-31
San Francisco, CA
 

go to that attribute, disable to ‘required’ value. Note, Weight value must be entered otherwise you can’t have the get shipping rate quote for USPS, FedEx and UPS working, that means it’s best not to disable the required value for Weight (it’s a default by Magento). I learned it hard way.

 
Magento Community Magento Community
Magento Community
Magento Community
 
garyhe
Member
 
Total Posts:  33
Joined:  2008-03-31
 

I am not trying to disable requirements… requirements are fine. I am trying to hax the script so it doesn’t pop up new text onto the page where I don’t want it.

Any ideas?

Thanks,

GH

 
Magento Community Magento Community
Magento Community
Magento Community
 
chinesedream
Guru
 
Total Posts:  745
Joined:  2007-08-31
San Francisco, CA
 

I am pretty sure the JS validation script is for entire system, if you disable it, you will be disabling all warnings - and they are necessary, for valid and best reason. The validation is to remind user to enter the require field, thus improving usability and accessibility. If you think requirements are fine, then the script must not be disabled. There is a good reason a validation is implemented in the configurable product. If you want to disable it, you must have the default sets to something instead of ‘choose option’, so that the warning won’t be showing up.

How to do it? I don’t know and not interested to find out because: if requirement is needed, the script must not be disabled, so that I can make sure the customers have better experience using client’s site.

As for where tto disable the validation, why not turn on the template path hints and look into the js library!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
53214 users|784 users currently online|107257 forum posts