Forum

The forum is a free service supported by community members. Please consider opening a support ticket if you need timely help.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Apr 2024 01:08 PM by  Steve L
Different values between CombinedAmount and FormattedCombinedAmount
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages


New Member


Posts:48
New Member


--
08 Apr 2024 09:48 AM

    I want to be able to show on Cart display template prices with and without tax.
    In 'General' settings Price display mode is set to: Show Price Tax inclusive. Everything works as expected on ProductDetail. On the Cart I got following values for price without tax 5900 and with tax 7257:

    CombinedAmount:5900
    CombinedAmountWithTax: 7257
    CombinedTotalAmount: 5900
    CombinedTotalAmountWithTax: 7257
    FormattedCombinedAmount:7 257,00 zł
    FormattedCombinedTotalAmount: 7 257,00 zł

    As You cans see CombinedAmount is 5900 and FormattedCombinedAmount is 7257. I was expecting that FormattedCombinedAmount will be 5 900,00 zł.

    0


    Veteran Member


    Posts:2955
    Veteran Member


    --
    09 Apr 2024 11:02 PM

    I believe the FormattedCombinedAmount will depend on your tax settings under Configuration > General settings. If you set it to display "Tax inclusive" it will include the taxed amount.

     

    0


    New Member


    Posts:48
    New Member


    --
    10 Apr 2024 12:35 PM
    As I mentioned: it is set to Show Price Tax Inclusive. But why CombinedAmount value is different than FormattedCombinedAmount ? It behaves as if FormattedCombinedAmount presents CombinedAmountWithTax value with appropriate currency and exchange rate.
    0


    Veteran Member


    Posts:2955
    Veteran Member


    --
    10 Apr 2024 01:08 PM
    The FormattedCombinedAmount reacts to the Show Price Tax Inclusive behavior. It's intended to simplify the design in the template. If you want the actual value, you can simply use CombinedAmount and perform your own formatting. (e.g. ... sod.CombinedAmount + "zł")
    0
    You are not authorized to post a reply.