id like to know how can i make the admin order include can add disabled products
becouse there is some products that i only sell in my physical store not online.
what file verify that product is disabled on autocomplet and add buton on admin new order products page?
becouse there is some products that i only sell in my physical store not online.
what file verify that product is disabled on autocomplet and add buton on admin new order products page?
In order for this request to work, an additional question would need to be added into the admin products form page so that each products could either be defined as a physical or virtual product. Then, from the admin orders, merchants could then identify if each products that can be completed via the admin orders API and can be sold as a physical or virtual product. Since day 1, I have been wondering myself how or why would merchants be able to complete a request order from the admin without knowing the product structure especially if the store itself would contain hundreds or thousands of products.
If there are no contributions on this subject, I hope this would be an integrated feature in the future as part of the core.
If there are no contributions on this subject, I hope this would be an integrated feature in the future as part of the core.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
For OC2.2 find system/library/cart/cart.php and in line 41 try replace
with
Code: Select all
$product_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_to_store p2s LEFT JOIN " . DB_PREFIX . "product p ON (p2s.product_id = p.product_id) LEFT JOIN " . DB_PREFIX . "product_description pd ON (p.product_id = pd.product_id) WHERE p2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND p2s.product_id = '" . (int)$cart['product_id'] . "' AND pd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND p.date_available <= NOW() AND p.status = '1'");
Code: Select all
if (isset($this->session->data['api_id'])) {
$product_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_to_store p2s LEFT JOIN " . DB_PREFIX . "product p ON (p2s.product_id = p.product_id) LEFT JOIN " . DB_PREFIX . "product_description pd ON (p.product_id = pd.product_id) WHERE p2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND p2s.product_id = '" . (int)$cart['product_id'] . "' AND pd.language_id = '" . (int)$this->config->get('config_language_id') . "'");
} else {
$product_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_to_store p2s LEFT JOIN " . DB_PREFIX . "product p ON (p2s.product_id = p.product_id) LEFT JOIN " . DB_PREFIX . "product_description pd ON (p.product_id = pd.product_id) WHERE p2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND p2s.product_id = '" . (int)$cart['product_id'] . "' AND pd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND p.date_available <= NOW() AND p.status = '1'");
}
For OC2.0.3.1 find system/library/cart.php and in line 43 try replace
with
Code: Select all
$product_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product p LEFT JOIN " . DB_PREFIX . "product_description pd ON (p.product_id = pd.product_id) WHERE p.product_id = '" . (int)$product_id . "' AND pd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND p.date_available <= NOW() AND p.status = '1'");
Code: Select all
if (isset($this->session->data['api_id'])) {
$product_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product p LEFT JOIN " . DB_PREFIX . "product_description pd ON (p.product_id = pd.product_id) WHERE p.product_id = '" . (int)$product_id . "' AND pd.language_id = '" . (int)$this->config->get('config_language_id') . "'");
} else {
$product_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product p LEFT JOIN " . DB_PREFIX . "product_description pd ON (p.product_id = pd.product_id) WHERE p.product_id = '" . (int)$product_id . "' AND pd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND p.date_available <= NOW() AND p.status = '1'");
}
jasar
I try to upload ocmod file, but the site blocking me. If PM me your mail i will send you the file, so you can test it.
I try to upload ocmod file, but the site blocking me. If PM me your mail i will send you the file, so you can test it.
Who is online
Users browsing this forum: kaji_trade@yahoo.com and 19 guests