Post by bill_p » Tue Jan 22, 2013 11:56 pm

I have added a custom field (units) to the product table.
All is well on the admin side - I can edit/save the "units" field ok.

On the catalog side, the "units" field is not available in controller/checkout/cart.php.
I have modified model/catalog/product.php by adding:
'units' => $query->row['units'],

in the if ($query->num_rows) {
return array(
section of the code.

The field is available when I drill down through the categories, but when I click on "Shopping Cart" I get the error:
"Undefined index: units .....catalog_controller_checkout_cart.php" (long message - I shortened it).

Obviously the "Undefined index" indicates the field is not available.
What am I missing?

Regards,
Bill

Newbie

Posts

Joined
Mon Mar 26, 2012 9:24 pm

Post by test03021 » Sun Sep 08, 2013 1:31 pm

Can you pl. let us know how you added the filed in Admin section.

Newbie

Posts

Joined
Wed Mar 13, 2013 7:02 pm

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore
Who is online

Users browsing this forum: No registered users and 18 guests