Hi all,
First time writing a theme with sage 9 here.
For some reason
{{ WC()->cart->get_cart_subtotal() }}
Outputs the html wrapped in double quotes which results in the html being posted as text in the browser
“<span class=“woocommerce-Price-amount amount”><span class=“woocommerce-Price-currencySymbol”>£</span>0.00</span>”
However, using regular php tags,
<?php echo WC()->cart->get_cart_subtotal(); ?>
the correct html is output and £0.00 is displayed in the browser.
Is this a blade bug? To be honest I’m not keen on blade, to start with. It seems a little like re-writing php to use a different syntax. I’m really not sure that I see the point and its not very well covered in the book on how to actually use it.