Price/Sale Price not showing in cart and checkout
-
Hello,
in cart section and checkout, i don’t see the price / Sale Price .
some customer think they don’t get the discounts.
Can i show the discount on cart and checkout page in any way ? thank you !
Thank you Aizaz ,
I tried but it works only with single products, not with variations. Any advice ?
in any case, thanks for your sharing !
Hello,
Sorry to say there are no options in theme settings to achieve this:
Try to add this PHP code in the child theme.
function my_custom_show_sale_price_at_cart( $old_display, $cart_item, $cart_item_key ) {
$product = $cart_item['data'];
if ( $product ) {
return $product->get_price_html();
}
return $old_display;
}
add_filter( 'woocommerce_cart_item_price', 'my_custom_show_sale_price_at_cart', 10, 3 );
Try to use any 3rd party plugin at your own risk. We have never tested any plugin like this.
https://wordpress.org/plugins/woo-discount-price/
Best Regards.