Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Showing the sale and normal price in the modules/products_new.php


MarkDijkstra

Recommended Posts

Posted

How can i show both prices(sales and normal) price at once in the modules/products_new.php file. I cant get it working, they are showing the same 2 value's.

 

Thanks

Posted

I believe there is a contribution (Add-On) for this.

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

Thanks but i have seen that i have to alter a lot of stuff, i am looking for a simple way, because most of pages can display both prices but not on this page/file.

 

 

here's the code that i am using right now

if ($new_price = tep_get_products_special_price($new_products['products_id'])) {
   //old price
   $products_price_new = '<del>' . $currencies->display_price($new_price, tep_get_tax_rate($new_products['products_tax_class_id'])) . '</del>';
   //new price		   
   $p_price  = '<span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($new_products['products_tax_class_id'])).'<br/><b>'.INCTAX.'</b></span>';

} else {
   //price without discount
   $p_price =  '<span class="productSpecialPrice">'.$currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])).'<br/><b>'.INCTAX.'</b>   </span>';
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...