WooCommerce Inclusive Tax for International Orders - php

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' );

Related

Magento 2 table rates- minimal amount necessary?

I use the Magento 2 table rates as calculation system for shipping costs.
For low weight products the shipping is for free. Or in the table rates file noted as € 0,00.
But it seems not to work for customer view in shopping cart. If a customer gets as high as € 0,00 for shipping costs the Magento system shows "Shipping: Not calculated yet".
So I think the Magento table rates system cannot deal with total shipping costs of € 0,00.
Is this indeed the situation or can I do something to get the € 0,00 amount accepted in the Magento store cart?
Thank you for reading and thinking it over!

How to make cart & checkout page calculation in opencart

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.

Always pay same price, regardless of tax country

We've a webshop built in Woocommerce and we accept crypto payments (Bitcoin, ETH etc).
Since we're based in the EU we need to calculate tax on our prices.
So every customer that's inside the EU needs to pay tax.
We've displayed the prices including tax (0.1 BTC for example). The customer pays 0.1 BTC and there is already a 0.02 TAX calculated within that price.
But what if we get a customer from without the EU? We want them to pay 0.1 BTC as well but then without the TAX rate.
Is this possible within woocommerce?
Thanks in advance!
Mand
Been searching high and low for a solution to this problem. Actually found it just 5 min ago.
Add this to your functions.php
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
Read more, https://github.com/woocommerce/woocommerce/wiki/How-Taxes-Work-in-WooCommerce#prices-including-tax---experimental-behavior

eBay API to get Total Amount using GetOrders by PHP

Right now, I am using GetOrders to launch all my orders to my database. Normally, it works fine. I can get the total amount(includes item price and tax) by using:
$totalAmount = $order->AmountPaid;
However, when I tried to import an International Order, the amount was wrong.
The thing is: I only charged him $102.90, but the amount here gives me $157.62
Does anyone know how can I get the total price, which under the "Total" column, in eBay? What kind of value I need to use? Or maybe how to calculate the price for international order?
There few fields related to order price
OrderArray.Order.AmountPaid
This value indicates the total amount of the order. This amount includes the sale price of each line item, shipping and handling charges, shipping insurance (if offered and selected by the buyer), additional services, and any applied sales tax. This value is returned after the buyer has completed checkout (the CheckoutStatus.Status output field reads 'Complete').
OrderArray.Order.Total
The Total amount equals the Subtotal value plus the shipping/handling, shipping insurance, and sales tax costs.
OrderArray.Order.Subtotal
The subtotal amount for the order is the total cost of all order line items. This value does not include any shipping/handling, shipping insurance, or sales tax costs.
I would suggest you try Order.Total for receive price of the order.

How to increase shipping cost depending on quantity of order?

Pretty much I want to increase the shipping cost depending on the number of items in order... e.g. by default shipping cost is 10$ but when number items goes beyond 20 it will add 3$ to shipping cost so it would be 13$
I tried changing codes but it's complicated somehow
I had to find all places that include shipping tax like in 1-blockcart module, 2-one page checkout, 3-payment, 4-inserting to database... And then change some codes. And it's a lot of work and hard
Prestashop includes a shipping range functionality. You can define shipping cost depending of the total weight of your products.
If you want a simple implementation, you can define all your products weight to 1Kg and add shipping cost ranges like those:
0kg => 20kg : 10$
20kg => 40kg : 13$
40kg => 99999kg : 15$

Categories