Compatibility with WC FSE blocks
-
Hey there!
I was searching for a Wishlist plugin that is fully compatible with the new WooCommerce Full Site Editing blocks (not the classic template block, but the new split up block). I was not able to found one, but yours came close. I just had to make 1 change in the plugin code to make it work, I was hoping you could test this and implement in the next version, so I don’t have to worry about re-applying this fix after updates.
Because for whatever reason the global variable $product is just the name of the product in my usecase, I needed to add the following to the Shortcode.php files on line 49:
else if (get_post_type(get_the_ID()) === 'product') { $product_id = get_the_ID(); }
Perhaps this fix needs more detail to it, I was not able to fully test it in all possible use cases, but I was hoping you can build a permanent fix in the next release. Usefull to know: Without the fix, the data-product_id in the add to wishlist button was empty.
Kind regards,
Rob van den Bogaert @ Maatwerk Online
- The topic ‘Compatibility with WC FSE blocks’ is closed to new replies.