natalie123123 Posted February 1, 2014 Share Posted February 1, 2014 Hi, Presently Prestashop (1.5.6) isn't accepting '0' as a value in a product customisation field. It strips it out on save. (I need the text fields to accept numbers 0-24). Does anybody know how I can fix this? Link to comment Share on other sites More sharing options...
prestashopninja Posted February 2, 2014 Share Posted February 2, 2014 This is an issue caused by the way PHP interprets the things. I'm going to file a bug about it to see if this will be considered a bug or not, however to save your day, you may use the attached file. 1. download and unzip the file. 2. upload it under override/controllers/front directory of your Prestashop store 3. delete cache/class_index.php file. It will be regenerated. This should solve your issue for the day, but please do not rely on this as a long term solution. ProductController.php.zip Link to comment Share on other sites More sharing options...
prestashopninja Posted February 2, 2014 Share Posted February 2, 2014 Sorry, there was a mistake in the previously attached file. Please use this one instead. ProductController.php.zip Link to comment Share on other sites More sharing options...
prestashopninja Posted February 2, 2014 Share Posted February 2, 2014 I opened the bug ticket in prestashop forge. You may follow the outcome there: http://forge.prestashop.com/browse/PSCFV-11614 By the way, just in case I want to upload the modified version once again as I needed to change it. ProductController.php.zip 1 Link to comment Share on other sites More sharing options...
natalie123123 Posted February 3, 2014 Author Share Posted February 3, 2014 Thank you! Worked Brilliantly. Link to comment Share on other sites More sharing options...
Recommended Posts