tp911
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Change status of the order through REST APIHi, Thanks for the answer. Yeah, i follow the documentation.
However, i get “Request failed with status code 404”, when i perform this request.Thank you
Forum: Plugins
In reply to: [WooCommerce] Get Order list from Woocommerce REST API for today dateIf you want to get orders that received in a specific time then you can use after & before filters…From Woocommerce REST documentation.
Below is my code…
add_action( 'woocommerce_checkout_process' , 'required_min_cart_subtotal_amount'); // Only run in the Cart or Checkout pages function required_min_cart_subtotal_amount() { if( is_checkout()) { global $woocommerce; // Set the minimum order amount and shipping zone before checking out $minimum = 12; $county1 = array(000001); $county2 = array(000002); // Defining var total amount $cart_tot_order = WC()->cart->total; if( $cart_tot_order < 8 && in_array( WC()->customer->get_shipping_postcode(), $county1 ) ) { // Display error message wc_add_notice( sprintf( '<strong>Eine Mindestbestellmenge von $% s ist erforderlich, um an Ihre Adresse zu liefern.</strong>' . '<br />Aktueller Auftrag: $%s.', 8, $cart_tot_order ), 'error' ); } elseif( $cart_tot_order < 10 && in_array( WC()->customer->get_shipping_postcode(), $county2) ) { // Display error message wc_add_notice( sprintf( '<strong>Eine Mindestbestellmenge von $% s ist erforderlich, um an Ihre Adresse zu liefern.</strong>' . '<br />Aktueller Auftrag: $%s.', 10, $cart_tot_order ), 'error' ); } }
- This reply was modified 4 years, 2 months ago by tp911.
Hi, thanks for the reply. Where should i insert this functionality?
Sure…
Check out the pics attached here….
https://ibb.co/JycVMpy
https://ibb.co/wKq1zy0Thank you
yeah , that’s my question.
But i am having the settings like Including Tax to Display prices in the shop too….But still i am having the prices for items in the cart, is after tax…
Thanks for the reply. I understood how Tax works in Woocommerce. If “Include Tax ” option selected, then subtotal and total will be same in Woocommerce, i knew that, at the same time the price of each item in the cart will be the normal price.
I am having this option but in Woocommerce cart, its just fine. But in the print template the price of each items are different wich means the prices are shown after deduct the teax value, we really do not want to show in that way.
Also the separate line for tax is great fro us too.
But why the prices of the items are showing like that? That’s our problem.Forum: Plugins
In reply to: [WooCommerce] Separate web app for List new ordersThanks for the suggestion. I will look in to it.