News:

Looking for documentation? Take a look on our wiki

Main Menu

Displaying discounted price

Started by spacecadet, November 14, 2013, 08:22:44 AM

Previous topic - Next topic

spacecadet

Hello,

my client occassionally offers discounts on selected products. For example, this month, shampoo is $5 instead of $10.

I would like to have the product page for the shampoo display this by showing the usual price with a line through it, like this $10, and then the current correct discounted price, like this, $5.

So, I want it to appear like this:

normal price: $10
discounted price: $5

Ok. That's what I am trying to do. I think I understand how to do this, setting the pricing options in >configuration, etc etc etc but for some reason, no matter what I do, I cannot get any prices to display except the final price.

I've been posting here on this question since July, across a couple of threads. My question gets buried each time under a pile of different, unrelated questions, and answers which don't go to the core of my problem. I've tried everything suggested, and nothing seems to budge my problem. No matter what I do or change or check or uncheck, only the final price displays.

I am using custom virtuemart template from MoWebSo. However: it doesn't have a default_showprices.php file, so as far as i can see, its not an override issue. having said that, I also don't fully understand how their custom template is handling the php, so it may be that this is the issue, even though the specific relevant override file is not present. I don't know. The problem is that turning the template on and off doesn't make any difference, so the template provider considers it not template related.

At this stage, therefore, I don't know how to bust out of this wet paper bag that I am stuck in.

I just want to be able to display discounted prices with a line through the normal price.

please, can someone help?

thanks.

joomla 2.5.16, vm 2.0.24

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

spacecadet

Thanks for the reply.

Following those instructions does not result in the old and new pricing being displayed. It simply gives the new discounted price. The old price does not display.

I followed your instructions correctly. Across several threads now. I do not have an override affecting this. I am even using the default_showprices.php file you posted. I do have a custom template for VM2: but if I turn the template off it makes no difference: the only price which displays is the final discounted price.

In the thread that you link to above, other people are reporting that the instructions given don't result in the old price with strikethrough, and the discussion continues on to achieving this through template overrides.

So, I don't know. I've triple checked everything. I guess I conclude that standard VM2.0.24 cannot put a strikethrough on the existing price and display a discounted price. I will  make a custom template override I guess.