-
Notifications
You must be signed in to change notification settings - Fork 140
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
Fix/2370 fb sync status is incorrect for catalog visibility hidden #2403
Fix/2370 fb sync status is incorrect for catalog visibility hidden #2403
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @rawdreeg for your changes. I have added some questions please review them.
Thanks for the feedback. This is ready for another round of reviews. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes proposed in this Pull Request:
When a product's catalog visibility is set to hidden, the Facebook Sync status is incorrect in the Products list admin and edit. The product is not synced in Facebook. This is because the sync_enabled variable would not take into account product_should_sync status in order to determined the dropdown value.
Making this change also meant adding provision for catalog visibility being restored. I added a helper method in the ProductValidator class to check whether is product is valid without checking the sync field, as this would still contain old meta data.
Closes #2370.
Replace this with a good description of your changes & reasoning.
phpcs
checks? Please removephpcs:ignore
comments in changed files and fix any issues, or delete if not practical.Detailed test instructions:
Changelog entry