danslo / ApiImport

Boilerplate between the Magento API and ImportExport, so that you can do fast Array/XMLRPC/SOAP based product imports.
244 stars 79 forks source link

How to add store specific description to category? #43

Closed iventura closed 8 years ago

iventura commented 8 years ago

I have to save different descriptions for each store, but "_store" will be ignored:

My Array: array( 'name' => $name, '_store' => '1',
'description' => 'description', '_category' => $path, 'url_key' => $item->getData('url_key') ) May be i have to create more as one array item and divide '_category' and '_store' fields?

Thank you in advance!

danslo commented 8 years ago

You should use storecode, not store ID in that column.

Something like:

array(
    'name' => $name,
    '_store' => 'default',
    'description' => 'My English Description',
    [ ... ]
),
array(
    '_store' => 'french',
    'description' => 'Ma Boutique Française'
)