woocommerce: display_price_suffix with condition - woocommerce

I want to show Woo commerce field price display suffix to '+tax' only for the country code i put in the Standard Tax. I don't want other users all over globe to see that suffix as they don't have to pay tax.
I tried to use 'Price based on country'plugin but didn't work. Any help would be appreciated.

Related

replace price in woocommerce product page based on a formula

can someone let me know how can i modify the product price of a woocommerce individual product page.
what i want to do is replace the product price with a new price and show several other prices.
for an example,
i want to increase the price shown by 10%
show installment price
show paypal price
i want to only display these and i dont want a full code, i want a guide on how to do this coz im new to wordpress/woocommrce and want to learn.
any help will be appreciated

vat is added twice in order

I entered all product prices including vat. in backend I selected the option "Prices added inkl. vat" So now in Order Process when I chooce the country the prices are recalculated and vat is added on top of it.
what could be the reason?
thanks in advance

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?

woocommerce shipping table rates per order + per cart

I am using woocommerce table rate shipping
In my current system I need to two types of shipping rates
1. Per Order (Based on category )
2. Per Item (Based on category )
The both categories are working fine if the products are separately added
But while I am adding and one products from each categories, in that senarioes I want to both shipping method summation.
Can anyone help me?
Thanks,
Denis
http://www.yiion.com
If you are using the Table Rate plugin from WooCommerce you have to check 'break' when setting up the shipping method.

Drupal and Ubercart - buy products including and excluding tax

I am developing an e-commerce site for use in the UK, and have been required to let the user buy products either with or without tax included.
I have slightly modified the AAC module to show prices either including or excluding VAT depending on a cookie which is set via a "view prices including/excluding" link, but of course whenever a product is added to cart, the price is that from the database - i.e. including VAT.
Does anyone know of any neat tricks or modules that would let me do this?
We've decided to go for just viewing prices excluding the vat, and not being able to buy them at the excluding vat price.
In case anyone needs it, here is the code/formula used to get the full price and work out the lower vat-free price:
(line 217-222 of uc_aac.module in my version - and you will need a div with the class "excluding_VAT").
//Get the updated price, minus VAT
new_val = parseFloat(updated_price.substr(1));
new_val = (100/115) * new_val;
new_val = Math.round(new_val*Math.pow(10,2))/Math.pow(10,2);
$(".excluding_VAT").html("£"+new_val+" exc VAT");

Resources