WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] How to show the original price in the cart? (3 posts)

  1. Fo0rNiK
    Member
    Posted 1 year ago #

    Hello,

    I have to show the original price in the cart?
    I have the sale price but I need to show the original price!

    Idea?

    Thanks you

    http://wordpress.org/extend/plugins/woocommerce/

  2. alancf
    Member
    Posted 1 year ago #

    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 );
    	}
    }
  3. Fo0rNiK
    Member
    Posted 1 year ago #

    Thank you!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic