Jump to content

Increase Characters allowed for Supplier Reference


gavz

Recommended Posts

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

  • Like 1
Link to comment
Share on other sites

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

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

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

×
×
  • Create New...