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

Error when a product has SKU = null #448

Closed
gonzaloebiz opened this issue Oct 30, 2018 · 0 comments
Closed

Error when a product has SKU = null #448

gonzaloebiz opened this issue Oct 30, 2018 · 0 comments
Assignees
Milestone

Comments

@gonzaloebiz
Copy link
Collaborator

gonzaloebiz commented Oct 30, 2018

In magento2, the sku is required, but you can go to stores/products/attributes and search for sku and put it like not required

image

If you go to the product, you have no way to set the SKU as null, so you must edit directly the table catalog_product_entity and put a null in the corresponding row
Then try to modify the product (or simply save it), and you can view that is not possible, so you must mark it as modified directly in the mailchimp_sync_ecommerce table (search for type = 'PRO' and related_id = yourProductId)

This situation can't happens naturally in magento, but if you put the sku as not required and import products without sku or add products in some other programmatic way with no sku

@gonzaloebiz gonzaloebiz self-assigned this Oct 30, 2018
@gonzaloebiz gonzaloebiz added this to the 1.0.31 milestone Oct 30, 2018
gonzaloebiz added a commit that referenced this issue Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant