Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Show all currencies rates in the block Rate Topic   - - - - -

 
  • KeyGenRus
  • Advanced Member
  • Trial users
  • Join Date: 03-Oct 11
  • 67 posts

Posted 03 February 2012 - 08:16 AM #1

Hi.
If you want to show in your CS CART all currencies data like this.

1USD = 200 EUR
1USD = 500 RUB
1USD = 600GB


You must add this in the costomer controllers init file:

After this code
$view_mail->assign('index_script', $index_script);

Add this


$currencies = db_get_array("SELECT a.*, b.description FROM ?:currencies as a LEFT JOIN ?:currency_descriptions as b ON a.currency_code = b.currency_code AND lang_code = ?s ORDER BY position", DESCR_SL);

$view->assign('currencies_data', $currencies);

And after, in the template block you want (or created by you) you must make some changes like this, to show all currencies data.

{$currencies_data.1.coefficient|number_format:0:"`$smarty.const.CURRENCY_SYMBOLS_DECIMAL_SEPARATOR`":"`$smarty.const.CURRENCY_SYMBOLS_THOUSANDS_SEPARATOR`"}

If you wan to show other currencies data, you must just edit the $currencies_data.1 -numbe!
you want.
You also can call other data from currensies.

Thank You!

 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4672 posts

Posted 04 February 2012 - 10:57 AM #2

Thanks, what does this look like when it is done, do you have a screenshot.

John

Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • KeyGenRus
  • Advanced Member
  • Trial users
  • Join Date: 03-Oct 11
  • 67 posts

Posted 07 February 2012 - 09:52 AM #3

Posted Image