a7beb3b845
* add missing `add_to_cart` properties to product schema Also camelcase properties. * switch namespace to `/wc/store/` * add experimental action for perisisting and item to a given collection * refactor ProductButton to use hooks (initial pass) This is just the initial refactor to figure out the logic. I’m going to do another pass to see about extracting some of this to a custom hook (because it’s kind of gnarly to have to repeat… and it’s possible it can be simplified as well). * add new properties to tests and ensure test is using the same product instance values as the rest request * refactor to add custom internal only useAddToCart hook. * fix value extraction from product object * revert casing changes |
||
---|---|---|
plugins/woocommerce-blocks |