Jump to content

[HOW TO] Add a new product field


Recommended Posts

Hi there guys!.
I'm trying to create a new field exactly like the ON_SALE one. It would be boolean as well to show a special message for particular products.
I tried to copy the way that the ON_SALE variable is in the Product.php file and of course the checkbox in the AdminProducts.php file.
I can't make this work because an error: "an error occurred while updating object product".

I was testing and seems that this line create the problem:
" $fields['myfield'] = intval($this->myfield); "

Does someone know how to add this field???.

Link to comment
Share on other sites

×
×
  • Create New...