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

Review wc-square-admin-products.js logic #261

Open
kaushikasomaiya opened this issue Jan 1, 2025 · 2 comments · May be fixed by #266
Open

Review wc-square-admin-products.js logic #261

kaushikasomaiya opened this issue Jan 1, 2025 · 2 comments · May be fixed by #266
Assignees
Labels
priority: high The issue/PR is high priority—if affect lots of customers substantially, but not critically.

Comments

@kaushikasomaiya
Copy link

kaushikasomaiya commented Jan 1, 2025

While testing another issue on my localhost WP site, I noticed the wc-square-admin-products.js is buggy.

On a variable product, once sync is enabled and I reload the page, the script marks the sync checkbox unchecked because it checks for if ( isVariable() && ! $( 'input[id^="variable_sku"]' ).length ) { too early.

This is a bit intermittent too. On Firefox, I am able to replicate it almost everytime on my site as well as the merchant's site.

@vikrampm1 vikrampm1 added the priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. label Jan 2, 2025
@kaushikasomaiya
Copy link
Author

@vikrampm1 @jeffpaul Can we increase the priority, please? It seems to be actually affecting the sync status.

  • Create a variable product, mark it to sync with Square
  • Reload the variable product edit page, it unticks the sync checkbox
  • Saving it reflects the change. An admin / store manager could be unaware of this, and might end up disabling the sync when all they did is just tweaked the product description for example

@vikrampm1 vikrampm1 added priority: high The issue/PR is high priority—if affect lots of customers substantially, but not critically. and removed priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. labels Jan 6, 2025
@kaushikasomaiya
Copy link
Author

@iamdharmesh Since you're looking into this, the other issue is brackets keep getting added when you tick and untick the sync checkmark.
https://d.pr/i/enAQ77

I'll also check if I can come up with definite steps to replicate the sync checkmark issue as right now I can only replicate it on Firefox.

@Sidsector9 Sidsector9 self-assigned this Jan 10, 2025
@Sidsector9 Sidsector9 linked a pull request Jan 11, 2025 that will close this issue
4 tasks
@jeffpaul jeffpaul added this to the Future Release milestone Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high The issue/PR is high priority—if affect lots of customers substantially, but not critically.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants