News:

Support the VirtueMart project and become a member

Main Menu

Visible discount / bargain prices

Started by Clay-D, February 03, 2014, 07:35:37 AM

Previous topic - Next topic

Clay-D

hi there,
I would like to know how I can display a products old and new price visibly?
For example a product was $25 before and now it's $10, I would like to show the old price crossed out.

Before: $25
Now: $10

Something like that.

Anyone?

jenkinhill

#1
The default VirtueMart 2.0.26d productdetails price display template is set to use a strikethrough on the basePriceWithTax figure.

Make your tax rule first for Tax/VAT per product - if you do not charge sales tax then make the value of that tax 0.0000    This ensures that the basePriceWithTax will be displayed as long as it is set in Config/Pricing.

Then for each discounted product use a price override, set to Overwrite final.  Test! Then in Config/Pricing untick those prices you don't want to display.

Finally use language overrides to change the price descriptions on the page - http://forum.virtuemart.net/index.php?topic=113895.0

If you want to change the colour of the strikethrough use css.

The attachment shows what you get.

[attachment cleanup by admin]
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

Clay-D

hey jenkinhill,
thanks for your help.

I see what you mean. But I am not there yet.
I have filled in all the fields. Which is the one that fills in the basePriceWithTax field? (See my attachment. )



[attachment cleanup by admin]

jenkinhill

It is "Baseprice with Tax, but without discounts"  You need only that one and "Final salesprice" turned on.
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

Clay-D


hoknight

#5
Quote from: jenkinhill on February 06, 2014, 23:31:41 PM
It is "Baseprice with Tax, but without discounts"  You need only that one and "Final salesprice" turned on.

Finally, the Baseprice display on the page.However,how to display the sale price only on the product detail page,when the product without discount?

Thanks.

[attachment cleanup by admin]

jenkinhill

#6
Slight variation, I make a category called discount, and make a calculation rule at eg -20% discount and assign it to that new category.
Then for each product that is discounted I assign them to the discount category as well as their normal category. Then the discount shows only for those products.

See pic, the hammer is assigned to the discount category as well as hand tools.


[attachment cleanup by admin]
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

hoknight

#7
Quote from: jenkinhill on February 15, 2014, 18:57:44 PM
Slight variation, I make a category called disount, and make a calculation rule at eg -20% discount and assign it to that new category.
Then for each product that is discounted I assign them to the discount category as well as their normal category. Then the discount shows only for those products.

See pic, the hammer is assigned to the discount category as well as hand tools.


On my case,we have assigned difference discount(-%) on all all categories for several shopper groups.Once our buyer logged-in to our site,it can be showing the base-price and sale price on product detail page right now.(https://www.dropbox.com/s/ix37xxmbv39s1v1/ScreenShot289.jpg)

Since we don't have any discount for guest.
Can you tell me how to:
1. display the both base-price and discount price on category page too,when the buyer logged-in from difference group.(https://www.dropbox.com/s/1ty1jr1h3wme7ns/ScreenShot288.jpg)

2. display the sale-price only(hide the base-price) on product detail page for guest on all categories.(product detail page:https://www.dropbox.com/s/z8y82ktuwb5g6ik/ScreenShot291.jpg)
This is base-price display only for Guest on category page.(https://www.dropbox.com/s/adhpin32nf4e599/ScreenShot290.jpg)

Tax & Calculation Rule configuration for a shopper group: https://www.dropbox.com/s/0datt6ysbt9950a/ScreenShot293.jpg
Shopper group configuration: https://www.dropbox.com/s/66fvy94s5dq4rgj/ScreenShot292.jpg

Thanks.




AH

Assigning a product to a new category to get a discount seems a great way to lose that lovely ranking it might have once had!?
Regards
A

Joomla 4.4.5
php 8.1

jenkinhill

It is still in the normal category as well as discount......
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

AH

Jenkin, so the product is applied to an additional non published category?
Regards
A

Joomla 4.4.5
php 8.1

jenkinhill

The extra cat does not need to be published to show the sale price. OTOH if it is published then it can provide a menu link to all discounted items.
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

AH

Yep, thanks.

I now see how it can function
Regards
A

Joomla 4.4.5
php 8.1

Renata

Thank You! this was for me the solution!

Kind regards
Renata
Quote from: jenkinhill on February 03, 2014, 17:03:35 PM
The default VirtueMart 2.0.26d productdetails price display template is set to use a strikethrough on the basePriceWithTax figure.

Make your tax rule first for Tax/VAT per product - if you do not charge sales tax then make the value of that tax 0.0000    This ensures that the basePriceWithTax will be displayed as long as it is set in Config/Pricing.

Then for each discounted product use a price override, set to Overwrite final.  Test! Then in Config/Pricing untick those prices you don't want to display.

Finally use language overrides to change the price descriptions on the page - http://forum.virtuemart.net/index.php?topic=113895.0

The attachment shows what you get.
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

MalikaS

Is there any way to work with override prices and prevent virtuemart to show double prices.

I am using virtuemart VirtueMart 2.6.6
and latest joomla 2.5,

and I applied this solution http://forum.virtuemart.net/index.php?topic=124002.0 and it helps when you dont want all product prices to be crossed.
But I want to show prices in this way:

Old price
New price (price override)

For the rest of the items, it should show ONLY old price.
But now it is showing 
Baseprice with Tax, but without discounts          
Final salesprice
and then when you dont have overide, it is showing double prices...I was SEARCHING THE FORUM BUT without any clue how to achieve this.

Thanx