News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Bur report and possible solution

Started by Robert Casas, May 08, 2009, 21:36:54 PM

Previous topic - Next topic

Robert Casas

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.