For my store, I have two payment methods:
In addition, there are 2 taxes on my store: a tax at 2.6% and another at 8.1%.
For the total calculation of my order, I need that with the second payment method the 6% discount is taxed. My order calculation is: ((SUBTOTALTAX26 * 1.026) + (SUBTOTALTAX81*1.081)) * 0.94 + SHIPPING …
BUT, in the checkout and in the order, the taxes do not change when I choose the second payment method. Here is the code for adding my fee :
$cart->add_fee('Rabais ' . set_rabais_paiement_cash_twint() * 100 . '% pour espèces à la livraison (TVA incluse)', -$discount, true,'standard');
Here is an example of what my store displays at the moment:
However, there should be: TVA 2.6: 9.22 / TVA 8.1: 13.02 because of the 6% discount.
Is it possible to manually set the value of taxes in the cart/order?
If you have any ideas, I’m interested! Thank you very much
]]>I am working on a Webshop that got a custom fee in Woocommerce.
The fee gets applied via the function.php file and if activated, Klarna creates an error on the checkout page called: Bad value: order_lines[4].total_tax_amount
After research the error states that the total-cart-amount does not match the total-amount to pay via Klarna.
My question: Can I disable this background check from the Klarna Plug-In? Or is it possible to flag that cart-fee so Klarna doesn’t throw an error?
Below the used “custom” fee code in functions.php:
add_action('woocommerce_cart_calculate_fees', function() {
if (is_admin() && !defined('DOING_AJAX')) {
return;
}
$cart_total_price = WC()->cart->subtotal;
if($cart_total_price < 10){
WC()->cart->add_fee(__('Verpackungs-/Servicepauschale', 'txtdomain'), 1); // source: https://woocommerce.wp-a2z.org/oik_api/wc_cartadd_fee/
}
});
Thanks for any help!
If it is normal, do paid plans lower the ticket fee and by how much?
]]>If you have 2 products, you have to add the fee, that is, 40 euros + 2.10 + VAT.
Any suggestion?
]]>I have a problem that I don’t know how to solve. If you can help me I would appreciate it.
In my country I have a first general tax of 16% which I have whit to the WooCommerce settings.
The second tax of 3% depends on the payment method, I am placing this tax with the plugin but I cannot get it to be considered in the final price of the product. Since the price of my products includes the 2 taxes (16% + 3%).
And the last drawback is that I cannot set another fee for the same payment method, since I am using it for 3% of my country and not for the true fee of the payment gateway.
Thanks.
]]>