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

Issue with Filter by Facebook Sync Setting #2616

Closed
sukafia opened this issue Aug 15, 2023 · 4 comments · Fixed by #2625
Closed

Issue with Filter by Facebook Sync Setting #2616

sukafia opened this issue Aug 15, 2023 · 4 comments · Fixed by #2625
Assignees
Labels
needs investigation type: bug The issue is a confirmed bug.

Comments

@sukafia
Copy link

sukafia commented Aug 15, 2023

✍️ Describe the bug

Facebook for WooCommerce ads the "Filter by Facebook sync setting" option for filtering products by Facebook sync setting in the All Products screen. However, this filter isn't correctly filtering all products associated with the sync settings.

The filter does not work on all products. For instance, when some products are assigned the “Do not sync” setting, they do not appear when filtered with that option.

I tested this on my end and it seems the product status may play a role (e.g. draft, private, etc.)

Affected users

https://wordpress.org/support/topic/filter-by-facebook-sync-setting-not-working-in-admin-all-products
https://wordpress.org/support/topic/facebook-for-woocommerce-not-syncing-and-filter-is-not-working/

🚶‍♀️ Steps to reproduce

  1. Assigned different sync settings to products (e.g. Sync and show, sync and hide, do not sync)
  2. Filter the products by the assigned sync status
  3. Notice some products matching the sync setting don't show when filtered by that sync setting (I even noticed a product showing up for an unrelated sync setting)

✔️ Expected behavior

Products associated with a sync setting should show up when filtered by that sync setting.

@sukafia sukafia added needs investigation type: bug The issue is a confirmed bug. labels Aug 15, 2023
@sukafia
Copy link
Author

sukafia commented Aug 15, 2023

I noticed something interesting while testing this

wgYTY3.png

Product sync settings "Sync and hide":

kLjuln.png

The Facebook sync status shown in the product interface appears to be due to being out of stock/private. While the assigned status is "Sync and hide". It's correct for the product to appear when filtered with "Sync and hide" but this initially confused me to think a product with a "Do not sync" status was being shown for the sync and hide filter.

From this, I gathered part of the issue is the default sync status assigned due to the product status (draft, out of stock, private, etc.) and the assigned sync setting on the product editing screen.

@ibndawood
Copy link
Contributor

Hello @sukafia, thank you for reporting this issue. The issue is due to the difference between the Facebook Sync status set in the product tabs and the actual sync status. The actual sync status goes through validations listed here, and if one of the validations fails, the product will not be synced even if the status is set to Sync and show.

To resolve this, we've added a tooltip to explain why the sync status is Do not sync. This should resolve the confusion around the sync status shown. Here is the PR: #2625. Please let us know what you think about this approach.

@sukafia
Copy link
Author

sukafia commented Sep 2, 2023

@ibndawood I think the tooltip works for now. Thanks for looking into this.

@ibndawood
Copy link
Contributor

Thank you, @sukafia, for your input. We've reviewed and merged PR: #2625. The tooltip should be available in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation type: bug The issue is a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants