Welcome Guest, Not a member yet? Register   Sign In
flexi cart - A comprehensive shopping cart library for CodeIgniter
#92

[eluser]haseydesign[/eluser]
Hey xuma,

There are two methods of how to define currency within flexi cart, either manually via the config file, or via using the currency database table. The currency table is only needed if converting prices between multiple currencies.

To set via the config file, take a look at http://haseydesign.com/flexi-cart/user_g...g_defaults
Code:
$config['defaults']['currency']['name'] = 'GBP';
$config['defaults']['currency']['symbol'] = '£';
$config['defaults']['currency']['symbol_suffix'] = FALSE;
$config['defaults']['currency']['thousand_separator'] = ',';
$config['defaults']['currency']['decimal_separator'] = '.';

There are then some currency functions within the library that can format values for you.
http://haseydesign.com/flexi-cart/user_g...ency_index


Messages In This Thread
flexi cart - A comprehensive shopping cart library for CodeIgniter - by El Forum - 12-20-2012, 04:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB