Page 1 of 1

Template errors admin/productbased.tpl

Posted: Tue Mar 10, 2015 8:52 pm
by devon93
Hi,

I've had to jump on to this project that uses Opencart with no previous OC experience, so please bear with me.

We've had an issue when we log in to admin and click on Extensions > Shipping > Product based shipping.

When we try to add products nothing happens. I've checked the logs and we have the following errors:

Undefined index: status in /home/xxx/public_html/admin/view/template/shipping/productbased.tpl on line 322
Undefined index: name in /home/xxx/public_html/admin/view/template/shipping/productbased.tpl on line 325
Undefined index: model in /home/xxx/public_html/admin/view/template/shipping/productbased.tpl on line 325

Which is the following code:

Code: Select all

if ($product['status']) {
$enabled_products[$product_id] = $product['name'] . ' (' . $product['model'] . ')';
} else {
$disabled_products[$product_id] = $product['name'] . ' (' . $product['model'] . ')';
}
I'm using Opencart Version 1.5.4

Any direction is appreciated.

Many Thanks!

Re: Template errors admin/productbased.tpl

Posted: Sat Mar 14, 2015 7:28 pm
by devon93
So i'm guessing status, name and model have not been declared yet?

Anyone else had this?