News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Clear scratched price (discounted)

Started by aliziaye, December 10, 2020, 10:39:49 AM

Previous topic - Next topic

aliziaye

Hello to all
Please see the attached photo
After applying the price to the product, it shows the price twice and draws a line on one of them
How can I clear the black price?
Please guide me so that I can translate your answers in Google because I do not know English

AH

That will be because VM sees a difference in prices in the price display template - and treats it as if there were a discount.

This is probably because of price rounding and decimal places.

\components\com_virtuemart\sublayouts\prices.php

Regards
A

Joomla 4.4.5
php 8.1

aliziaye

What changes should I make to the prices.php file?

AH

You may not need to

Show your price configuration settings

/administrator/index.php?option=com_virtuemart&view=config

Pricing tab
Regards
A

Joomla 4.4.5
php 8.1

aliziaye


AH

That looks fine

But I now see you have a custom template - which means you are using display changes to the core files

Turn of the template override to see what happens when you do that - this will show if it is the template that is at fault
Regards
A

Joomla 4.4.5
php 8.1

aliziaye


AH

Can you post an url for me to take a look ?

Quickview is not core - it is either an override template and/or plugin

I notice that there is no scratched price - but this is a product view and not a category view
Regards
A

Joomla 4.4.5
php 8.1


AH

This may be caused by your VM configuration - set Round Only Display - On

Regards
A

Joomla 4.4.5
php 8.1

aliziaye


aliziaye


jenkinhill

Try unsetting the display of "New baseprice modified by chosen product variant"  - the page code suggests that this is the strikethru price displayed.

Or maybe use CSS to hide the value, eg:

.PricebasePriceVariant {
      display: none;
}
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

aliziaye

i unset "New baseprice modified by chosen product variant" And the problem was solved But if I discount the product, no one will notice the discount

AH

Regards
A

Joomla 4.4.5
php 8.1