Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gordon Saxby 1315 posts 1554 karma points
    Apr 18, 2012 @ 00:59
    Gordon Saxby
    0

    Exchange rate for multi currency

    The sample Tea Commerce website has 3 fields on each product node for prices (DKK, EUR, USD).

    Rather than having to enter 3 prices per product, would it be possible to have an exchange rate set for each currency?

    I can't see anything in the documentation ... but I am rather new to Tea Commerce and could very easily have missed it!

  • Paul Blair 466 posts 731 karma points
    Apr 18, 2012 @ 02:17
    Paul Blair
    1

    There is nothing that I am aware of within TC that will do the conversion for you - it would be possible to extend TC yourself and call a service.

    Personally I don't mind seeing sites using just 1 currency (e.g. USD or EUR). When progressing to a payment provider such as PayPal it can do any conversions if neccessary at the payment stage

  • Rune Grønkjær 1296 posts 2863 karma points
    Apr 18, 2012 @ 08:06
    Rune Grønkjær
    0

    Yes, Paul is right. You also have to take into account that it's not always that the shop owner want's the same prices on all currencies (Varied by the exchange rate ofcause). And yes, the Tea Commerce .NET API will do the trick, if you program it yourself.

    /Rune

  • Jesper Ordrup 975 posts 1411 karma points MVP
    May 16, 2012 @ 22:18
    Jesper Ordrup
    0

    Hi Rune,

    To do this via Tea Commerce .Net api - is it enough to hook up on the events: OrderLineAdded, OrderLineChanged? And then its something like

    * check selected order currency
    * get pricing factor for selected order currency
    * Update orderline (in event parameter) 

    Thats it?

    You dont go to the doctypes to fetch prices later or in other events?

    best

    Jesper 

  • Rune Grønkjær 1296 posts 2863 karma points
    May 18, 2012 @ 07:48
    Rune Grønkjær
    0

    Hi Jesper,

    Yes you chould do something like that.

    The best way would be to use the Orderline method AddPrice( OrderLinePrice orderLinePrice ). That should be used to add prices in all currencies whenever a new orderline is added to the order.

    Unfortunately that method and the constructors for the OrderLinePrice is currently internal. But I would be happy to open them up for anyone who needs them!

    /Rune

  • Gordon Saxby 1315 posts 1554 karma points
    May 18, 2012 @ 11:33
    Gordon Saxby
    0

    Hi Rune,

    so are you saying that the above would add all currency prices to each order line? What about order total, tax, etc? How would you access each / the right price at the checkout stage, etc?

     

  • Anders Burla Johansen 2560 posts 8256 karma points
    May 31, 2012 @ 13:44
    Anders Burla Johansen
    0

    Hi Gordon

    Each OrderLinePrice represents a price in a specific currency. So for each currency you add an OrderLinePrice. The total and tax is auto calculated. In the checkout stage Tea Commerce gives you only the prices that is in the current currency. So when you change currency using the Tea Commerce javascript API or another way - Tea Commerce gives you the prices for that currency.

    Kind regards
    Anders

  • Matt Taylor 813 posts 1903 karma points
    Sep 08, 2015 @ 16:00
    Matt Taylor
    0

    Hi guys,

    This post is quite old but my problem is the same.

    I'm just wondering what the best way to do this now is in Umbraco 7 with TC 3?

    I'm thinking perhaps overriding one of the calculator events is the thing to do.

    Also are there any potential complications? I know an editor can now alter an order once it is made in the back-end. Perhaps something could go funny if the exchange rate had changed between the initial order and a modification?

    Kind regards,

    Matt

  • Anders Burla Johansen 2560 posts 8256 karma points
    Sep 09, 2015 @ 07:34
    Anders Burla Johansen
    0

    Hi Matt

    I think you would use calculators - a product calculator for UI of the product and then an order line calculator to calc the price from an exchange rate. OR you can calc it when the product is added to the cart using the ProductInformationExtractor.

  • Matt Taylor 813 posts 1903 karma points
    Sep 09, 2015 @ 15:03
    Matt Taylor
    0

    Great thanks. I'll explore some more.

Please Sign in or register to post replies

Write your reply to:

Draft