orders

Limit guest users to buy a particular product multiple times in the same week based on previous orders in WooCommerce

左心房为你撑大大i 提交于 2021-01-07 01:06:11
问题 I'm looking for a restriction if a guest user has bought a specific product 2 times in a week he must not be able to make another purchase of same product . Im looking to apply this restriction based on guest user's email and phone number. I've seen many posts related to that but all focus on registered users however i want to apply this restriction for guest users. This is the code I am currently using, unfortunately without the desired result function my_ip_checker() { $last_order = get

WooCommerce change status for BACS orders based on specific shipping methods

淺唱寂寞╮ 提交于 2021-01-06 08:51:41
问题 How do I change the order status from on hold to my own custom status for a specific shipping method if the selected payment gateway is BACS? This is how I added my own custom status: // Register New Order Status add_filter( 'woocommerce_register_shop_order_post_statuses', 'register_custom_order_status' ); function register_custom_order_status( $order_statuses ){ // Status must start with "wc-" $order_statuses['wc-custom-status'] = array( 'label' => _x( 'Calculating Shipping', 'Order status',

WooCommerce change status for BACS orders based on specific shipping methods

☆樱花仙子☆ 提交于 2021-01-06 08:45:39
问题 How do I change the order status from on hold to my own custom status for a specific shipping method if the selected payment gateway is BACS? This is how I added my own custom status: // Register New Order Status add_filter( 'woocommerce_register_shop_order_post_statuses', 'register_custom_order_status' ); function register_custom_order_status( $order_statuses ){ // Status must start with "wc-" $order_statuses['wc-custom-status'] = array( 'label' => _x( 'Calculating Shipping', 'Order status',

Redirect automatically from Woocommerce thankyou to an external link passing variables

一笑奈何 提交于 2020-12-31 14:06:17
问题 In Woocommerce, after placing an order, I Would like to redirect customer automatically after 5 sec from the thankyou page to external link passing a few variables as the order_id , and the order_ammount . So How can I redirect customer automatically from Woocommerce thankyou to an external link passing variables after 5 seconds? Any track is welcome. 回答1: The following code will redirect from checkout page to an external link passing few variables after 5 seconds using php and javascript:

Redirect automatically from Woocommerce thankyou to an external link passing variables

丶灬走出姿态 提交于 2020-12-31 14:01:45
问题 In Woocommerce, after placing an order, I Would like to redirect customer automatically after 5 sec from the thankyou page to external link passing a few variables as the order_id , and the order_ammount . So How can I redirect customer automatically from Woocommerce thankyou to an external link passing variables after 5 seconds? Any track is welcome. 回答1: The following code will redirect from checkout page to an external link passing few variables after 5 seconds using php and javascript:

Custom action missing from WooCommerce Order actions Metabox dropdown

前提是你 提交于 2020-12-26 04:52:18
问题 With the help of this page I've added an additional email to the WooCommerce emails. I wanted it te be a manual email that I can send to the customer, but it's not showing up in the order in the dropdown list of emails to send. I'm guessing I'm missing something, but I don't know what. This is de code of the plugin I use: <?php /** * Plugin Name: WooCommerce Custom Order Email * Plugin URI: http://www.skyverge.com/blog/how-to-add-a-custom-woocommerce-email/ * Description: Demo plugin for

Custom action missing from WooCommerce Order actions Metabox dropdown

蓝咒 提交于 2020-12-26 04:51:21
问题 With the help of this page I've added an additional email to the WooCommerce emails. I wanted it te be a manual email that I can send to the customer, but it's not showing up in the order in the dropdown list of emails to send. I'm guessing I'm missing something, but I don't know what. This is de code of the plugin I use: <?php /** * Plugin Name: WooCommerce Custom Order Email * Plugin URI: http://www.skyverge.com/blog/how-to-add-a-custom-woocommerce-email/ * Description: Demo plugin for

Custom action missing from WooCommerce Order actions Metabox dropdown

寵の児 提交于 2020-12-26 04:50:08
问题 With the help of this page I've added an additional email to the WooCommerce emails. I wanted it te be a manual email that I can send to the customer, but it's not showing up in the order in the dropdown list of emails to send. I'm guessing I'm missing something, but I don't know what. This is de code of the plugin I use: <?php /** * Plugin Name: WooCommerce Custom Order Email * Plugin URI: http://www.skyverge.com/blog/how-to-add-a-custom-woocommerce-email/ * Description: Demo plugin for

How to insert the first 3 product images of an order in WooCommerce “My account” orders table

假如想象 提交于 2020-12-23 12:08:43
问题 Does somebody know how to insert the first 3 images of an order into the WooCommerce my-orders table? Additionally I would like to add an "and more"-button, linked to the specific order (same link as order-number) with an if condition. Hint: To stay more flexible it would be nice to get a solution without hooks, if possible. I'd like to edit even more and overwrite the my-orders.php via child-theme later. Here is the solution I use at the moment. <div class="order-status"> <span>Order Status<

How to insert the first 3 product images of an order in WooCommerce “My account” orders table

一笑奈何 提交于 2020-12-23 12:06:23
问题 Does somebody know how to insert the first 3 images of an order into the WooCommerce my-orders table? Additionally I would like to add an "and more"-button, linked to the specific order (same link as order-number) with an if condition. Hint: To stay more flexible it would be nice to get a solution without hooks, if possible. I'd like to edit even more and overwrite the my-orders.php via child-theme later. Here is the solution I use at the moment. <div class="order-status"> <span>Order Status<