Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MSRP @ savings


davej2k

Recommended Posts

I've installed the MSRP contributition and it all seems to be working ok except for the savings are only being shown on special priced items.

 

The code that I'm sure is responsible for this is

$products_price = '<table class="PriceList" border="0" width="100%" cellspacing="0" cellpadding="0">';

$new_price = tep_get_products_special_price($product_info['products_id']);

if ($product_info['products_msrp'] > $product_info['products_price'])

$products_price .= '<tr><td>' . TEXT_PRODUCTS_MSRP . '</td><td class="oldPrice" align="right">' . $currencies->display_price($product_info['products_msrp'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td></tr>';

$products_price .= '<tr><td>' . TEXT_PRODUCTS_OUR_PRICE . '</td>';

if ($new_price != '')

{$products_price .= '<td class="oldPrice"';}

else

{$products_price .= '<td';}

$products_price .= ' align=right>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td></tr>';

if ($new_price != '')

{$products_price .= '<tr class="productSpecialPrice"><td>' . TEXT_PRODUCTS_SALE . '</td><td align=right>' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td></tr>';}

if ($product_info['products_msrp'] > $product_info['products_price'])

{if ($new_price != '')

{$products_price .= '<tr><td>' . TEXT_PRODUCTS_SAVINGS . '</td><td align=right>' . ' (' . ceil((($product_info['products_msrp'] - $new_price) / $product_info['products_msrp']) * 100) . '% )</td></tr>';}

else

{$products_price .= '<tr><td>' . TEXT_PRODUCTS_SAVINGS . '</td><td align=right>' . ' (' . ceil((($product_info['products_msrp'] - $product_info['products_price']) / $product_info['products_msrp']) * 100) . '% )</td></tr>';}}

else

{if ($new_price != '')

{$products_price .= '<tr><td>' . TEXT_PRODUCTS_SAVINGS . '</td><td align=right>' . ' (' . ceil((($product_info['products_price'] - $new_price) / $product_info['products_price']) * 100) . '% )</td></tr>';}}

$products_price .= '</table>';

 

You can see from our site www.qcumclothing.com

how its being displayed, special items at the moment are Redbear t-shirts.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...