i have magento 1.9
here tax is assumed as 5%
i have two types products some includes the tax in its price and some not include the tax in price.
now i want the subtotal like this
product price ==> 1995
subtotal ==> 1895
tax ==> 100
grand total ==> 1995
for excluding tax products and
for non-excluding tax products i want subtotal like this.
product price ==> 1995
subtotal ==> 1995
tax ==> 100
grand total ==> 2095
In magento There is option in Tax setting to Manage subtotal and grand total for Tax. I am not sure if you are looking for same or not. I can't add image in comment so i add answer. Hope it will help.
See below another setting for cross price check.
Cheers!
Related
I have a website with woocommerce, in which I use two plugins:
WooCommerce Wholesale Prices,
WooCommerce Price Based on Country (Basic)
Its working fine with base price but when we login with wholesale ID from country other than India, it changes the currency as per setting but the value of the products remains same as it is in INR.
e.g. I have a product with base price INR 100 and wholesale Price INR 10 in India zone.
When a retail customer from other country came he check the price in USD as I set with following prices:
Base Price : USD 1.35 wholesale Price : USD 10
How to rectify the issue?
In Woocommerce I am using Woocommerce One Page Checkout plugin and I would like to add 10% GST on the Grand Total.
Here is an example (without 10% GST on the Grand Total):
Cart Total: $200
Delivery charges: $20
Grand Total: $220
The result should look (with 10% GST on the Grand Total):
Cart Total: $200
Delivery charges: $20
Grand Total: $242 (including 10% of cart total + 10% on Delivery)
On Products listing page, here is what I did to show total like I want:
$woocommerce->cart->total = $woocommerce->cart->total + number_format(($woocommerce->cart->total * 10) /100, 2);
The problem is that when I place an order, I have a grand total of $220 instead of $242on the payment page.
How can I update the order total here?
Is there any way that we can a 10% GST on the total cart amount in Woocommerce?
Note: I tried to debug it using Network calls and found that Woocommerce is sending cart array that includes all the products with a total and order page might be calculating the total again excluding GST I applied using above code block.
The following code will add 10% to the grand total:
add_filter( 'woocommerce_calculated_total', 'custom_cart_grand_total', 20, 2 );
function custom_cart_grand_total( $total, $cart ) {
return $total * 1.10;
}
Code goes in function.php file of your active child theme (or active theme). Tested and works.
I'm having a strange issue on Magento Grand Total.
I have a product of 99.99€ (inc. tax). The tax is 23% rate.
I have created a Promo Code to have 25% discount on that product.
I've set up the Tax Calculation Method based on the Row Total
I've set up the Apply Customer Tax to be after discount
I've set up the Apply Discount on Prices to be including tax.
The problem comes when I add the product and put a promo code, that created a change on 0.01€. Changing the precision to 4 or the rounding to 4 sometimes solves the issue but creates issues with payment gateways.
The cart page shows the following info:
Subtotal Excl Tax - 81.29
Subtotal Incl Tax - 99.99
Discount - 25.00
Tax - 14.02
Grand Total - 74.98
The grand total should be 74.99€ (99.99€ from the product - 25.00€ from the discount).
I am currently using Mangeto 1.9.1 and a custom shipping method which is the only one for my store.
Everything works cool but i want the shipping price to appear in the subtotal when order is created but to be not calculated in the Grand Total?
How i can show the shipping fee in subtotal but this fee must not be calculated and added in Grand Total ?
Thanks in advance!
I have a very big problem, I need some products do not specify the discount to be applied to the product or the difference in amount, but to directly specify the selling price including tax, I'll explain:
Sales price without discount -> 30.00
Sales price I wanted -> 12:56
12:56 I want to write directly without having to do subtractions and / or calculations of percentages, can you tell me how can I do? Thank you very much.