Post by danijr » Tue Jun 27, 2017 9:15 pm

I would like to get into a mini cart product_option from oc_product_option
Has the name of the option and the option of the option that is selected
I would like to get the product_option_id number. O0
Here's the query in lib / cart.php

Code: Select all

$option_query = $this->db->query("SELECT po.product_option_id, po.option_id, od.name, o.type FROM " . DB_PREFIX . "product_option po LEFT JOIN `" . DB_PREFIX . "option` o ON (po.option_id = o.option_id) LEFT JOIN " . DB_PREFIX . "option_description od ON (o.option_id = od.option_id) WHERE po.product_option_id = '" . (int)$product_option_id . "' AND po.product_id = '" . (int)$cart['product_id'] . "' AND od.language_id = '" . (int)$this->config->get('config_language_id') . "'");
Can any one help :)

New member

Posts

Joined
Fri Dec 02, 2016 10:28 pm
Who is online

Users browsing this forum: No registered users and 65 guests