How to make cart & checkout page calculation in opencart - php

Actually, i'm working on opencart 2.3, if now checkout page calculation in opencart:
Sub-Total₹ 1,520.00
India Shipping₹ 180.00
Discount (-07%)₹ -119.00
Total₹ 1,581.00
it s taking discount in shipping amount also i don't want discount shipping amount, i want calculation like this please help.
Sub-Total₹ 1,520.00
Discount (-07%)₹ -106.40
India Shipping₹ 180.00
Total₹ 1,593.60

you should change in admin>extensions>extensions>Order totals... sort order for the shipping. Move it down by changing sort order number higher than your discount voucher.

Related

Apply coupon after calculate the shipping rate - woocommerce

I am building my website by using woocommerce, but i faced the problem of calculating the total amount of the order.
There is a shipping method which is 15% additional fee of the order, and there is a coupon offers $10 discount.
But woocommerce seems like apply the coupon before calculate shipping fee.
For example, the order total amount is $100, the expected result should be (100*1.15) - 10 = 105, but when i tested in the checkout page, the total amount is (100-10) * 1.15 = 103.5.
May I know how to apply the coupon after calculate the shipping fee?
Thank you.
I want to calculate amount correctly in woocommerce, which is apply coupon after calculate the shipping fee.

Prestashop discount to increase total cart price

It's sounds a kind weird but I need to use a Prestashop 1.7 discount based on transportation id = 1 to increase 20% over cart's total.
I don't know where the function is and where to place...
You need to find module. For example Cash on Delivery with fee.

WooCommerce Inclusive Tax for International Orders

I use the API to set the prices on my site and its configured to accept inclusive prices.
I have set up the standard rate for the VAT for my country.
I now need to allow a neighbouring country to be able to purchase from my store. However, I want them to buy at the inclusive price but with no VAT.
I tried adding the country to the standard rates at 0% but that just deducts the local VAT from the price. So if the price is $15 normally, now will show as $12. I need the price to be the same as the local inclusive price but with 0% VAT.
So if I sell something for $15, the VAT may be $3 locally. On my local orders this what will show. Now if my foreign customer wants to buy something, it need to still show it at $15 but the VAT is 0%.
I just can't find a way to get the system configured that way.
Found the answer
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );

How to change Shipping Cost per two product in woocommerce?

I am using woocommerce plugin in a wordpress site.
The shipping method is to be calculated on the basic of USPS Priority 1-Day mail $5.75 per pound (lbs).
Each shirt ways 1/2 a pound in weight, so 2 shirts should not be charged additional shipping.
Means I want to calculate the shipping method for per two shirt i.e. $5.75 not as cost per product.
then the shipping will be calcalated as like ths
3 -4 shirts $11.50 and 5 shirts $17.25 etc...
The basic requirement is if I would be able to change the shipping cost per product to per two product the query will be solved. How Can I get this method.
Any help will be appreciated.

Mangento - How to show Shipping fee in Subtotal but not calculated in Grand Total?

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!

Categories