orders

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

余生长醉 提交于 2020-12-23 12:01:36
问题 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:00:12
问题 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 limit the number of orders per customer via a time limit in WooCommerce

半城伤御伤魂 提交于 2020-12-12 11:57:32
问题 I want to prevent selling each 24 hour by a customer. check if there are other purchases from that costumer at the past 24hr and display an error before payment and ask to return later What I have tried so far function prevent_repeat_order() { $last_24_hours_from_order_results = wc_get_customer_last_order($user_id); (array( 'date_created' => '>=' . (time() - 86400), // time in seconds 'paginate' => true // adds a total field to the results )); if ( $last_24_hours_from_last_order->total > 1 )

Get Woocommerce currency symbol from order in YITH invoice plugin

拜拜、爱过 提交于 2020-12-06 16:44:28
问题 Our WooCommerce site has 2 currencies. The primary currency is the Indian rupee and the secondary currency is USD (using currency switcher). I tried placing an order in USD but the YITH invoice shows the primary Indian rupee symbol in the invoice. I have tried changing to all sorts of currency switcher plugins available but the symbol won't change in the invoice, it simply takes the default currency symbol. I even tried adding 'get_woocommerce_currency_symbol()' to currency arg array to the

Call to a member function get_items() on boolean in WooCommerce thankyou

谁说胖子不能爱 提交于 2020-11-29 10:28:33
问题 I am trying to get order details to display a summary on my thank you page. The issue I am having is that this code snippet I have is breaking my wordpress. I have the stacktrace but I am unsure on how to fix it. The code to me looks correct so ensure why it's not working. Does anybody have any idea what is the meaning of this stacktrace and how I can fix it? An error of type E_ERROR was caused in line 7 of the file /home4/xxx/public_html/staging/4326/wp-content/plugins/code-snippets/php

Call to a member function get_items() on boolean in WooCommerce thankyou

房东的猫 提交于 2020-11-29 10:27:50
问题 I am trying to get order details to display a summary on my thank you page. The issue I am having is that this code snippet I have is breaking my wordpress. I have the stacktrace but I am unsure on how to fix it. The code to me looks correct so ensure why it's not working. Does anybody have any idea what is the meaning of this stacktrace and how I can fix it? An error of type E_ERROR was caused in line 7 of the file /home4/xxx/public_html/staging/4326/wp-content/plugins/code-snippets/php

Call to a member function get_items() on boolean in WooCommerce thankyou

岁酱吖の 提交于 2020-11-29 10:27:05
问题 I am trying to get order details to display a summary on my thank you page. The issue I am having is that this code snippet I have is breaking my wordpress. I have the stacktrace but I am unsure on how to fix it. The code to me looks correct so ensure why it's not working. Does anybody have any idea what is the meaning of this stacktrace and how I can fix it? An error of type E_ERROR was caused in line 7 of the file /home4/xxx/public_html/staging/4326/wp-content/plugins/code-snippets/php

Automatically add a specific category and tags to a product when it goes out of stock after the order is placed [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2020-11-29 03:56:05
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 months ago . Improve this question Hi I'm facing an issue regarding wordpress and WooCommerce I want to automate the process"when ever product goes out of stock it will automatically added to some other specific category and a tag 'out of stock is assigned to it" like these images attached: