Show prices

  • Posts: 12
  • Thank you received: 0
11 years 4 months ago #110624

Hi
I am new to hikashop
i want to know how can we display prices for a product in such a manner
MRP=100$
Sale Price=9$
Savings=1$
There should be a crossed line on MRP

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #110668

Hi there,

You can add the MRP in the "Retail price" of your product configuration.
It will then be displayed on the front end. However if you want to displayed this "saved" you'll need to add some code in the view listing_price of product using something like:

$saved=$this->row->product_msrp-$price->price_value_with_tax;
echo JText::_('SAVED').' '.$this->currencyHelper->format($saved,$price->price_currency_id); 

Please Log in or Create an account to join the conversation.

Time to create page: 0.041 seconds
Powered by Kunena Forum