Closed laurelfulford closed 1 month ago
My only concern is the NYP w/o a suggested or minimum price case.
Ahhh, that's a good point!
I've added a check for NYP on the front-end (don't show buttons for products without prices), but in the editor they're still available since you can set a price for the block once you pick a product. Hopefully this isn't too confusing!
This should probably need some more testing steps, like:
Let me know if that makes sense, or if you have any questions -- thanks @chickenn00dle!!
Thanks @chickenn00dle! 🙌
Probably a bit of overkill, but I created a PR to merge trunk into epic/ras-acc here just to make sure the NYP stuff got removed, and nothing else weird happened (the view.php files are VERY different!).
:tada: This PR is included in version 4.3.5-alpha.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This PR is included in version 4.3.5 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
All Submissions:
Changes proposed in this Pull Request:
This PR uses WooCommerce's
purchaseable
check to see if a product can be purchased before it can be assigned to a Checkout Button block, or before the Checkout Button block is rendered on the front-end.This change is to fix an edge case where you can assign a price-less product to the Checkout Button block, which causes the modal checkout to throw an error. Some products -- like NYP products -- don't seem to throw the same error even if they don't have a suggested or minimum price set; using the
purchaseable
check seems to account for this but I'd definitely appreciate thoughts about this approach!See 1207817176293825-as-1208327956169322
How to test the changes in this Pull Request:
npm run build
.Other information: