Forums / Setting Up Categories, Products, Attributes / Ideas on the best way to do this (if any)

Ideas on the best way to do this (if any)

Locked

Views: 1,317

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
30 Aug 2006, 4:03 AM
#1
ronabop avatar

ronabop

New Zenner

Join Date:
Aug 2006
Posts:
1
Plugin Contributions:
0

Ideas on the best way to do this (if any)

Here's the nut to crack:
Variable pricing and currencies based on regions.

Here's an example case:
A company sells widgets internationally, and in addition, salesfolk who are responsible for their area get a cut.

Thus, a widget that sells to a user in the southern US may go for $1.25, with BillyBob getting a $0.25 cut. However, in the northeast US, it sells for $1.35, with Buffy Smithers III getting a $0.07 cut. Meanwhile, over in Europe, Tony Charles gets 4% (in UK pounds) tacked onto each sale in commission for UK sales, and Benoit Chirac gets .25 in Euros tacked on to each sale in pounds.

I'm currently thinking of it in terms of a few pieces:

  1. On the fly currency conversion.
  2. On the fly price markups based on fixed amount or percents depending on region.
  3. On the fly geolocation based on IP, so user pricing is deterministic (yes, I know about this minefield...)

Am I pushing the limits of what zencart even can do, to where I should custom write a system to do this?
Does somebody already know of a way to get zencart to at least emulate this kind of behavior?
If ZenCart can't do this, is there anybody who can?

(No actual stereotypes about names and locations were harmed in the composition of this forum posting)

30 Aug 2006, 5:42 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Ideas on the best way to do this (if any)

Sure, you can do that with Zen Cart. Zen Cart already tracks the currency in which an order is placed.

If you need to alter the way in which product-pricing is done, you'll need to study the pricing functions and extend their usability to do extra things such as you've described, with consideration of how the shopping-cart and order classes work together through the checkout process etc.

Not a small custom-coding process, but nonetheless do-able.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.