PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10/5/2022 4:26 PM by  Green
Suppress dollar sign
 5 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages





New Member






--
9/30/2022 2:47 PM
    I have a need to suppress the $ sign in my install of hotcakes. I realize that currently the currency/geo are handled server side but hoped that there might be an easy way to handle it in the viewset or ?

    Thanks for the help.






    Veteran Member






    --
    10/4/2022 5:00 PM
    [quote=Green;1709]I have a need to suppress the $ sign in my install of hotcakes. I realize that currently the currency/geo are handled server side but hoped that there might be an easy way to handle it in the viewset or ?

    Thanks for the help.

    [/quote]

    Great question... Are you referring to any specific places in your viewset, or all of the places you can potentially see a price?
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    New Member






    --
    10/4/2022 7:15 PM
    Hi Will

    I am using hotcakes entirely as points based with the only use of US dollar sign potentially for shipping and tax. Ideally I would suppress the $ by line item/where used, but if not possible then anywhere the $ shows up.

    What do you think?





    Veteran Member






    --
    10/5/2022 3:58 PM
    [quote=Green;1712]I am using hotcakes entirely as points based with the only use of US dollar sign potentially for shipping and tax. Ideally I would suppress the $ by line item/where used, but if not possible then anywhere the $ shows up.[/quote]

    Do you still intend to have a checkout process?

    In thinking through everything, I think the best way to start is by modifying the views that aren't the Cart and Checkout first. Those will be easiest. You'd want to visually hide the pricing using CSS, and add new elements to your views that duplicate what the pricing was doing, but modify it server-side in the view itself to remove the dollar sign. This should be as easy as using the number formatting methods built into .NET.

    You do it this way so that some of the client-side logic still works, but you're showing what you intend to visitors.

    The Checkout and Cart will be a bit more trial and error, I think. The Checkout especially has dynamic aspects to it that will make what you want to do challenging, but doable. I just can't tell you the specific steps in those cases.
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    New Member






    --
    10/5/2022 4:23 PM
    Hi Will.

    Yes, I will still use the checkout. I have an external process updating the points table in hcc. For the point setting I have it set to 1 point = 1 dollar. Items are added based on a point value so when they check out they would use their points to drive the balance due to zero. Here is the kicker though. Currently, there is no shipping but we may in the future, enable vendors to drop ship which will generate a shipping charge and potentially tax. We may need to hire you for that scenario :)
    You are not authorized to post a reply.
    Page 1 of 212 > >>


    Loading
    • Sign-up for the Hotcakes Community Newsletter: