Post by Las » Tue Dec 04, 2007 3:58 am

Hello, I'm using the 0.7.7 version.

I add a product to my shooping cart without any problems, BUT when I change the quantity and click on update, the quantity does not change, it stays "1".

I've checked the code in the cart.php file, everything is looking right:

Code: Select all

$product_data[] = array(
          			'key'      => $result['key'],
          			'name'     => $result['name'],
          			'model'    => $result['model'],
          			'thumb'    => $image->resize($result['image'], 50, 50),
          			'option'   => $option_data,
          			'quantity' => $result['quantity'],
          			'stock'    => $result['stock'],
					      'price'    => $currency->format($tax->calculate($result['total'], $result['tax_class_id'], $config->get('config_tax'))),
          			'total'    => $currency->format($tax->calculate($result['total'] * $result['quantity'], $result['tax_class_id'], $config->get('config_tax'))),
					      'href'     => $url->href('product', FALSE, array('product_id' => $result['product_id']))
        		);

Las
Newbie

Posts

Joined
Thu Sep 27, 2007 6:33 am

Post by quetza » Fri Dec 14, 2007 1:02 am

This is a bug that exists in the Green template but not in the default.

Look in content/cart.tpl and make the following changes:

       
becomes
       

and
        ]" value="" size="3" />
becomes
        ]" value="" size="3" />





Avoid using anything other than the default template as your base.

Newbie

Posts

Joined
Wed Dec 12, 2007 10:38 am

Post by Tokai » Wed Feb 20, 2008 4:03 am

Thanks for this, I have just fixed a problem that I only just found... ::) But I am using the default anyway as base...

Anyway the problem was this, upon adding to the cart (front end of course) I got this error over the quantity.


Notice: Undefined variable: column_qty in /home/mbseu/public_html/store/catalog/template/default/content/cart.tpl on line 14

so when I did search, I came across this thread and applied your bug fix and it removed that horrid silly line messing up my nice shop :)

Spirit Mind Body UK Directory | iPyramidia Holistic Web Design


New member

Posts

Joined
Tue Aug 14, 2007 4:55 pm

Who is online

Users browsing this forum: No registered users and 2 guests