how do I show the shipping rate with tax included?
Posted: Sun May 10, 2009 7:41 am
Hi,
I need to show the shipping rate (fixed rate of $15) with the tax included (gst requirements in Australia). Because this is a taxable item the rate is set to $13.64 in the Admin->Configure->Shipping Methods screen. This ensures that at checkout, the total tax amount displayed includes the tax for the shipping.
However, during the checkout process, on ~/Checkout/ShipMethod.aspx the shipping rate is displayed as "Fixed rate ($13.64)". I need to show this as "Fixed rate ($15.00)".
I have had a look in the ShipMethodPage.ascx and ShipMethodPage.ascx.cs files and found the bit of code that displays the shipping rate but I don't know how to change it to show the tax inclusive amount. The piece of code is:
I can't figure out where "TotalRate" is derived from - is it a fixed variable in the CommerceBuilder.Shipping api? is there any documentation that can help with the other available fields. I'm new to .Net and not a full time programmer, so any help would be greatly appreciated.
Cheers,
Lance
I need to show the shipping rate (fixed rate of $15) with the tax included (gst requirements in Australia). Because this is a taxable item the rate is set to $13.64 in the Admin->Configure->Shipping Methods screen. This ensures that at checkout, the total tax amount displayed includes the tax for the shipping.
However, during the checkout process, on ~/Checkout/ShipMethod.aspx the shipping rate is displayed as "Fixed rate ($13.64)". I need to show this as "Fixed rate ($15.00)".
I have had a look in the ShipMethodPage.ascx and ShipMethodPage.ascx.cs files and found the bit of code that displays the shipping rate but I don't know how to change it to show the tax inclusive amount. The piece of code is:
Code: Select all
<asp:Label ID="ShipMethodRate" runat="server" Text='<%#Eval("TotalRate"," ({0:ulc})") %>' Visible='<%#((LSDecimal)Eval("TotalRate") > 0)%>' />
Cheers,
Lance