Categories not assigned to external/affiliate products correctly
-
There seems to be some issue with how product categories are assigned to products in a recent update.
When I use the block editor to pull in a WooCommerce Product Category block, newly created categories do not appear in the list. Also when I edit products, to change the category the category product counts are not updated in the category page.
I initially thought it was a plugin conflict, but have tried disabling all plugins to leave only WooCommerce active and it is still the same result when repeating the steps.
I am using subscriptions as well as regular products and also ‘display only’ products (external/affiliate products).
The problem only appears to occur on the External/affiliate type of products. Simple products are ok, as are subscriptions. I believe there is a bug somewhere that is causing this.
Bug 1: Newly created categories (if created when adding a new External/affiliate product) do not appear in the WooCommerce Category Block Editor
Bug 2: If I edit a product (external/affiliate) to change the category it is not updated and the product count for the category does not reflect the change.
Can someone from the team look into this?
### WordPress Environment ###
WordPress address (URL): https://carminegourmet.com
Site address (URL): https://carminegourmet.com
WC Version: 4.8.0
REST API Version: ? 4.8.0
WC Blocks Version: ? 3.8.1
Action Scheduler Version: ? 3.1.6
WC Admin Version: ? 1.7.3
Log Directory Writable: ?
WP Version: 5.6
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ?
Language: en_US
External object cache: –### Server Environment ###
Server Info: Apache
PHP Version: 7.4.13
PHP Post Max Size: 512 MB
PHP Time Limit: 45
PHP Max Input Vars: 1000
cURL Version: 7.74.0
OpenSSL/1.1.1iSUHOSIN Installed: –
MySQL Version: 5.7.32
Max Upload Size: 512 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ?### Database ###
WC Database Version: 4.8.0
WC Database Prefix: wp_
Total Database Size: 7.25MB
Database Data Size: 6.36MB
Database Index Size: 0.89MB
wp_woocommerce_sessions: Data: 0.16MB + Index: 0.01MB + Engine MyISAM
wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_order_itemmeta: Data: 0.03MB + Index: 0.02MB + Engine MyISAM
wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_actionscheduler_actions: Data: 0.08MB + Index: 0.04MB + Engine MyISAM
wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_actionscheduler_logs: Data: 0.05MB + Index: 0.05MB + Engine MyISAM
wp_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_comments: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
wp_csp3_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_mailchimp_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_nextend2_image_storage: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
wp_nextend2_section_storage: Data: 0.32MB + Index: 0.01MB + Engine MyISAM
wp_nextend2_smartslider3_generators: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_nextend2_smartslider3_sliders: Data: 0.07MB + Index: 0.00MB + Engine MyISAM
wp_nextend2_smartslider3_sliders_xref: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_nextend2_smartslider3_slides: Data: 0.15MB + Index: 0.01MB + Engine MyISAM
wp_options: Data: 2.66MB + Index: 0.14MB + Engine MyISAM
wp_postmeta: Data: 0.72MB + Index: 0.19MB + Engine MyISAM
wp_posts: Data: 1.62MB + Index: 0.10MB + Engine MyISAM
wp_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_usermeta: Data: 0.17MB + Index: 0.10MB + Engine MyISAM
wp_users: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
wp_user_registration_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wcpdf_invoice_number: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wcs_payment_retries: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_admin_notes: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
wp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wpforms_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_yoast_indexable: Data: 0.26MB + Index: 0.07MB + Engine MyISAM
wp_yoast_indexable_hierarchy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_yoast_seo_links: Data: 0.03MB + Index: 0.01MB + Engine MyISAM### Post Type Counts ###
attachment: 307
custom_css: 1
custom-css-js: 1
customize_changeset: 12
nav_menu_item: 27
page: 23
popup: 1
popup_theme: 8
post: 3
product: 41
product_variation: 22
revision: 318
seedprod: 1
shop_coupon: 10
shop_order: 11
shop_subscription: 11
user_registration: 2
wpforms: 1### Security ###
Secure connection (HTTPS): ?
Hide errors from visitors: ?### Active Plugins (1) ###
WooCommerce: by Automattic – 4.8.0
### Inactive Plugins (42) ###
Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.7
Akismet Anti-Spam: by Automattic – 4.1.7
All-in-One WP Migration: by ServMask – 7.32
Click to Chat: by HoliThemes – 3.2.3
Coming Soon Page, Maintenance Mode & Landing Pages by SeedProd: by SeedProd – 6.0.9.0
Contact Form 7: by Takayuki Miyoshi – 5.3.2
Contact Form 7 Extension For Mailchimp: by Renzo Johnson – 0.5.31
Custom Fonts: by Brainstorm Force – 1.2.5
Duplicate Page: by mndpsingh287 – 4.3
Facebook for WooCommerce: by Facebook – 2.2.0
GA Google Analytics: by Jeff Starr – 20201120
Google Ads & Marketing by Kliken: by Kliken – 1.0.6
Hello Dolly: by Matt Mullenweg – 1.7.2
If Menu – Visibility control for menu items: by Layered – 0.16.1
Jetpack by WordPress.com: by Automattic – 9.2.1
Mailchimp for WooCommerce: by Mailchimp – 2.5.0
MC4WP: Mailchimp for WordPress: by ibericode – 4.8.1
My Custom Functions: by Space X-Chimp – 4.47
Official Facebook Pixel: by Facebook – 2.2.2
Options for Twenty Twenty: by Webd Ltd – 1.5.0
Page scroll to id: by malihu – 1.7.1
Popup Maker: by Popup Maker – 1.14.0
Redirect After Login, Registration & Logout: by Addify – 1.1.3
Safe SVG: by Daryll Doyle – 1.9.9
Simple Custom CSS and JS: by SilkyPress.com – 3.34.1
Smart Slider 3: by Nextend – 3.4.1.14
Social Icons Widget & Block by WPZOOM: by WPZOOM – 4.0.5
Social Media Widget: by Noah Kagan – 4.0.6
Storefront Footer Bar: by WooThemes – 1.0.4
User Registration: by WPEverest – 1.9.2.1
User Registration Advanced Fields: by WPEverest – 1.3.5.1
User Registration Extras: by WPEverest – 1.0.3
User Registration Multi-Part: by WPEverest – 1.0.1
User Registration Social Connect: by WPEverest – 1.3.3
User Registration WooCommerce: by WPEverest – 1.2.3
WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.7.3
WooCommerce Shipping & Tax: by Automattic – 1.25.4
WooCommerce Stripe Gateway: by WooCommerce – 4.7.0
WooCommerce Subscriptions: by WooCommerce – 3.0.11
WooCommerce URL Coupons: by SkyVerge – 2.12.0
WP Encryption – One Click SSL & Force HTTPS: by Go Web Smarty – 5.3.1
Yoast SEO: by Team Yoast – 15.5### Dropin Plugins (1) ###
maintenance.php: maintenance.php
### Settings ###
API Enabled: –
Force SSL: –
Currency: MYR (RM)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
subscription (subscription)
variable (variable)
variable subscription (variable-subscription)Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)Connected to WooCommerce.com: ?
### WC Pages ###
Shop base: #6 – /shop/
Cart: #7 – /cart/
Checkout: #8 – /checkout/
My account: #9 – /my-account/
Terms and conditions: #332 – /terms-of-service/### Theme ###
Name: Storefront
Version: 3.0.0
Author URL: https://woocommerce.com/
Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
WooCommerce Support: ?### Templates ###
Overrides: –
### Action Scheduler ###
Complete: 285
Oldest: 2020-11-29 02:45:01 +0000
Newest: 2020-12-29 11:31:11 +0000Pending: 11
Oldest: 2020-12-30 07:03:13 +0000
Newest: 2021-01-02 19:00:00 +0000`
The page I need help with: [log in to see the link]
- The topic ‘Categories not assigned to external/affiliate products correctly’ is closed to new replies.