php - How can I add a grand total in a shopping cart in woocommerce? -


this code of shopping cart subtotals (item x qty):

<?php       echo apply_filters( 'yith_ywraq_hide_price_template' , wc()->cart->get_product_subtotal( $_product, $raq['quantity'] )); ?> 

how can add grand total? (sum of subtotals)

thank you!

you can post more (relevant) code have more possibilities of answers, if create method in wc()->cart maybe can calculate total amount. wc()->cart->get_total_amout()

i think because wc()->cart can handle basket.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -