From ba713609288cd399ab108c8251c431004556d7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Eduardo=20C=C3=A1nepa=20Cihuelo?= Date: Wed, 18 May 2016 12:17:00 -0300 Subject: [PATCH] Show normal price for product ID This fix the issue when show "related products" --- wpsc-components/theme-engine-v1/helpers/template-tags.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpsc-components/theme-engine-v1/helpers/template-tags.php b/wpsc-components/theme-engine-v1/helpers/template-tags.php index 2422a9cadd..41040137e9 100644 --- a/wpsc-components/theme-engine-v1/helpers/template-tags.php +++ b/wpsc-components/theme-engine-v1/helpers/template-tags.php @@ -1676,7 +1676,7 @@ function wpsc_the_product_price_display( $args = array() ) { extract( $r ); // if the product has no variations, these amounts are straight forward... - $old_price = wpsc_product_normal_price( $id ); + $old_price = wpsc_the_product_price( false, true, $id ); $current_price = wpsc_the_product_price( false, false, $id ); $you_save = wpsc_you_save( array( 'type' => 'amount', 'product_id' => $id, ) ); @@ -1702,7 +1702,7 @@ function wpsc_the_product_price_display( $args = array() ) { // price should reflect the "normal" price, not the sales price, to avoid confusion if ( $old_price_number == $current_price_number ) { $show_old_price = false; - $current_price = wpsc_product_normal_price( $id ); + $current_price = wpsc_the_product_price( false, true, $id ); } }