Jump to content

Add new custom feild for a product


TiwariKirti

Recommended Posts

I have add new column in ps_product table and ps_product_shop and also call the code in override/classes/product.php

public $custom_field1= false;

self::$definition['fields']['custom_field1'] = array('type' => self::TYPE_BOOL,'validate' => 'isBool');

but when i update the product this show error

Unknown column 'custom_field1' in 'field list' 

What the issue ,Please help me

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...