Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

different Prices for different languages


caitanya

Recommended Posts

hi,

 

i have a shop in english and in german language. now i have a problem that the price for the german book is different from the english book price.

 

ist there any way to get (define) in the admin two different fields also for the prices? just like the title or the description fields.

 

thanks, caitanya

Link to comment
Share on other sites

I can imagine two ways:

 

If the price difference is computable with a formula, you can modify the display_price() function and compute the result depending on $language. Oh, and probably the checkout system too.

 

If not, you have to add a second price field in the database, and modify admin and catalog accordingly.

 

It's not difficult to do, but there's quite a lot of files to change.

Christian Lescuyer

Link to comment
Share on other sites

hi,

 

i have a shop in english and in german language. now i have a problem that the price for the german book is different from the english book price.

 

ist there any way to get (define) in the admin two different fields also for the prices? just like the title or the description fields.

 

thanks, caitanya

 

Hi there.

 

I believe that they are two books (one in English one in German). why don't you treat them like two products? and show each book in two prices. Euro and Pound.

 

There are after all two products. aren't they?

Link to comment
Share on other sites

I can imagine two ways:

 

If the price difference is computable with a formula, you can modify the display_price() function and compute the result depending on $language. Oh, and probably the checkout system too.

 

If not, you have to add a second price field in the database, and modify admin and catalog accordingly.

 

It's not difficult to do, but there's quite a lot of files to change.

 

Found a flaw in that method of altering prices.

 

There are a few sections in the checkout and orders that appear to be using format rather than display_price and making the changes there is not universal.

 

Once I find all of these places, tonight or tomorrow as that is what I am doing right now, I will see who should be fixed or changed or at least a reason why this is done in a different manner.

Link to comment
Share on other sites

Okay ... sometimes I am slow ... sorry, I missed your caution in there ... :shock:

 

Granted I was in the midst of this very thing and blurry eyed from it at the time ... :wink:

Link to comment
Share on other sites

  • 2 months later...

Hi all,

 

I'd be interested to know if this was taken any further? I see it as a useful contribution (I'm not a PHP programmer myself unfortunately).

 

You often have different prices for different markets, that are not just a simple formula to get from one to the other. I have a client asking this question at the moment.

Many Thanks,

 

Steve

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...