Date: 2010-05-07 11:41
Posted By: Robert Campbell (calguy1000)
I just tested this, had no problems.
Date: 2010-05-31 09:31
Posted By: JustHouz (justhouz)
The same thing happens to me. Everything is set up correctly in CGEcommerceBase.
Products appear with the correct currency symbol. The problem appear only in the
cart called by {Cart action=viewcart}
Date: 2010-06-10 09:20
Posted By: JustHouz (justhouz)
As I mentionned in bug report 5014 :
2 variables are used in the templates : {$currency_symbol} and
{$currencysymbol}.
There might have been some type mismatch somewhere.
{$currencysymbol} return the default $ symbol and {$currency_symbol} returns
nothing.
Date: 2012-02-22 02:17
Posted By: Vincent G. (vinc)
Found it !
From the action.mycart.php the $smarty->assign is not the same.
(mycart display good currency symbol but viewcart don't)
Proposal :
---------------------------------
diff --git a/modules/Cart/action.viewcart.php b/modules/Cart/action.viewcart.php
index f01d674..41e91e2 100644
--- a/modules/Cart/action.viewcart.php
+++ b/modules/Cart/action.viewcart.php
@@ -154,8 +154,8 @@ $smarty->assign('pricetext',$this->Lang('price'));
$smarty->assign('quantitytext',$this->Lang('quantity'));
$smarty->assign('total_text',$this->Lang('total'));
$smarty->assign('total_weight_text',$this->Lang('total_weight'));
-$smarty->assign('currencysymbol',$products->GetPreference('products_currencysymbol'));
-$smarty->assign('weightunits',$products->GetPreference('products_weightunits'));
+$smarty->assign('currencysymbol',cg_ecomm::get_currency_symbol());
+$smarty->assign('weightunits',cg_ecomm::get_weight_units());
if( !isset($params['hideform']) )
{
$smarty->assign('formstart',$this->CGCreateFormStart($id,'viewcart',$destpage));
---------------------------------
Date: 2012-02-22 02:20
Posted By: Vincent G. (vinc)
Sorry for double post, this happens with following versions :
Cart 1.8.1
CGEcommerceBase 1.3.9
CGExtensions 1.27.9
Products 2.16.2
and ... CMS Made Simple 1.10.3