I’m trying to customize a WooCommerce template (cart.php) with Tailwind classes. I copied the source template from the plugin’s folder into mysagetheme/woocommerce/cart/cart.php But:
hot reloading is not working, despite the fact that it works when editing .blade files
the Tailwind compiler seems oblivious to the fact that I’m adding Tailwind CSS classes to the code of the cart.php WooCommerce file.
How could I make aware both Vite (for hot reloading), and the Tailwind compiler (for CSS code compilation) of the fact that I am customizing WooCommerce template .php files?
I’ve just moved to Sage11 from sage10 for developing custom theme for my WordPress website. I’m using WooCommerce and trying to customize the product template. For that I’m adding single-product.blade.php and singple-product-content.blade.php files inside the theme directory: /mytheme/views/woocommerce. Unluckily it’s not overriding the the default structure of WooCommerce product template.
Do I need to do any additional steps to make this work or to setup WooCommerce in sage 11 environment?
@Er_Suraj Have you had any luck? I’m having the same issue. I was able to customize wooCommerce product template in earlier Sage releases, but have not been able to with Sage 11. I’ve tried the generioi/sage-woocommerce, but it doesn’t seem to help.
I’ve had strange results - it doesn’t work on a local version, but it works as soon as I deploy to a live version. I still haven’t been able to figure out the difference causing the issue. I also found if I created a new installation with generoi, it works. But cannot figure out why I’m getting the inconsistencies.