shmekera Posted November 16, 2009 Posted November 16, 2009 Hi, guys. I installed osCommerce2.2RC2 with 2 addons: Simple Multi Image Add-on (Un-Limited) with FancyBox Popups and Separate Pricing Per Customer Everything works fine (almost) but I have a big problem with SPPC addon. ------ The customers on my shop will be Retail (default for new registrations) and Wholesale (choosed by me). The thing is: - the Retail customers will view the prices with default currency - Bulgarian Leva (BGN) - the Wholesale customers will view the prices with different currency - UnitedStates Dollars (USD) The problem is: - When the Wholesale customer log-in with his u/p he view the prices exactly what they are (cool it works, he see the wholesale prices) but he still see the BGN currency.. not the USD :( I don't know how to fix this. Please, give me some help.
shmekera Posted November 16, 2009 Author Posted November 16, 2009 If customer who log-in is Wholesale Customer (group) - currency = USD, otherwise currency = BGN But I don't know how to do it.. :(
johnnybebad Posted November 22, 2009 Posted November 22, 2009 If customer who log-in is Wholesale Customer (group) - currency = USD, otherwise currency = BGN But I don't know how to do it.. :( I would look at editing the currency.php file in catalog and instead of it being selectable as in the default OSC, you would need and if and else statment.... something like If(customers_group_name == 'wholesale'){currency_id='' }else{ currency_id='' } that sort of thing not saying thats the correct code but its along those lines, someone with a better understanding maybe able to give you the correct sections to modify with the exact code. if you want to select it in your admin, then you may have to do something more complicated, as you need an admin interface and then you would require the front end database calls to call up the correct currency id. You would probably want to be able to access the information in the customer groups section in admin. have you tried the sppc support thread? Getting better with mods but no programmer am I.
Destral Posted August 11, 2010 Posted August 11, 2010 did anyone found the answer for this thread? is it possible to switch currency depending on customer group? did that code posted by johnnybebad worked? thanks in advance.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.