KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: lrkwz on January 05, 2012, 04:49:54 pm

Title: Accessing user's currency from a manager
Post by: lrkwz on January 05, 2012, 04:49:54 pm
Hello,
   I'ld like to read the currency chosen by the current user from within a manager's code i.e. com.konakart.bl.CustomProductMgr how can I access it?
Title: Re: Accessing user's currency from a manager
Post by: ryan on January 05, 2012, 04:55:10 pm
You can't. The server engines are stateless.
Title: Re: Accessing user's currency from a manager
Post by: lrkwz on January 05, 2012, 05:49:26 pm
:-(

I wish to use a custom price field (i.e. product.setPriceExTax(product.getPrice1()) ) depending on the language choose by the customer.
The u.i. let's the user choose English UK so that British will have English language set + GPB currency
In a custom ProductMgr I would like to setPriceExTag() depending on what user has done in the u.i.
Title: Re: Accessing user's currency from a manager
Post by: ryan on January 05, 2012, 06:01:37 pm
With the Enterprise version of KonaKart you could use Catalog prices and choose the catalogId  from the store-front application depending on the language chosen by the customer.