Quote:
Originally Posted by leon
Just found a bug (if you can call it that way). Maki this mod is great, but it doesnt support Multilingual sites, products are output in English only.
That seams to apply to the Recommend list as well.
|
Hi !!!
Add the follow code in ../xcart/modules/Upselling_Products/related_products.php
Code:
#
# Check if product have product options
#
$product_links[$p_v][product_options] = array_pop(func_query_first("SELECT COUNT(*) FROM $sql_tbl[product_options] WHERE productid='".$p_k["productid"]."'"));
#
### Adds from here ###
#
# Replace descr and fulldescr on international (if defined)
#
$int_res = func_query_first("SELECT * FROM $sql_tbl[products_lng] WHERE code='$store_language' AND productid='".$p_k['productid']."'");
if ($int_res["product"]){
$product_links[$p_v]["product"] = stripslashes($int_res["product"]);
}
if ($int_res["descr"]){
$product_links[$p_v]["descr"] = str_replace("\n","
", stripslashes($int_res["descr"]));
}
if ($int_res["full_descr"]){
$product_links[$p_v]["fulldescr"] = str_replace("\n","
", stripslashes($int_res["full_descr"]));
}
#
### UP to here ###
#
}
}
};
$smarty->assign("product_links",$product_links);
?>
also I will update it in first post
Greetings !!!