How to group total of same tax name in woocommerce - 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.

Related

WooCommerce Ignores Country Change During Checkout Process

Context
A seller is from one and only one country (M). An end user wants to purchase membership which costs 500 EUR.
It appears that the seller's country (M) is taken as a reference when calculating taxes not only for country M but also for all other countries. In this example, I defined two countries and their different tax rates.
Tax for country M is 9%, and when I select it, then the system spits out "500 EUR (incl. 41,28 € tax)"
41,28 € is 9% of 500.
However, if during the checkout I select "country C" then the system spits out "555,05 € (incl 96,33 € tax".
The way THIS is calculated is by taking a non-tax amount from country M 458,72 EUR (500 - 41,28) and adding to it tax amount defined for country C (21 %).
458,72 EUR x 1,21 = 555 EUR.
(This does not make sense. The user changed the country during checkout process, but the system ignores it).
This way, what is defined as the package price, changes constantly (as example above instead of 500 EUR it shows 555 EUR as the total price)
The way it SHOULD be calculated based on my opinion is: when a user during the checkout selects country C the full amount defined for the entire package (500 EUR) and defined tax rate for the selected country (country C = 21 %) should be taken to calculate the tax amount.
I would expect the result: "500 € incl 86,77 € tax."
(86,77 is 21% of 413,22 EUR)
Question:
Why is WooCommerce not refreshing country during the checkout when a user selects a country different from store country?
How can I setup this functionality with WooCommerce?
Target functionality is to define membership packages for everyone independent of countries. And all users should see (and pay) the same price.
But when a user from country M goes through the checkout process then in reference to the total price the tax should be calculated. Same should work for any other country.

WooCommerce Product to be purchased only once regardless of the quantity and the user

I have a property site, I have rooms as products in WooCommerce. There is an option to rent the room whether for 6 months or 12 months. I did a workaround and for 6 months the product quantity will be 1 and for 12 months the quantity will be 2.
E.g
For 6 months price is 2000 (quantity 1)
For 12 months price 4000(quantity 2)
Now what I want is to restrict the product (room) to be purchased only once.
Link : https://heyrooms.com/property/morden-apartment-balham-london-6/
The book now button add the product in the cart according to the time period in the drop down above.
Edit: I can't use a variable product options. Because it's not the case here.
I would propose a different approach to solving the problem.
Why don't you create the products as variable instead of simple. You can then set the price accordingly for 6m/1y. Then just make the stock quantity as 1.
You should then be good to go.

Change the total price of a product in cart

as you see in the image, the cart has two products.
I want to add some extra charge to the total price of the first product.
Now is 360 I want to add 30 so, the total price will be 390.
I did it by using the woocommerce_cart_product_subtotal
filter, but the cart's total price doesn't update.
It shows 560 and not 590, which is what I want.
Does anyone know how could it be done?

Gravity Forms - Conditional Result

I have a GF with 3 products at a set price. However, if the user purchases more than one, there's a $50 discount on each additional item.
EX: Product 1 = $500
User buys 2 items, $500 + $450 (total = $950). Is there a way to do this with native (or plugin) conditional logic?
The only way I know how to do this natively is to create an extra Product field that adds as a "base" fee. In your case, that fee would be $50. Then your product price would be $450 all the time. Use conditional logic to "show" the base fee when only 1 item is ordered and to "hide" the base fee when more than 1 item is ordered.

2nd product discount for Drupal 7 Ubercart

I have a client who asked this.
The original product price is $26. But when we order 2nd product and after that is going to be $22 per item.
So if I order 3 products the total would be 26 + 22 + 22 = $70
Is there a module that can do this or any workaround ? I have searched and I could find a solution for this.
I believe this does what you're looking for, set a price and a min quantity to get that price
Ubercart Volume pricing
You can do a product quantity discount with this module:
https://drupal.org/project/uc_coupon
This module is also another possible solution:
https://drupal.org/project/uc_discounts_alt

Resources