-
Notifications
You must be signed in to change notification settings - Fork 45
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
New Products get synced into "Draft" #423
Comments
We are having the same problem. Were you able to find a solution to this? Deleting and resyncing unfortunately didn't solve it. |
Yeah I found that deleting the drafts and resyncing those also helped. I made a list of instructions for doing it internally here but I think I can share it with you. 1: put site into maintenance mode 2: Delete all products and date with sql script via phpmyadmin. 3: goto https://site-url/wp-admin/edit.php?post_type=bigcommerce_product and select"All Products" in the drop down next to the sync button then click "Sync Products" 4: Wait for it to finish then go to https://site-url/wp-admin/edit.php?post_status=draft&post_type=bigcommerce_product and delete all the drafts. 5: Repeat step 3 6: removed because not relevant to anyone but us 9: take site out of maintenance mode |
Expected behavior
Products that are initially not set as visible during the sync should be updated to visible on the next sync after the "visible on store front" option is checked in big commerce.
Actual behavior
Products get stuck in draft mode and never sync into the publish state.
Steps to reproduce behavior
Workaround or possible solution
Delete all products from wp entirely via sql and resync them all again.
DELETE FROM wp_posts WHERE post_type='bigcommerce_product'; DELETE FROM wp_postmeta WHERE post_id NOT IN (SELECT id FROM wp_posts); DELETE FROM wp_term_relationships WHERE object_id NOT IN (SELECT id FROM wp_posts)
The text was updated successfully, but these errors were encountered: