Describe the bug
In ShopifyPriceService.cs there is a hard coded currency, which means if you've configured a different Currency Code in the Xperience by Kentico admin site, you'll get an error retrieving prices where this service is used. Currently there is this code:
string currency = CurrencyCode.CZK.ToString();
See screenshot 1 below which shows the result.
There are more hard coded Culture Codes/Currency Codes in the example project, which I assume is the responsibility of the developer to configure properly, but it would be ideal if the example project shows how to do this:
Describe the bug In ShopifyPriceService.cs there is a hard coded currency, which means if you've configured a different Currency Code in the Xperience by Kentico admin site, you'll get an error retrieving prices where this service is used. Currently there is this code:
See screenshot 1 below which shows the result.
There are more hard coded Culture Codes/Currency Codes in the example project, which I assume is the responsibility of the developer to configure properly, but it would be ideal if the example project shows how to do this:
ShopifyProductDetailController.cs has a hard coded culture and currency with a TODO:
ShopifyProductListItemViewModel.cs has a hard coded currency code with a TODO:
See screenshot 2 below which shows the result.
To Reproduce Steps to reproduce the behavior:
Shopify category page
content typeShopify product detail page
content typeExpected behavior Should automatically handle getting the correct culture, and the currency code configured in the XbyK admin site.
Screenshots Screenshot 1 - instead of the correct from price showing, you'll get an identifier being rendered
Screenshot 2 - pricing panel is completely hidden, and replaced with a
Coult not fetch variant prices
error message on the front-endLibrary Version v1.0.0 (and pre-release)