Current Price and Discount doesn't match with Amazon
-
The Discounted/Current Price($MSRP2) and Discount % in my product page doesn’t match with the Amazon product page.
This is the only part of the code I’ve modified:
$result = '<table class="amazon-price">'; if(!empty($price) && !empty($MSRP)) { if($price==$MSRP2){ $result .= '<tr><td class="label">Sale Price:</td><td class="amount sale-price">$'.$price.'</td></tr>'; }else{ $result .= '<tr><td class="label">List Price:</td><td class="amount list-price">$'.$MSRP2.'</td></tr>'; $result .= '<tr><td class="label">Sale Price:</td><td class="amount sale-price">$'.$price.'</td></tr>'; $MSRP2 = number_format($MSRP /100,2); $percent = ($Savings/$MSRP2); $result .= '<tr><td class="label">You Save:</td><td class="amount discount-price">$'.number_format($MSRP2-$price, 2, '.', '').' ('.number_format($percent,2).'%)</td></tr>'; } } elseif(!empty($price) && empty($MSRP)) { $result .= '<tr><td class="label">Sale Price:</td><td class="amount sale-price">$'.$price.'</td></tr>'; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Current Price and Discount doesn't match with Amazon’ is closed to new replies.