Adding And Importing Extra Custom Field In Products

I need an extra field in the products database. To import my brandname/codes.

I don't see an option to do that.

Please advise.



Thank you,

Lida

Use product features.

Thank you. I have tried that, but with a rather complicated discount plan to implement, I got stuck. But if there is no way to add custom fields, I suppose that is the only way.

Appreciate your reply.

[quote name='lidacha' timestamp='1401945594' post='185113']

I need an extra field in the products database. To import my brandname/codes.

I don't see an option to do that.

Please advise.



Thank you,

Lida

[/quote]



Please try the following:


  1. Activate the My changes add-on
  2. Create 'app/addons/my_changes/schemas/exim/products.post.php' file with the following content:


```php

$schema['export_fields']['Field Name 1'] = array(
'db_field' => 'db_field_1'
);
$schema['export_fields']['Field Name 2'] = array(
'db_field' => 'db_field_2'
);
return $schema;
```

Where db_field_1 and db_field_2 are the names of extra fields in the "cscart_products" table
3. Clear the cache and check the result