VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: optmax on November 01, 2013, 17:07:48 PM

Title: Bill total not shown immediately in Virtuemart Shopping Cart
Post by: optmax on November 01, 2013, 17:07:48 PM
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]
Title: Re: Bill total not shown immediately in Virtuemart Shopping Cart
Post by: jenkinhill on November 01, 2013, 17:50:35 PM
Probably some JavaScript conflict. Try js debugging.
Title: Re: Bill total not shown immediately in Virtuemart Shopping Cart
Post by: optmax on November 02, 2013, 01:45:33 AM
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?
Title: Re: Bill total not shown immediately in Virtuemart Shopping Cart
Post by: kelecz on April 27, 2015, 20:10:58 PM
Did you resolve this?
Title: Re: Bill total not shown immediately in Virtuemart Shopping Cart
Post by: optmax on May 02, 2015, 00:29:56 AM
No not sorted, problem still exists in VM 2.6.18

But in VM 3.0.8 total shows immediately item added to cart