Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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!
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
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.
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)
You dont go to the doctypes to fetch prices later or in other events?
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!
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?
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?
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.
Great thanks. I'll explore some more.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted