PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 6/9/2020 8:21 PM by  Will Strohl
How to get the currency in code behind
 3 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Author Messages





Basic Member






--
6/6/2020 3:36 AM
    Hi,
    By the below code i got every information regarding to the product but the currency type is always returning $ i already set it in SAR can you please inform me why it's returning $ always.

    var HccApp = HccAppHelper.InitHccApp();
    Product productItem = HccApp.CatalogServices.Products.Find(bvin);
    SingleProductViewModel singleProductView = new SingleProductViewModel(productItem, HccApp);
    return singleProductView;






    Veteran Member






    --
    6/9/2020 2:27 PM
    The view model you're returning includes a method that should address this. There's an example in all of the viewsets included. Here's a direct link to one of the views in the default viewset.

    https://github.com/Hotcak...gleProduct.cshtml#L3
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Basic Member






    --
    6/9/2020 3:43 PM
    i am not using in the view control in am using this in code behind





    Veteran Member






    --
    6/9/2020 8:21 PM
    The code sample appears to be the same though. You're referencing the same view model.
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes
    You are not authorized to post a reply.


    Loading
    • Sign-up for the Hotcakes Community Newsletter: