pcitshop Posted January 4, 2012 Share Posted January 4, 2012 Hi, Plz help, i want to make reference as required field instead of Name on products adding stage in admin panel? Regards Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 4, 2012 Share Posted January 4, 2012 Hi pcitshop, In your classes/Product.php file, remove 'name' from line 243 and add 'reference' to line 204, and that should do it for you. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
pcitshop Posted January 4, 2012 Author Share Posted January 4, 2012 Hi Mike Thanks for help, but line 243 says "'cache_has_attachments' => 'isBool'" All im trying to do is while importing / updating products through csv, it says Products Name required? Secondly i am having problem with updating products, i manage to upload for the first time but then today i just wanted to upadted images of 108 products, i made csv file with products manufacturer codes and new images url, mapped the coloumns to reference and omage url in products, on importing strange thing happened, all 108 products disappeared from front end, nothing comes up in search. I looked for products in admin panel they have been moved to home category and all related information disapperaed, no products description, manufacturer name, price, stock unit etc? why did that happen? Is prestashop not able to update products through manufacturer code? Regards Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 4, 2012 Share Posted January 4, 2012 Hi pcitshop, What version of PrestaShop are you using? And as for your second question, please post it as a separate thread, per the rules of the PrestaShop forum. -Mike Link to comment Share on other sites More sharing options...
pcitshop Posted January 4, 2012 Author Share Posted January 4, 2012 Server information Prestashop version: 1.4.6.2 Server software version: Apache PHP version: 5.2.17 MySQL version: 5.1.60-community-log Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 4, 2012 Share Posted January 4, 2012 In a default installation of v1.4.6.2, line 243 should be as follows: protected $fieldsRequiredLang = array('link_rewrite', 'name'); The code you posted should originally be on line 241, so try looking just a couple lines lower to see if you can find it. -Mike Link to comment Share on other sites More sharing options...
pcitshop Posted January 4, 2012 Author Share Posted January 4, 2012 Thanks Mike, found above codes few lines down on the file but my main issue is updating products through csv, i have started new thread for this. Regards Link to comment Share on other sites More sharing options...
Recommended Posts