Neu angelegte Artikel in Shopware aktivieren.
authorfreiphone <kontakt@frei-phone.de>
Sun, 18 Nov 2018 22:57:03 +0000 (23:57 +0100)
committerGitHub <noreply@github.com>
Sun, 18 Nov 2018 22:57:03 +0000 (23:57 +0100)
Scheint seit Shopware 5.2 notwendig zu sein, damit der Artikel im Frontend erscheint.
s. https://forum.shopware.com/discussion/39006/artikel-nach-import-ueber-rest-api-im-frontend-nicht-sichtbar

SL/ShopConnector/Shopware.pm

index f47ff0c..fdfd141 100644 (file)
@@ -276,6 +276,7 @@ sub update_part {
                                                             customerGroupKey  => 'EK',
                                                             },
                                                           ],
+                                             active   => $shop_part->active,
                                              #attribute => { attr1  => $cvars->{CVARNAME}->{value}, } , #HowTo handle attributes
                                        },
                       supplier          => 'AR', # Is needed by shopware,