Author Topic: "Baseprice with Tax, but without discounts" not visible  (Read 193 times)

ex3mist

  • Jr. Member
  • **
  • Posts: 74
"Baseprice with Tax, but without discounts" not visible
« on: October 17, 2020, 11:50:49 am »
Hello,
I started building new web site and I need some help.
I'm having a problem to show the "Baseprice with Tax, but without discounts" in the product and category page. In the first picture you can see that there is a Span with class "price-crossed" that should display it. But the Div in it has class "vm-nodisplay" and of course it is not visible. Also the there are two Spans in that Div - first shows the label, and the secont should show the value of the price, but it contains nothing.
I've found the Span with the class "price-crossed" in the /components/com_virtuemart/sublayouts/prices.php file (picture 2), but the sub Div with its contend is obviously generated from another file.
I saw some topics on that, but I don't think they offer correct solution. What I think should be done is to remove the "vm-nodisplay" class from the Div, and add the code that shows the value of the "Baseprice with Tax, but without discounts".
Unfortunately, I don't know which file and how it should be edited, that's why I'm asking for help. You can see the pricing settings in the backend in the third picture. As I said, the same is for the product page and category page. For the cart (picture 4) there is a Span with class "line-through" that should display that same price, but again it has no value. I guess another file have to be edited to add it there too.

Any help will be appreciated.

Joomla 3.9.22
VM 3.8.4

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27898
  • Always on vacation
    • Jenkin Hill Internet
Re: "Baseprice with Tax, but without discounts" not visible
« Reply #1 on: October 17, 2020, 13:40:41 pm »
This is what I have using VMBeez3 template.


Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.8.5 10338 on Joomla 3.9.22 PHP 7.4.9

ex3mist

  • Jr. Member
  • **
  • Posts: 74
Re: "Baseprice with Tax, but without discounts" not visible
« Reply #2 on: October 17, 2020, 14:24:07 pm »
Hello,
Thanks for the replay!
I did it as you show, but unfortunatelly there is no result (see the picture).
I don't set tax because I don't need it. And thats why I'm not showing tax amount, price without tax, etc. But anyway, when I make the setting as yours, you can see that this Span with "price-crossed" class is still inactive. Is there any setting that I'm missing? The crossed price is shown in your picture. This is important thing, I don't believe you've missed it...

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27898
  • Always on vacation
    • Jenkin Hill Internet
Re: "Baseprice with Tax, but without discounts" not visible
« Reply #3 on: October 17, 2020, 18:23:34 pm »

I don't set tax because I don't need it. And thats why I'm not showing tax amount, price without tax, etc.


You must have a tax set to use the displa option with strikethru. Set tax to 0.000 and apply it to your products.

This is for an older VM version but still applies:  See http://forum.virtuemart.net/index.php?topic=145668.0
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.8.5 10338 on Joomla 3.9.22 PHP 7.4.9

ex3mist

  • Jr. Member
  • **
  • Posts: 74
Re: "Baseprice with Tax, but without discounts" not visible
« Reply #4 on: October 20, 2020, 13:49:12 pm »
Yes, you were right - it all worked when I set a tax. Even if it's 0%. Thanks!