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
I am trying to setup a multi language multi currency webshop using the latest TeaCommerce starter kit.
The product price returned from following function is always zero! Not sure what am doing wrong
Price price = TC.GetPrice( storeId, product.Id.ToString( CultureInfo.InvariantCulture ) );
No code from the starter kit is changed and the storeId is correct
Sorry to hear you are having problems. Here are a few things for you to check.
1) You have the currency specific price fields created but do you have the alias of those fields registered with the TC currency via the "Price property alias" on the currency.
2) When you switch country site, if you have only one currency per site, are you changing the currency on the current session via TC.SetCurrentCurrency? https://docs.teacommerce.net/3.0.0/api/currency/#setcurrentcurrency
3) Have you set the currency to be available in the relevant countries via the "Available in these countries" tab on the currency?
Have a look into these and let me know if you continue to have problems.
Thank you for the help. I got it solved
Price was zero because of the wrong bindings in Culture and Hostnames
Thank you for pointing to TC.SetCurrentCurrency. This solved proper switching of currencies
All good for now :)
Glad you got it resolved.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted