i have new table called vendors, and i need to Join that table with the below function, to echo vendors name in product_list.tpl file
in Admin/Model/Product.php
Code: Select all
public function getProducts($data = array()) {
$sql = "SELECT * FROM " . DB_PREFIX . "product p LEFT JOIN " . DB_PREFIX . "product_description pd ON (p.product_id = pd.product_id) WHERE pd.language_id = '" . (int)$this->config->get('config_language_id') . "'";
How to achieve that