scheinarts Posted November 23, 2006 Posted November 23, 2006 Does anybody know how to add the description in product_info.php to shopping_cart.php ??? $products[$i]['name'] --------> displays the product name tep_image(DIR_WS_IMAGES . $products[$i]['image'] -------> displays the product image But which one displays the product description ????? I tried = $products[$i]['description'] .......... but it did not work. Any help appreciated.
dave111 Posted November 23, 2006 Posted November 23, 2006 Open catalog/includes/classes/shopping_cart.php Find: $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_tax_class_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$products_id . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); Just after p.products_id, add pd.products_description Like this: $products_query = tep_db_query("select p.products_id, pd.products_description, pd.products_name, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_tax_class_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$products_id . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); Then find: 'name' => $products['products_name'], And add under it: 'description' => $products['products_description'], Now $products[$i]['description'] will work
Recommended Posts
Archived
This topic is now archived and is closed to further replies.