News:

Looking for documentation? Take a look on our wiki

Main Menu

Virtuemart 4 Cart prices (product, shipping and totals) are blank

Started by finbarr69, July 31, 2025, 08:52:12 AM

Previous topic - Next topic

finbarr69

Hi, VirtueMart 4.4.10 11120 on Joomla 5.1.4

I have not made any template overrides.  In the shopping cart, the product price, the Subtotal Shipment Payment and the Total do not display (please see attached image).

When the payment screen is reached, the charged price is correct, so it is just a display problem on the cart page.

If it matters, there is no tax/vat on this UK site.

As far as I can see in the Configuration, all the relevant price display options are enabled.

Please can anyone advise how to get the prices to show?

The default cart and also the VP One Page shopping cart both have the same problem.

I am due to open the shop today.  :'(


finbarr69

Somewhat disappointed that having paid for Bronze support, this query has as yet had no answers or hints.  :(

iWim

The forum questions are mostly answered by volunteers.
Sometimes Milbo answers.

When you log in to extensions.virtuemart.net you could leave a ticket. Maybe you'll get an answer quicker.
There is also a discord, but you need a certain amount of forum posts...

To your question:
I remember I had something similar with a different cart extension.
In my case I had to change a setting so JS was loaded inline instead of a file.
Maybe you have a similar option in VP One Page...

Do you use something like Admin Tools/RS Firewall?
Are they blocking something?

So people who understand this much better than I do, can help:
When visiting your cart open the Console panel in your browsers devtools.

Copy the errors/warnings here...

Milbo

Thank you iWim. If you did not change any files, then I would take a look on your price configuration in the vm config. Maybe you just do not display the right prices?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

finbarr69

Quote from: iWim on August 10, 2025, 19:59:04 PMThe forum questions are mostly answered by volunteers.
Sometimes Milbo answers.

When you log in to extensions.virtuemart.net you could leave a ticket. Maybe you'll get an answer quicker.
There is also a discord, but you need a certain amount of forum posts...

To your question:
I remember I had something similar with a different cart extension.
In my case I had to change a setting so JS was loaded inline instead of a file.
Maybe you have a similar option in VP One Page...

Do you use something like Admin Tools/RS Firewall?
Are they blocking something?

So people who understand this much better than I do, can help:
When visiting your cart open the Console panel in your browsers devtools.

Copy the errors/warnings here...

Thanks.  I've already said the prices do not show in the standard cart, so the problem is not with the vp_one_page cart (which also does not show the prices).

The cart page shows, but the prices are blank.  See the screenshot in my original post.  This is not being blocked by anything.  To my mind it is one of two things:

1) I have not ticked the correct box to show the price
or
2) The price cannot be calculated because tax or currency are causing a problem.  Tax is turned off, currency is GBP only (British Pound).

I'm looking at /components/com_virtuemart/views/cart/tmpl/bs5-default_cartpricelist.php on line 168 which should display the total.

<div class="col fw-bold text-end"><?php echo $this->currencyDisplay->createPriceDiv ('billTotal'''$this->cart->cartPrices['billTotal'], FALSE); ?></div>

This displays blank.  However, if I add this:


echo $this->cart->cartPrices['billTotal'];
It displays 16, which is my cart price total at the moment.

So the price is there in the data, and the problem is with the currencyDisplay->createPriceDiv function.

I'm still researching, but it seems to be a currency display problem.

For the moment, I can fix it by just bypassing the currency display in the cart, but I'd like to fix it properly.






finbarr69

Quote from: Milbo on August 11, 2025, 11:59:30 AMThank you iWim. If you did not change any files, then I would take a look on your price configuration in the vm config. Maybe you just do not display the right prices?

Thanks Milbo.  I think I've turned on all that I think is needed.  I have attached screenshots of the pricing settings for the cart and the currency setting.  Perhaps you can see something I've missed, having identified that currencyDisplay->createPriceDiv is returning nothing, but $this->cart->cartPrices['billTotal'] contains the correct value.

Thanks for looking at this for me :-)

Kuubs

Do you have a link of the webiste. Probably CSS of the template or a possible override in the tempalte itself

iWim

I tried on a clean local testshop (just Joomla/VM) and it displays the payment/shipment prices as expected.
As does a local and live version of a webshop...

Can you also post screenshots of the configuration of the payment/shipping method itself?

Can you say something about your enviroment?

Maybe post the results of the Joomla Forum Post Assistent
https://forumpostassistant.github.io/docs/
(It's made for the Joomla Forum, but it works here too.)

And yeah, a link to your webshop may help too.

finbarr69

Quote from: Kuubs on August 12, 2025, 13:10:51 PMDo you have a link of the webiste. Probably CSS of the template or a possible override in the tempalte itself

It is not a CSS or Template override problem.

finbarr69

Found it!  ;D

The problem is the user I was testing with is in a special shopper group, not the default.

Having removed myself from that group, the prices show correctly.

Thank you for everyone that spent a lot of time testing.  :-*

The special shopper group had all the prices ticked, and all the labels ticked, and all the rounding digits set to -1

I'm not sure what rounding digits does if it is -1 - maybe that was the problem.  I've attached a screenshot of the special shopper group settings in case it is of interest.

However, the shop owner is not going to use shopper groups for now, so we can close off this as solved.

Thanks again to everyone who took the time to look into it for me.  I hope to be able to return the favour one day.

This is the site: https://carolmcmillansoaps.co.uk/