-
Notifications
You must be signed in to change notification settings - Fork 138
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
Remove sync not possible modal. #2665
Conversation
Zip for testing based on 77d138e: |
I can't publish drafts or new products when the test copy is installed on my site: For the new products, the Publish button just doesn't work. Here's a screen recording of my test: |
The problem found by @sukafia has been the result of cached js files. After clearing the cache the issue was no longer there. |
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.
Looks good!
Thank you, @budzanowski .
@budzanowski this is amazing, and how things should be like! I know I'm saying this for many WC users like me: THANK YOU!!! |
@camilolunacom I am happy that you like it. This should be released on Tuesday. Cheers! |
Changes proposed in this Pull Request:
Closes #2636
In this PR I remove the modal that warns the merchant before crating a product if certain conditions are met. The modal was shown during the creation or update action of a product when:
The original modal was intended to warn the merchant about the excluding sync conditions. The interaction looked as follows:
Screen.Recording.2023-11-17.at.09.00.37.mov
The intended behaviour was to "force" merchant to change the settings and make the product setup consistent. But this has backfired and is causing merchants a lot of problems. The product that is using the excluded from sync category can't be updated in any way.
The simplest fix is to remove the modal entirely. This solution is supported by the fact that the Facebook Product sync section will show what is blocking the sync for that product so no information is being lost. This feature has been implemented some time ago and looks like this:
phpcs
checks? Please removephpcs:ignore
comments in changed files and fix any issues, or delete if not practical.Screenshots:
Detailed test instructions:
Marketing > Facebook > Product sync > Exclude categories from sync
and add that category to the excluded listdevelop
(rebuild required) branch where this operation should failAdditional details:
The modal was displayed in two cases:
I am removing modal for both cases. For the case 2 the modal was never displayed due to a bug.
The
<script>
added to the footer was doing an AJAX call with a wrong parameterfacebook-for-woocommerce/includes/Admin.php
Line 1553 in c4c7b6a
when a different name was expected by the AJAX handler:
facebook-for-woocommerce/includes/AJAX.php
Line 177 in c4c7b6a
This makes the total removal of the popup modal safe.
Changelog entry