gavz Posted July 11, 2014 Share Posted July 11, 2014 Can someone please help me with changing how man characters are allowed for "Supplier Reference". Current maximum is 32. I'm using PrestaShop™ 1.6.0.6. Thank you Link to comment Share on other sites More sharing options...
NemoPS Posted July 11, 2014 Share Posted July 11, 2014 You can change the source definition in Product.php (classes folder) 'supplier_reference' => array('type' => self::TYPE_STRING, 'validate' => 'isReference', 'size' => 32), Or add an override, and change the entry 1 Link to comment Share on other sites More sharing options...
gavz Posted July 17, 2014 Author Share Posted July 17, 2014 Thank you I will give this a go! Link to comment Share on other sites More sharing options...
gavz Posted July 17, 2014 Author Share Posted July 17, 2014 Thank you I will give this a go! I've increased the number of characters allowed but I'm still getting the error: "Property ProductSupplier->product_supplier_reference length (34) must be between 0 and 32" Link to comment Share on other sites More sharing options...
gavz Posted July 17, 2014 Author Share Posted July 17, 2014 You can change the source definition in Product.php (classes folder) 'supplier_reference' => array('type' => self::TYPE_STRING, 'validate' => 'isReference', 'size' => 32), Or add an override, and change the entry I've increased the number of characters allowed but I'm still getting the error: "Property ProductSupplier->product_supplier_reference length (34) must be between 0 and 32" Link to comment Share on other sites More sharing options...
gavz Posted July 17, 2014 Author Share Posted July 17, 2014 I've increased the number of characters allowed but I'm still getting the error: "Property ProductSupplier->product_supplier_reference length (34) must be between 0 and 32" Thank you, I got it to work. Changes had to be made to ProductSupplier.php Link to comment Share on other sites More sharing options...
Recommended Posts