Nameez Posted August 13, 2018 Share Posted August 13, 2018 (edited) Hi All, Just trying to figure out the code (not a programmer myself). What's the difference between $cart.subtotals.tax.amount and $cart.subtotals.tax.value? I basically want to reduce the tax from the sub total on the checkout page and i tried {$subtotal.amount-$cart.subtotals.tax.amount} And it gives the value but not rounded into 2 decimal. How can i achieve this? Thanks Edited August 13, 2018 by Nameez Typo (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted August 14, 2018 Share Posted August 14, 2018 Hi, To get the price up to 2 decimal place, Use the following code. {$subtotal.amount-$cart.subtotals.tax.amount|string_format:"%.2f"} Link to comment Share on other sites More sharing options...
Nameez Posted August 14, 2018 Author Share Posted August 14, 2018 (edited) On 8/14/2018 at 6:02 AM, Knowband Plugins said: $subtotal.amount-$cart.subtotals.tax.amount|string_format:"%.2f" Expand Thanks Knowband Plugins, But it doesn't seems to be working! Can you explain the difference between $subtotal.amount and $subtotal.value Please? Thanks Edited August 14, 2018 by Nameez Typo (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now