Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Buying in Dollars but displaying the price in Pounds

Buying in Dollars but displaying the price in Pounds

Started by adb34 on 9 Mar 2014, 12:34 PM · Views: 974

Results 1 to 6 of 6
9 Mar 2014, 12:34 PM
#1
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Post #1 by adb34

I have a fantastic chance of buying my products from America.

What I would like to do is; display the products in pounds but make make the dollar fixed price so that when the currency rates change the displayed pound price reflex's the currency variation of the ratio for the pound to dollar (I want the pound to go up or down not the dollar)

Learning Fast.
Eden Craft Supplies

9 Mar 2014, 1:01 PM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Post #2 by frank18

adb34:

I have a fantastic chance of buying my products from America.

What I would like to do is; display the products in pounds but make make the dollar fixed price so that when the currency rates change the displayed pound price reflex's the currency variation of the ratio for the pound to dollar (I want the pound to go up or down not the dollar)

Definitely possible - but needs some custom coding.

Do you want to do this for all of your products or only for some - ie only for one specific category?

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

9 Mar 2014, 2:25 PM
#3
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Post #3 by twitchtoo

What do you have your default set for in:
Admin -> Localization -> Currencies

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

9 Mar 2014, 10:17 PM
#4
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Post #4 by adb34

Do you want to do this for all of your products or only for some - ie only for one specific category?

Yes with one type of product. For example wedding rings, engagement rings etc

What do you have your default set for in:

Nothing yet. Just waiting for answer before I change the default when you install Zencart

Learning Fast.
Eden Craft Supplies

10 Mar 2014, 2:50 AM
#5
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Post #5 by frank18

adb34:

Yes with one type of product. For example wedding rings, engagement rings etc

Nothing yet. Just waiting for answer before I change the default when you install Zencart

As previously said, custom coding will be required.

You need

  • your currencies updated on a daily basis
  • to set your default currency to GBP (value = 1.0000)
  • to know your purchase price in USD for a given product and store it in the db

Then pull the value for USD from the database and create a conversion factor (cf): cf=1/(value for USD)

if 1 GBP = 2 USD then your cf is 0.5
if 1 GBP = 2.1 USD then your cf is 0.476190476
if 1 GBP = 1.85 USD then your cf is 0.540540541

You will need to store your purchase price for a given product in the products table, apply your conversion factor (cf) and add your profit margin.

The result is your selling price in GBP which becomes the new product price which is stored in the db.

The store side then displays the desired new products price everywhere you like.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

10 Mar 2014, 12:16 PM
#6
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Post #6 by adb34

Thanks. I will have a play with my off line store and get back to you

Learning Fast.
Eden Craft Supplies