Show total savings per product in listing and details

  • Posts: 50
  • Thank you received: 0
  • Hikashop Business
9 months 3 weeks ago #285231

-- url of the page with the problem -- : www.2-rad-schwede.de
-- HikaShop version -- : 3.2.1 business
-- Joomla version -- : 3.8.3
-- PHP version -- : 7.0.16
-- Browser(s) name and version -- : mozilla latest version

Hi,

best wishes for new year .

I'm looking to display the saved money for our products (product_msrp - cheapest prices incl discounts) if the msrp-price is set. Is there an easy way to do so? Ideally in the listing and the detailed product page.

thanks and best regads
Markus

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

  • Posts: 63629
  • Thank you received: 9166
  • MODERATOR
9 months 3 weeks ago #285242

Hi,

I'm afraid not. You'll have to edit the file "listing_price" of the view "product" via the menu Display>Views and modify the code there to display what you want.
www.hikashop.com/support/documentation/1...-display.html#layout

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

  • Posts: 50
  • Thank you received: 0
  • Hikashop Business
9 months 3 weeks ago #285249

Hi Nicolas,

thanks. That was also my fear.

How can I evaluate the cheapest price (reflecting the discounts) for the calculation?

best regards
Markus

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

  • Posts: 63629
  • Thank you received: 9166
  • MODERATOR
9 months 2 weeks ago #285250

Hi,

In that view file, you have the object

$this->row->prices[0]
It contains the price with discounts in
$this->row->prices[0]->price_value_with_tax
and the price without discounts
$this->row->prices[0]->price_value_without_discount_with_tax
The MSRP is in $this->row->product_msrp

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

Time to create page: 0.078 seconds
Powered by Kunena Forum