Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'name' => '###EMPTY###' disables the product on the specific storeview? #402

Closed
ZaneCEO opened this issue Aug 24, 2017 · 1 comment
Closed

Comments

@ZaneCEO
Copy link

ZaneCEO commented Aug 24, 2017

Hi,
I'm trying to import a product array where:

Index 0: the default scope
Index 1: values for the it store
Index 1: values for the en store

The goal is to set Use default for the ###EMPTY### values.

This is my array, and it works like a charm:

$arrAvS = 

‌array (
  0 => 
  array (
... snip ....
    '_type' => 'simple',
    'status' => 1,
    'price' => '12.56',
    'name' => 'Default name of the product',
    'description' => 'Default product description',
... snip ....
  ),
  1 => 
  array (
    '_store' => 'it',
... snip ....
  ),
  2 => 
  array (
    'sku' => NULL,
    '_store' => 'en',
    'special_price' => '18.52',
    'name' => 'My english name', //!!!please note this!!!
    'description' => '###EMPTY###',
    'short_description' => '###EMPTY###',
    'meta_description' => '###EMPTY###',
    'url_key' => '###EMPTY###',
    'price' => '###EMPTY###',
  ),
)

Again, this works as expected and each ###EMPTY### value simply becomes Use default.

The problem occurs when I change 'name' => 'My english name' and the 2nd array item becomes 'name' => '###EMPTY###'.

In this scenario, the product get disabled on the english website:

Screenshot

The importing code is:

            $import = Mage::getModel('fastsimpleimport/import');
            $import
                ->setUseNestedArrays(true)
                ->processProductImport($arrAvS);

Edit: if I re-activate via admin the product on the eng storeview, the config is perfect and the title is set to Use default as expected. The only issue is really the product being disabled then!

Admin config:

Screenshot

The store is a july-SUPEE patched Magento ver. 1.9.2.4.

AvS is 0.7.1.

Any help is greatly appreciated, thanks!

@ZaneCEO
Copy link
Author

ZaneCEO commented Aug 24, 2017

Goddamnit, my array was just missing _product_websites when the title was empty. Nothing to do with AvS then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant