for B2B clients the individual shop items should be displayed without VAT. Also when VAT is applied afterwards. I believe this was the case with all our previous orders.
in that case, I have to code it myself. For the order confirmations, do you use the core WooCommerce templates, or does the plugin use its own custom files (so I know where to look)?
You can check if an order is a B2B order as follows:
$order = wc_get_order($order_id);
$customer_id = $order->get_customer_id();
// check if customer is b2bking b2b user
$is_b2b_user = get_user_meta($customer_id,'b2bking_b2buser', true);
if ($is_b2b_user === 'yes'){
// this is a b2b user and a b2b order
}
The plugin does not have a separate mechanism or separate templates outside the WooCommerce ones for orders.
I'll have to come back to you on your reply from 2 weeks ago, where you stated that for Belgium B2B customers the individual products on the order confirmation are including VAT. We have checked this with previous orders, and it seems that VAT is normally not being applied to the individual products (https://prnt.sc/132n724).
This is odd. I've looked again into this. Indeed, it seems that the way it should behave is to show items 'ex vat' in the order confirmation as well. It seems that I got a little confused here as well. I apologise because I think I may have given you wrong information here in this thread.
Thinking more about this, recently there was a related bug that affected situations with multiple exemptions, where 1 exemption would not be applied. Perhaps it was the same issue with the order you mentioned - because otherwise I cannot explain it (why that order would show the vat included). I believe this should be now fixed. I've updated the plugin in your site and placed a test order. At least for now this seems to be working as expected. The email sent shows items as 'ex vat'.
On our latest B2B order on the order confirmation prices are mentioned including VAT (https://prnt.sc/12ewmkv). Can you check out why that is?
Side note: our prices in the shop backend are entered including VAT.
Hi Stefan,
for B2B clients the individual shop items should be displayed without VAT. Also when VAT is applied afterwards. I believe this was the case with all our previous orders.
Regards,
Pieter
I'm not sure if I follow you.
Your current setup is this for B2B users:
- EU users outside Belgium: See prices without tax in Shop, and don't pay tax in Cart/Checkout
- EU users inside Belgium: See prices without tax in Shop, and PAY tax in Cart/Checkout
For B2B orders outside Belgium, there is simply no VAT to show, in order confirmation or anywhere else - the orders are marked as VAT exempt.
For B2B orders in Belgium, these are normal orders. The VAT is separated in Shop Pages but it is paid.
Our plugin does not separate the VAT in the order confirmations.
Kind regards,
Stefan
Hi Stefan,
in that case, I have to code it myself. For the order confirmations, do you use the core WooCommerce templates, or does the plugin use its own custom files (so I know where to look)?
Regards,
Pieter
Hi Stefan,
thinking one step further... Is there any code snipped I can use to verify if an order is a B2B order?
Regards,
Pieter
Hi,
You can check if an order is a B2B order as follows:
The plugin does not have a separate mechanism or separate templates outside the WooCommerce ones for orders.
Kind regards,
Stefan
Hi Stefan,
I'll have to come back to you on your reply from 2 weeks ago, where you stated that for Belgium B2B customers the individual products on the order confirmation are including VAT. We have checked this with previous orders, and it seems that VAT is normally not being applied to the individual products (https://prnt.sc/132n724).
Can you check this again?
Regards,
Pieter
Hi Pieter,
This is odd. I've looked again into this. Indeed, it seems that the way it should behave is to show items 'ex vat' in the order confirmation as well. It seems that I got a little confused here as well. I apologise because I think I may have given you wrong information here in this thread.
Thinking more about this, recently there was a related bug that affected situations with multiple exemptions, where 1 exemption would not be applied. Perhaps it was the same issue with the order you mentioned - because otherwise I cannot explain it (why that order would show the vat included). I believe this should be now fixed. I've updated the plugin in your site and placed a test order. At least for now this seems to be working as expected. The email sent shows items as 'ex vat'.
Let me know if you encounter any further issues.
Kind regards,
Stefan
OK thanks Stefan, fingers crossed.