plugins – WoCommerce Cart is not showing pricing

Question

I am having issue with cart.php under commerce template. Product Price and Total are not displaying.

<?php
 echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key );
?>

Not Displaying price

but if i use

 <?php
     echo  WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] );
    ?>

Price is displaying. Same happening with Sub total as well.
What could be reason for the same?

0
Aayush Bansal 2 weeks 2021-11-11T21:20:40-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse