CMS MADE SIMPLE FORGE

Cart

 

[#4888] Not displaying correct currency symbol

avatar
Created By: ian (sykic)
Date Submitted: Fri May 07 07:19:50 -0400 2010

Assigned To:
Version: 1.6.2
CMSMS Version: None
Severity: Major
Resolution: Works For Me
State: Open
Summary:
Not displaying correct currency symbol
Detailed Description:
currency symbol set in Ecommerce base not used in Cart

IE set £ but still getting $

could be related to bug 4886


History

Comments
avatar
Date: 2010-05-07 11:41
Posted By: Robert Campbell (calguy1000)

I just tested this, had no problems.
      
avatar
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}
      
avatar
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.
      
avatar
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));
---------------------------------

      
avatar
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 
      
Updates

Updated: 2010-05-07 11:41
resolution_id: => 11