woocommerce / facebook-for-woocommerce

A first-party extension plugin built for WooCommerce. Development is managed by Ventures.
https://woocommerce.com/products/facebook/
GNU General Public License v2.0
210 stars 137 forks source link

Product Sets and WooCommerce Categories do not sync correctly for variable products #1916

Closed jessLundie closed 2 years ago

jessLundie commented 3 years ago

πŸ”Ž Isolate the bug

✍️ Describe the bug

Variable products do not sync correctly / fully to their category-mapped Facebook Product Sets. Variants are not displayed for some products and the existence of variable products in sets appears to be causing some generalized sync failure.

I believe this is likely related to #1775, but that discussion also includes the Google Category and Product Type. My understanding is that those are no longer related to the WooCommerce Category and Product Set relationship, so this may now be a separate issue.

Ref 3906189-zen

πŸšΆβ€β™€οΈ Steps to reproduce

  1. Create Category 1 in WooCommerce that contains only simple products
  2. Create Category 2 in WooCommerce that contains variable products or a mix of simple and variable products
  3. Go to Products > FB Product Sets and create corresponding, mapped Product Sets for each of your WooCommerce test categories
  4. Log in to Facebook and access the catalog
  5. See that all products in Category 1 synced correctly
  6. See that Category 2 is missing some products and that some or all variable products that are synced do not include variants

βœ”οΈ Expected behavior

All products will sync to their respective Facebook catalogue Product Sets, regardless of whether they are simple or variable products.

πŸ—ƒ Logs

As mentioned in #1775, I don't see Category reflected in the sync log for variable products. Although in some cases, variable products do appear to sync to Product Sets.

Example of a partially successful sync for a Product Category including variable products variants from a customer site here: https://d.pr/i/SarMX6

### WordPress Environment ###

WordPress address (URL): https://daves-store.mystagingwebsite.com
Site address (URL): https://daves-store.mystagingwebsite.com
WC Version: 5.2.2
REST API Version: βœ” 5.2.2
WC Blocks Version: βœ” 4.7.2
Action Scheduler Version: βœ” 3.1.6
WC Admin Version: βœ” 2.1.5
Log Directory Writable: βœ”
WP Version: 5.7.1
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: βœ”
Language: en_US
External object cache: βœ”

### Server Environment ###

Server Info: nginx
PHP Version: 7.4.16
PHP Post Max Size: 2 GB
PHP Time Limit: 1200
PHP Max Input Vars: 6144
cURL Version: 7.75.0
OpenSSL/1.1.1d

SUHOSIN Installed: –
MySQL Version: 5.5.5-10.3.24-MariaDB-log
Max Upload Size: 2 GB
Default Timezone is UTC: βœ”
fsockopen/cURL: βœ”
SoapClient: βœ”
DOMDocument: βœ”
GZip: βœ”
Multibyte String: βœ”
Remote Post: βœ”
Remote Get: βœ”

### Database ###

WC Database Version: 5.0.0
WC Database Prefix: wp_
Total Database Size: 3.70MB
Database Data Size: 2.26MB
Database Index Size: 1.44MB
wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_options: Data: 1.08MB + Index: 0.03MB + Engine InnoDB
wp_postmeta: Data: 0.19MB + Index: 0.09MB + Engine InnoDB
wp_posts: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
wp_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

### Post Type Counts ###

attachment: 55
nav_menu_item: 5
page: 6
post: 1
product: 25
product_variation: 4
revision: 3

### Security ###

Secure connection (HTTPS): βœ”
Hide errors from visitors: βœ”

### Active Plugins (5) ###

Akismet Anti-Spam: by Automattic – 4.1.9
Code Snippets: by Code Snippets Pro – 2.14.1
Facebook for WooCommerce: by Facebook – 2.4.1
WooCommerce Stripe Gateway: by WooCommerce – 5.1.0
WooCommerce: by Automattic – 5.2.2

### Inactive Plugins (6) ###

Google Ads & Marketing by Kliken: by Kliken – 1.0.6
Health Check & Troubleshooting: by The WordPress.org community – 1.4.5
Jetpack by WordPress.com: by Automattic – 9.6.1
Mailchimp for WooCommerce: by Mailchimp – 2.5.0
WooCommerce Payments: by Automattic – 1.7.1 (update to version 2.3.2 is available)
WooCommerce Shipping & Tax: by Automattic – 1.25.4 (update to version 1.25.12 is available)

### Dropin Plugins (2) ###

advanced-cache.php: advanced-cache.php
object-cache.php: Memcached

### Settings ###

API Enabled: –
Force SSL: –
Currency: USD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)

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: #5 - /
Cart: #6 - /cart/
Checkout: #7 - /checkout/
My account: #8 - /my-account/
Terms and conditions: ❌ Page not set

### Theme ###

Name: Storefront
Version: 2.9.0 (update to version 3.5.1 is available)
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: 37
Oldest: 2021-04-06 09:15:00 -0700
Newest: 2021-04-29 13:35:53 -0700

Pending: 2
Oldest: 2021-04-29 13:50:53 -0700
Newest: 2021-04-29 13:50:53 -0700

### Status report information ###

Generated at: 2021-04-29 13:36:05 -07:00
nixiack commented 3 years ago

Hi @danielbitzer! Just checking in on this - if this is a higher priority then we can alert the user; otherwise if it is low we can let them know it will be fixed in time.

Thanks!

danielbitzer commented 3 years ago

Hi @nixiack, we're currently working on rebuilding parts of the product sync functionality but currently this specific issue isn't being worked on.

selectedselections commented 3 years ago

This issue was reported again today in zd-4049345

The user's Facebook for WooCommerce sync logs can be found here

The user has also provided a list of product codes with errors

daniyalahmadk commented 2 years ago

This issue was reported again today in zd-4716079