News:

Looking for documentation? Take a look on our wiki

Main Menu

Base price - discounted price

Started by fulopkrisztina, March 01, 2018, 21:23:42 PM

Previous topic - Next topic

fulopkrisztina

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?


jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

dsrpmedia

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?!

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

dsrpmedia

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

dsrpmedia

figured it out  sublayouts/prices.php

just had to move the salesPrice into the if ($product->prices['discountedPriceWithoutTax'] area!

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum