bigcommerce / bigcommerce-for-wordpress

A headless commerce integration for WordPress, powered by BigCommerce
https://www.bigcommerce.com/wordpress/
GNU General Public License v2.0
109 stars 49 forks source link

WordPress plugin does not successfully import some categories #425

Open kl32 opened 1 year ago

kl32 commented 1 year ago

Detailed Description: Merchant Supplies Plus has noticed that when importing the catalog to WordPress, the process imports the majority of products and categories. However, there are a handful of sub-categories which are not imported to the store - the products associated with these sub-categories are successfully imported. While the import logs show some messaging regarding a token (which likely should have gone away after they selected the “Full Import” setting), and category taxonomy, I’m unsure if these are blocking the handful of sub-categories which aren’t importing.

Replication Steps? Go to https://suppliesplusautoproducts.com See that the following sub-categories are present under Abrasives > Sanding Discs:

Go to suppliesplus.wpengine.com Select “Shop” menu Abrasives > Sanding Discs See that the above sub-categories are not present

Expected Results When the WordPress plugin is installed via the store login method, and import settings specify “Full Import", all eligible categories/products are successfully imported to the plugin.

Actual Results When the WordPress plugin is installed via the store login method, and import settings specify “Full Import", some eligible categories are not appearing as imported within the plugin.

Troubleshooting, Examples, Images/Videos, Info There are other categories not appearing in the plugin, but going off the given examples I can see that the subcategories are visible, have visible/in stock products on BigCommerce, and the products within these categories show as successfully imported within the plugin.

For example:

2” Discs (Category ID: 434): Abrasives > Sanding Discs > 2” Discs Products in category:

  1. High Teck 236-50 2" 36 Grit R-Style Discs 50/Box BX (Product ID: 2082)
  2. Norton 62318 2" 36 Grit Blaze Speed-Lok Grinding Discs 25/Box (Product ID: 1853)
  3. 3m 07481 2" Scrotch-Brite Medium Roloc Surface Conditioning Discs 25/Box (Product ID: 1821)
  4. 3M 01396 2" 50 Grit Green Corps Roloc Discs 25/Box BX (Product ID: 654)

All of these products show as imported successfully via the latest set of import logs on the plugin, and are assigned to the WP channel on BigCommerce.

The import log does mention “channel:7” which does not match the WP channel ID on BigCommerce, but I’m not sure this field is meant to match the BC channel ID for the plugin.

There are other “3rd level” sub-categories which are showing as expected:

Wordpress setup/import logs: Screen Shot 2023-04-21 at 1 25 42 PM debug (3).log

2gen commented 1 year ago

We are experiencing a similar issue. Did you ever find a solution? Part of me wonders if its because we have so many categories but it could also just be the old existing ones are working but the new ones can't be pulled.

Here is the most relevant snippet of our debug log.

[2023-05-04 21:07:58] BigCommerce.INFO: Running import task {"state":"purged_brands","description":"Updating Categories"} [] [2023-05-04 21:07:58] BigCommerce.ERROR: Could not retrieve the token {"trace":"#0

Its the same thing as yours really.