zencart实现一个商品多个价格

 zencart实现一个商品多个价格

 

zencart建站如何���F一��商品多���r格??? 
�和上次的ZEN-CART添加一��新字段,�@次根��新添加的字段,�橐患�商品添加�� 外�煞N�r�X,如:英文和日文。 添加好了以後,在index.php�面添加�@�右��字段“$_SESSION[price_language]='�Z言标�R';”在需要判�嗟牡胤叫薷� SQL�Z句添加好了以後,在index.php�面添加�@�右��字段“$_SESSION[price_language]='�Z言�俗R';”在需要判�� 的地方修改SQL�Z句  
$products_query = “select p.products_id, p.master_categories_id, p.products_status, pd.products_name, p.products_model, p.products_image, $products_query = “select p.products_id, p.master_categories_id, p.products_status, pd.products_name, p.products_model, p.products_image,  
p.products_price”.$_SESSION['price_language'].”, p.products_weight, p.products_tax_class_id, p.products_price”.$_SESSION['price_language'].”, p.products_weight, p.products_tax_class_id,  
p.products_quantity_order_min, p.products_quantity_order_units, p.products_quantity_order_min, p.products_quantity_order_units,  
p.product_is_free, p.products_priced_by_attribute, p.product_is_free, p.products_priced_by_attribute,  
p.products_discount_type, p.products_discount_type_from p.products_discount_type, p.products_discount_type_from  
from ” . TABLE_PRODUCTS . ” p, ” . TABLE_PRODUCTS_DESCRIPTION . ” pd from ” . TABLE_PRODUCTS . ” p, ” . TABLE_PRODUCTS_DESCRIPTION . ” pd  
where p.products_id = '” . (int)$products_id . “' where p.products_id = '” . (int)$products_id . “'  
and pd.products_id = p.products_id and pd.products_id = p.products_id  
and pd.language_id = '” . (int)$_SESSION['languages_id'] . “'”; and pd.language_id = '” . (int)$_SESSION['languages_id'] . “'”; 
if ($products = $db->Execute($products_query)) { if ($products = $db->Execute($products_query)) { 
$prid = $products->fields['products_id']; $prid = $products->fields['products_id'];  
$products_price = $products->fields['products_price'.$_SESSION['price_language']]; $products_price = $products->fields['products_price'.$_SESSION['price_language']];  
主 要是修改p.products_price”.$_SESSION['price_language'].”,然後将�@��字段�出。主要是修改 p.products_price”.$_SESSION['price_language'].”,然後�⑦@��字段�出。

你可能感兴趣的:(zencart产品价格,多个价格)