avstudnitz / AvS_FastSimpleImport

Wrapper for Magento ImportExport functionality, which imports products and customers from arrays
306 stars 146 forks source link

Could we upload products using 1 data line directly to muliple _product_websites #445

Closed seansan closed 4 years ago

seansan commented 4 years ago

Could we upload products using 1 data line directly to muliple _product_websites?

Also see; https://magento.stackexchange.com/questions/318741/magento-1-import-products-directly-to-multiple-websites-using-csv-import

avstudnitz commented 4 years ago

Yes, see our documentation at http://avstudnitz.github.io/AvS_FastSimpleImport/options.html, section "Support Nested Arrays for Import":

$data = array(
    array(
        'sku' => '1234567',
        '_type' => 'simple',
        '_attribute_set' => 'Default',
        '_product_websites' => array('de', 'en', 'fr'),
        'name' => 'Default',
        'price' => 0.99,
        'description' => 'Default',
        'short_description' => 'Default',
        'colors' => array('green', 'silver')
        'weight' => 0,
        'status' => 1,
        'visibility' => 4,
        'tax_class_id' => 2,
        'qty' => 76,
    ),
)
seansan commented 4 years ago

And when using csv file?

On Fri, 31 Jul 2020 at 10:41, Andreas von Studnitz notifications@github.com wrote:

Yes, see our documentation at http://avstudnitz.github.io/AvS_FastSimpleImport/options.html, section " http://avstudnitz.github.io/AvS_FastSimpleImport/options.html":

$data = array( array( 'sku' => '1234567', '_type' => 'simple', '_attribute_set' => 'Default', '_product_websites' => array('de', 'en', 'fr'), 'name' => 'Default', 'price' => 0.99, 'description' => 'Default', 'short_description' => 'Default', 'colors' => array('green', 'silver') 'weight' => 0, 'status' => 1, 'visibility' => 4, 'tax_class_id' => 2, 'qty' => 76, ), )

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/avstudnitz/AvS_FastSimpleImport/issues/445#issuecomment-667008283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE7I25LKNMO4DQUAGTBXT3R6J7UVANCNFSM4PPZBTSA .

avstudnitz commented 4 years ago

This module doesn't support using a CSV file. You'd have to implement that yourself.