VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: djlian on June 20, 2016, 09:31:38 AM

Title: Double prices in category view even when there is no override price
Post by: djlian on June 20, 2016, 09:31:38 AM
Hello.

I'm using Joomla 3.5.1 and VirtueMart 3.0.16 (update via Joomla).

The template is MegaDeal 2 by Joomshaper, but the problem is also available in Beez 3 and in other templates.

In category view next to final price I have the same value crossed even when I haven't used the override function.

Please see the attached file.

Can you help me to fix it?

Best regards
Sasho
Title: Re: Double prices in category view even when there is no override price
Post by: jenkinhill on June 20, 2016, 11:06:20 AM
Exact URL of that page?
Title: Re: Double prices in category view even when there is no override price
Post by: djlian on June 20, 2016, 11:16:51 AM
http://beautyarena.bg/other

The same for all categories..
Title: Re: Double prices in category view even when there is no override price
Post by: GJC Web Design on June 20, 2016, 12:15:25 PM
from memory the logic in sublayout prices.php to show a discount isn't correct if u have no taxes applied to the products

You need to adjust the logic to get what u want.. 
Title: Re: Double prices in category view even when there is no override price
Post by: jenkinhill on June 20, 2016, 13:04:51 PM
A quick "fix" for the Joomshaper template is to hide the cost price in the display with css:
.PricecostPrice { display:none; }

Alternatively set up a tax rate of zero & apply to the products should work
Title: Re: Double prices in category view even when there is no override price
Post by: djlian on June 20, 2016, 13:14:15 PM
I have already set up zero tax rate and nothing happened.

I will try with the css

Edit: The css hack is not working on men... :(
Title: Re: Double prices in category view even when there is no override price
Post by: jenkinhill on June 20, 2016, 15:10:06 PM
Just tested - adding  .PricecostPrice { display:none; } to the end of   vm-ltr-site.css does work.
Title: Re: Double prices in category view even when there is no override price
Post by: djlian on June 20, 2016, 21:37:27 PM
Thanks. It really works, i was using the wrong css.

But unfortunately it hides all prices, including the ones with discounts. For now I will use it, but I'm trying to contact with joomshaper to see how to fix the problem.

Best regards,

Sasho

Quote from: jenkinhill on June 20, 2016, 15:10:06 PM
Just tested - adding  .PricecostPrice { display:none; } to the end of   vm-ltr-site.css does work.
Title: Re: Double prices in category view even when there is no override price
Post by: jenkinhill on June 20, 2016, 22:04:38 PM
Then be more specific

eg something like  .PricecostPrice vm-display vm-price-value { display:none; }

Learn to use Firebug for css issues.  http://forum.virtuemart.net/index.php?topic=116620.0