Bill total not shown immediately in Virtuemart Shopping Cart

Started by optmax, November 01, 2013, 17:07:48 PM

Previous topic - Next topic

optmax

J! 2.5.14
VM 2.0.24

VirtueMart Shopping Cart module 2.0.24
with Options Show product price set to Yes

When the first product is added to the cart the 'billTotal' is not shown in the Ajax cart - see screenshot 1
If the page is refreshed (or another product is added) the the 'billTotal' is shown correctly -  see screenshot 2

In the cart default.php at line 46
<?php if ($data->totalProduct and $show_price and $currencyDisplay->_priceConfig['salesPrice'][0]) { ?>
<div class="total" style="float: right;">
<?php echo $data->billTotal?>
</div>


$data->totalProduct is 0 before the refresh and 1 after

Is this some kind of Ajax timing problem?

[attachment cleanup by admin]

jenkinhill

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

optmax

I should have said that this occurs in a clean install of Joomla! 2.5.14 and VM 2.0.24 with sample data but no additional extensions.

There are no errors in the Chrome browser  console.

Any pointers as to which js code I should investigate?


optmax

No not sorted, problem still exists in VM 2.6.18

But in VM 3.0.8 total shows immediately item added to cart