Post by Gui Siani » Sun Feb 12, 2012 11:42 pm

Sorry if this post was duplicate.. but the search field isn't work!

Please, could you tell me how can i get the product category?

I need to use the category from product on "catalog/controller/checkout/confirm.php" But this method:

Code: Select all

$this->data['category'] = $this->config->model_catalog_product->getCategories(PRODUCT ID);
returns an error:

Code: Select all

Fatal error: Call to a member function getCategories() on a non-object in /home/tribomid/public_html/sieshop/catalog/controller/checkout/confirm.php on line 353
What should i do?

Thanks!

New member

Posts

Joined
Tue Jul 12, 2011 1:48 am

Post by Qphoria » Mon Feb 13, 2012 12:21 am

Change;

Code: Select all

$this->config->model_catalog_product
to

Code: Select all

$this->model_catalog_product

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by dimko » Mon Feb 13, 2012 7:33 am

Can something like this be used for this one:

http://forum.opencart.com/viewtopic.php?f=20&t=53077

Or it's a way different thing? :)

Using OpenCart v1.5.1.3


Active Member

Posts

Joined
Sun Sep 25, 2011 2:10 am
Who is online

Users browsing this forum: No registered users and 73 guests