Post by mrjackyll » Fri Feb 03, 2017 12:34 pm

Hello, I'm really new in Opencart 2.2 about 2 weeks. Everything going well but the problem is I tried to googled some script to get product option from product id. I need some assistant from Opencart expert here to solve this. This is optional but maybe I need some knowledge for future use.

Thank you in advance.

Newbie

Posts

Joined
Fri Feb 03, 2017 12:27 pm

Post by knowband.plugins » Fri Feb 03, 2017 8:47 pm

You can fetch product options from following code.

$product_id=41;
$this->load->model('catalog/product');
$result=$this->model_catalog_product->getProductOptions( $product_id);

Regards,
Knowband Team

Opencart Plugins: Knowband Store
Email: support@knowband.com


User avatar
Active Member

Posts

Joined
Thu Aug 04, 2016 2:56 pm

Who is online

Users browsing this forum: Bing [Bot] and 51 guests