Support » Plugin: WooCommerce » How to show the original price in the cart?

Viewing 2 replies - 1 through 2 (of 2 total)
  • This code will show the sale price of all the products in the cart:

    if ( sizeof( $woocommerce->cart->get_cart() ) > 0 ) {
    	foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) {
    		$_product = $values['data'];
    		echo woocommerce_price( $_product->sale_price );
    	}
    }

    Thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to show the original price in the cart?’ is closed to new replies.