VAT

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #94553
    Rémi
    Guest

    Hi,
    Thanks for this plugin,

    It seems the plugin desn’t consider the included or excluded VAT enter option (first option in Woocommerce > Settings > VAT).
    In fact, I use included VAT prices for my product whereas “Custom Shipping Methods for WooCommerce” still use excluded VAT .
    There is no problem in Woocommerce, but I use a connector with Odoo and it couldn’t understand that there are both included VAT for products and excluded VAT for the ship.

    So is it possible to input included VAT prices for the cost of a custom shipping method ?

    Thank you for your help.

    #94554
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Remi,

    You are correct – custom shipping cost should be set without VAT. If you check the description tip near the “Cost” option, it says “Enter a cost (excl. tax) or sum…”. We did that because same cost settings rules are used in standard WooCommerce “Flat rate” shipping settings (i.e. also excl. tax).

    I could probably add an option to set cost with VAT, however I’m not really sure I understand the task correctly. I mean – you could just precalculate shipping cost manually just once and enter it without VAT (e.g. if shipping cost is $100 with VAT and VAT is 20%, then you would enter 100 / 1.20 = $83.33 as custom shipping method cost) – wouldn’t that solve the issue? What am I missing?

    Also, as you’ve probably noticed, there is “Tax status” option in custom shipping method’s settings, so you can set if final shipping price for the customer should include or exclude VAT.

    #94555
    Rémi
    Guest

    Hi,

    Thanks for reply.

    I know you did that because same cost rules are used in standard Woocommerce settings.
    I already input shipping cost without VAT, but it’s not my issue.
    In fact, there is no issue with your plugin.
    I’m trying to get around another issue from an Odoo connector, and I think if I could input shipping cost with VAT included, it should resolve a part of the problem.

    And I don’t understand your last sentence.
    Because, the “Tax status” option can set if there is or not VAT for a cost… that’s different than input an included VAT price or an excluded VAT price.

    Certainly my request is not very clear because the goal is to resolve another problem, totally independant of your plugin.
    I only wonder if your plugin could process with an included VAT logic instead of an excluded VAT logic.

    Regards

    #94556
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Remi,

    Ok – please give me a couple of days to check if I can add an option to set custom shipping cost including VAT. Will get back to you about this asap.

    Regarding my previous note about “Tax status” – you are correct, this sets if VAT should be added to shipping cost in final calculation. Just thought maybe this may help you… Anyway, in case anyone else has question regarding “Tax status”: for example you set shipping cost to $10 and your VAT is 20%, then if you set tax status to “Taxable” you will get $12 as final shipping price and if you set tax status to “None” – final shipping price will be $10.

    #94557
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Remi,

    We’ve just released new plugin version 1.3.0. I didn’t add option to enter price with VAT, however I did add alg_wc_custom_shipping_methods_evaluate_cost_sum_evaluated filter that is applied just before the shipping cost is returned. So now you can modify the cost by adding something like this to your (child) theme’s functions.php file:

    add_filter( 'alg_wc_custom_shipping_methods_evaluate_cost_sum_evaluated', 'custom_modify_shipping_cost', 10, 1 );
    if ( ! function_exists( 'custom_modify_shipping_cost' ) ) {
    	function custom_modify_shipping_cost( $sum ) {
    		if ( WC()->cart->get_customer() && ! WC()->cart->get_customer()->get_is_vat_exempt() ) {
    			$sum = $sum * 1.21;
    		}
    		return $sum;
    	}
    }
    

    If you could give more info on when you need to add/remove VAT from cost – I could try to provide you with the exact code to add.

    Also if you wish, you can share an admin account to your site (WP and FTP) so I could login and help you with solving the task – my private email is [email protected]

    Hope that helps.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.