maryoli
Forum Replies Created
-
Hello @wcmp ,
I just have normal woocommerce orders, if the logged in user has the metadata ‘dispense_tva’ equals ‘oui’ I have to remove all taxes from the current order he is passing.
Using the code I sent above, what I have is :
On the front page the prices on the cart and order page is shown without taxes and VAT total is not shown and the order shown on the admin panel of the main order + the email sent to the client don’t include VAT and taxes which is correct, but on the admin panel of the vendor + the email sent to the vendor I still have the VAT total showing and the total price of the order containes the total of the order + the total of the VAT.
What I’m looking for now is to remove the VAT from the sub-order on the vendor admin panel and the email sent to the vendor.
Example of an order :
main order : https://snipboard.io/9xzd8m.jpg
sub-order created for the vendor : https://snipboard.io/6KYOv4.jpg
Best regards.
hello @wcmp ,
Any updates on the matter ?
I tried some functionsn but still not working on the sub-order.
Best regards.
Hello,
This is the code that works for the main order :
function flat_rates_cost( $rates, $package ) { $user = wp_get_current_user(); $data = get_user_meta( $user->ID, 'dispense_tva', true ); if($data=='oui'){ foreach ( $rates as $rate_key => $rate ){ //if ( 'free_shipping' !== $rate->method_id ) { $has_taxes = false; $taxes = []; // Taxes rate cost (if enabled) foreach ($rates[$rate_key]->taxes as $key => $tax){ if( $tax > 0 ){ $has_taxes = true; $taxes[$key] = 0; // Set to 0 (zero) } } if( $has_taxes ) $rates[$rate_key]->taxes = 0; //} } } return $rates; } add_filter( 'woocommerce_package_rates', 'flat_rates_cost', 10, 2 );
Best regards.
Forum: Plugins
In reply to: [TI WooCommerce Wishlist] Wishlists translation polylangHello,
I have contacted your support via support chat for more than 2 days ago, still no response.
Best Regards.
- This reply was modified 3 years, 8 months ago by maryoli.
Forum: Plugins
In reply to: [TI WooCommerce Wishlist] Wishlists translation polylangHello,
I translated the page that has the shortcode [ti-wishlist] to English but the wishlist page in English still shows the Empty wishlist page, instead of the 2 translated products.
For your informations I added the products to whishlists from the French version of the Website but when i change to English it shows empty.
I sent you the details via your chat support.
Best Regards.