magento2-pimcore-bridge icon indicating copy to clipboard operation
magento2-pimcore-bridge copied to clipboard

Handle update of products without categories

Open roynilsson opened this issue 4 years ago • 0 comments

If the product does not have any categories set in Pimcore then the value for category_ids will be null. The count function does not allow null as a parameter and crashes the import. Adding a simple is_iterable to the if statement solves the problem and allows products without categories to be imported.

roynilsson avatar Oct 02 '20 09:10 roynilsson