Spillting Tax & Fetching Same Tax Labels In Woocommerce - wordpress

As per my country's tax system, I have added two tax classes. 5% & 18%. Standard rate is empty so I can use it for shipping. In my country, the tax system works this way. For example, consider one class only.
If the customer billing address state is DIFFERENT from the business state, it will be called IGST. So, the order will show 18% IGST.
Now if the customer billing address state is SAME as the business state, it gets divided into two parts, SGST & CGST. So the total tax will be divided equally as 9% CGST & 9% SGST, making it total 18%.
Same will apply for every tax class. I have created two dummy orders by considering the above mentioned scenario. Checkout those in images.
5% Rate Setup - https://snipboard.io/HJgLBu.jpg
18% Rate Setup - https://snipboard.io/e2Q3Ku.jpg
Orders reflecting the same.
Order with different state than business state - https://snipboard.io/w12sJO.jpg
Order with same state as business state - https://snipboard.io/d8QFme.jpg
Now, I am facing difficulties in two things while working on custom invoice template for Woocommerce PDF Invoices & Packaging Slips.
Fetching respective tax label in front of tax rates. e.g. IGST / CGST / SGST . These values are already stored in Woocommerce tax rates.
For the second scenario, for orders in same state, in pdf invoice it show rates as 9%, 9% (for 18% class)in single column. I want to print those outputs in two separate rows instead.
For this, logic may be like if customer billing state is equal to business state, then it will print/split tax rate in two columns like this https://snipboard.io/l3gbJe.jpg
For different state, same invoice will be https://snipboard.io/SwAGVW.jpg

I can answer the 2nd part only. Select the Vat and on the row label write gst. then select the comination option from the botton dont click the single total. It will bifurcate your GST in 2-parts. suppose you have 18% GST and we want to div it 9% as cgst and 9% as sgst. then will will divide the gst as 9% in equal parts. On the tax rate select static text and then write the label as Tax rate and value as 18% as in this case.
Hope this will help you out.
Regards,
Tylor.

Related

How to group total of same tax name in woocommerce

I have 2 tax classes one is GST 18 and another is GST 10 when i am applying it to the products and generating the pdf invoice it shows both the tax rate separately. I want to combine the total tax value of same tax name together like CSGT and SGST should only show 1 time currently its showing as CGST 2.5 % & CGST 9 % i want to combine it and call it just CGST. Please see the image for better understanding of my issue: https://ibb.co/72KTCZ5
For your information i am using pdf invoices and packing slips premium plugin.

Restrict coupon usage for attributes used for subscription orders

I have tried to use what I found in "Exclude variations with 2 specific attribute terms from coupon usage in Woocommerce" but I can't get it to work. My attribute $taxonomy is 'puroptions' for "purchase options" and the three $term_slugs = array('subscribe1','subscribe2','subscribe3'); for 10% discount subscription orders for one, two or three months. There is also the option for "one time purchase" at regular price.
I am trying to exclude the subscription discount attributes so customers don't get an extra 10% when we offer a 10% coupon. Either they subscribe to a product to get 10% or they use the coupon which only takes 10% from the one time purchase. Can anyone help.

WooCommerce: tax price filter not being applied in admin

I've implemented a filter as per this WooCommerce article on taxes:
add_filter('woocommerce_adjust_non_base_location_prices', '__return_false');
This effectively 'ignores' tax rates on checkout: an €8,99 product (where prices are added inclusive of tax) being sold from a UK store will cost €8,99 to a German customer, a French customer or an ROI customer. This all works fine on the front end.
However, I just created an order in the backend for a German customer, and that €8,99 product is being added to the order at €7,49 with no tax. I understand from a tax perspective why this is happening (a UK store selling in Germany shouldn't apply tax, so 8.99 - 20% UK VAT = 7.49), however this seems to be ignoring my woocommerce_adjust_non_base_location_prices filter.
At the moment my filter call is just a single line in a custom plugin, so being implemented at plugins_loaded, I guess. There's no condition for it (e.g. if (!is_admin()) {}), so I'm wondering if I need some other kind of condition to ensure it is applied to admin orders, or if I'm looking at a bug?

Add flat rate shipping fees in Woocommerce?

Hi , I am working in Woocommerce and I want to add shipping fees $7 on
the total order that less than $50 .
Could you please help me on this issue ?
Advanced Costs option under WC settings
The Cost field allows you to charge a flat rate per item, a percentage based cost or a minimum fee.
Available placeholders:
[qty] – Number of products in the cart
[fee] – An additional fee. This fee has two optional arguments.
percent – A percentage based on total order cost.
min_fee – A minimum amount. Useful when using percentages.
Examples
10 + ( 2 * [qty] ) – A base shipping cost of $10 plus $2 for each item in the cart.
20 + [fee percent="10" min_fee="4"] – A base shipping cost of $20 plus 10% of the order total, which is at least $4.
Check here

Woocommerce single product tax status trumps WooTax, and Tax Cloud

I signed up for Tax Cloud and use Woo Tax to calculate tax. I am trying to only collect sales tax when shipping to WA. Some of my products' tax status is set to none while some is set to taxable. When I changed my shipping address on the taxable products the sales tax still showed up, even if the state I chose was listed as states without sales tax in tax cloud. When I chose products tax status none then I got no sales tax, even if I was shipping to WA.
My question is two-fold: 1) Does tax status taxable mean it will add sales tax no matter what?, and 2) what can I do to make sure any and all products get sales tax when shipping to WA?
When using WooTax and TaxCloud, you should leave the WooCommerce "Tax Status" property as "Taxable" (regardless of your local laws - I will explain).
This is because TaxCloud automatically determines the taxable status of what you are selling based upon the Taxability Information Code (TIC) selected (drop-down menu right below the main edit product panel). The TIC along with your orders' origin and destination addresses, and your TaxCloud configuration control where you collect sales tax, and how much sales tax is due and collected.
This way, if you are selling clothing or prewritten software, or any of the other categories of goods options possible, you do not have to know if the item is taxable, exempt, or partially exempt in the jurisdiction of your customer - just select the TIC category, and TaxCloud will handle it correctly for each transaction's unique fact pattern (including sales tax holidays).
So, to answer your questions:
Be sure the product Tax Status is set to Taxable, to ensure
WooCommerce doesn't try to hide the item from TaxCloud for
calculation.
Be sure to set the appropriate TIC code for the
product (review all the options).
Within TaxCloud, in the "Tax States" area, configure where
you want to collect sales tax.
One more thing... Review your WooCommerce --> Settings --> Tax area to be sure everything is configured correctly:
Enable Taxes: True (Checked)
Prices Entered With Tax: No
Calculate Tax Based On: Customer Shipping Address
Shipping Tax Class: Based upon cart items
Rounding: Unchecked
Additional Tax Classes: [irrelevant - overridden by TaxCloud TIC for each product]
Display Prices in the Shop: Excluding Tax
Display Prices During Cart and Checkout: Excluding Tax
Display Tax Totals:: Itemized
That's all there is to it. Please feel free to call or email TaxCloud customer service if we can help in any way.
Thanks!

Resources