Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

SPPC Question


3 replies to this topic

#1 shmekera

  • Community Member
  • 46 posts
  • Real Name:Soul Seeker

Posted 16 November 2009, 14:57

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.

#2 shmekera

  • Community Member
  • 46 posts
  • Real Name:Soul Seeker

Posted 16 November 2009, 15:00

If customer who log-in is Wholesale Customer (group) - currency = USD, otherwise currency = BGN
But I don't know how to do it.. :(

#3 johnnybebad

  • Community Member
  • 672 posts
  • Real Name:Johnny

Posted 22 November 2009, 19:30

View Postshmekera, on 16 November 2009, 15:00, said:

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.

#4 Destral

  • Community Member
  • 2 posts
  • Real Name:Mike

Posted 11 August 2010, 13:32

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.