Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show normal price for product ID #2082

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wpsc-components/theme-engine-v1/helpers/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, ) );

Expand All @@ -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 );
}
}

Expand Down