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

Adds a tooltip to Facebook sync status #2625

Merged
merged 2 commits into from
Sep 4, 2023

Conversation

ibndawood
Copy link
Contributor

@ibndawood ibndawood commented Aug 30, 2023

Changes proposed in this Pull Request:

Closes #2616.

When filtering products in the WooCommerce admin, the Facebook Sync status displayed in the column conflicts with the status chosen. This is because the Facebook Sync status is a product metadata whereas the displayed status is the actual sync validation based on various conditions. The list of conditions can be viewed here.

This PR will add a tool tip to the conflicting status to explain why the status is Do not sync. This tooltip should resolve the confusion around filtering reported in #2616.

  • Do the changed files pass phpcs checks? Please remove phpcs:ignore comments in changed files and fix any issues, or delete if not practical.

Screenshots:

image

The Product Facebook Sync is set to Sync and show, but the visibility is set to hidden.

image

Tooltip to display why the product status is Do not Sync.

Detailed test instructions:

  1. Install and activate WooCommerce.
  2. Install and activate Facebook for WooCommerce.
  3. Click on any of the product to open the Edit Product screen.
  4. Scroll down to the Product data tabs and choose the Facebook product tab.
  5. Choose Sync and show for the Facebook Sync field.
  6. Set the Catalog Visibility to hidden and click Update.
  7. In the Products admin screen, the Facebook Sync status for the product will be shown as Do not sync, and a ? tooltip icon will be displayed. The message should read This product cannot be synced to Facebook because it is hidden from your store catalog..

Changelog entry

Fix - Issues with Facebook Sync status display while product filtering in admin.

@ibndawood ibndawood self-assigned this Aug 30, 2023
@github-actions github-actions bot added changelog: fix Took care of something that wasn't working. type: bug The issue is a confirmed bug. labels Aug 30, 2023
@ibndawood ibndawood requested a review from a team August 30, 2023 09:31
@ibndawood ibndawood marked this pull request as ready for review August 30, 2023 09:32
@ibndawood ibndawood changed the title Adds tooltip to Facebook sync status Adds a tooltip to Facebook sync status Aug 30, 2023
@budzanowski
Copy link
Collaborator

Does this change anything in the filtering that #2616 mentions? I only see the tooltip added or am I missing something?

@ibndawood
Copy link
Contributor Author

Hello @budzanowski, thank you for taking the time to review this PR. In #2616, the issue is not due to incorrect filtering. The filter works as expected. However, while displaying the filter status in the columns, we show the actual sync status, whether a product can be synced or not, instead of the Facebook Sync status, which is set in the product data field.

This PR will add an information icon to show why a Do not sync status is displayed when filtering Sync and show or Sync and hide status.

@budzanowski
Copy link
Collaborator

@ibndawood I am sorry I was confused for a second. We have discussed this last week, all is good.

Copy link
Collaborator

@budzanowski budzanowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@ibndawood ibndawood merged commit 24c0613 into develop Sep 4, 2023
6 checks passed
@ibndawood ibndawood deleted the fix/2616-facebook-filter-sync branch September 4, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Took care of something that wasn't working. type: bug The issue is a confirmed bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with Filter by Facebook Sync Setting
2 participants