VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: fulopkrisztina on March 01, 2018, 21:23:42 PM

Title: Base price - discounted price
Post by: fulopkrisztina on March 01, 2018, 21:23:42 PM
Hi there,

I have virtuemart 3.0 and Joomla 3.8. I want to show prices in the following format:

Base Price (line through)
Discounted Price (bigger size)
Amount of Discount

but by the product, without discount, I want to showin only the base price ...

How can I do this?

Title: Re: Base price - discounted price
Post by: jenkinhill on March 02, 2018, 11:30:05 AM
http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: Base price - discounted price
Post by: dsrpmedia on April 30, 2018, 22:20:53 PM
I too am looking for exactly this - the link provided was not very helpful

there should be a way of doing this out of the box?!
Title: Re: Base price - discounted price
Post by: jenkinhill on April 30, 2018, 23:36:54 PM
This was not followed though as fulopkrisztina has not been back in the forum since making that one post.

It can, of course, be done using overrides.
Title: Re: Base price - discounted price
Post by: dsrpmedia on April 30, 2018, 23:48:40 PM
I guess there would be 2 pages to edit? (1 for the category and 1 for the product details?), and I`d have to add some sort if 'if' statement so that the base price only loads if there is a discount?

If you could point me in the right direction for the files I would need to overwrite it would be greatly appreciated
Title: Re: Base price - discounted price
Post by: dsrpmedia on May 01, 2018, 06:23:04 AM
figured it out  sublayouts/prices.php

just had to move the salesPrice into the if ($product->prices['discountedPriceWithoutTax'] area!
Title: Re: Base price - discounted price
Post by: jenkinhill on May 01, 2018, 10:17:55 AM
That's it.