VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: Robert Casas on May 08, 2009, 21:36:54 PM

Title: Bur report and possible solution
Post by: Robert Casas on May 08, 2009, 21:36:54 PM
I have Joomla 1.5.10 and VM 1.1.3. The bug process is:
- Add a product (1 only) to buy
- A coupon discount (this is important) - test3 for example
- Go to cart
- Delete the product

You will get this (on the cart component):
Notice: Undefined variable: total in C:\Apache\Apache2\htdocs\lsshop2\administrator\components\com_virtuemart\html\shop.basket_short.php on line 117

On line 117 total is used to substract the coupon on session, but I think is out of scope. Adding this when checking if cart is empty:
if ($cart["idx"] == 0) {
   $empty_cart = true;
   $checkout = false;
   // Begin Robb
   $total = 0;
   // End Robb

Thus enabling the variable.
Hope this helps.
Title: Re: Bur report and possible solution
Post by: aravot on May 13, 2009, 08:59:51 AM
Thank you fixed in 1.1.4