craftcms / shopify

Synchronize and extend product data from your Shopify storefront.
MIT License
45 stars 25 forks source link

Array to string error (caused by Product name changing?) #22

Closed j-greig closed 3 years ago

j-greig commented 4 years ago

We're having a repeated problem where an entry can't be saved — perhaps because the previously selected Shopify product has a new name/title?

image

nmaier95 commented 4 years ago

Quite a few variables beeing used on line 78 inside of ShopifyService.php. Do you have the chance to run it xdebug and step through it? Perhaps somewhere a false value is set.

I am also a bit confused this error is thrown 'on save'. If I remember correctly, in the flow of 'saving' this line is not executed. But maybe I'm wrong here...

In addition, the title/name is not saved inside craft-database. All we save is the 'productId' received from the shopify-api.

nmaier95 commented 3 years ago

closed due to inactivity.