woocommerce-admin | This plugin | Content Management System library
kandi X-RAY | woocommerce-admin Summary
kandi X-RAY | woocommerce-admin Summary
This is a feature plugin for a modern, javascript-driven WooCommerce Admin experience.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get plugin plugin .
- Get profile properties
- Filters the SQL query .
- Return a list of report pages .
- Get the database schema .
- Get formatted item data .
- Sets all available segments .
- Register custom scripts .
- Install plugins .
- Get the current screen ID .
woocommerce-admin Key Features
woocommerce-admin Examples and Code Snippets
Community Discussions
Trending Discussions on woocommerce-admin
QUESTION
This is my current recent order
I wish to add another column "Tracking Number" and it will show woocommerce "note to customer" inside.
result is like : Display last WooCommerce admin order note in customers order history
The difference is without clicking view order and my customer can get to known their tracking number.
But I totally no idea how this work because not familiar with php..
hope to make this done and learn something. Thanks!
the result will
...ANSWER
Answered 2021-Jun-22 at 07:22You Need to create a new column in My order page first
QUESTION
Based on WooCommerce admin orders list custom column with order notes sent to customer answer code, I have tried unsuccessfully to add the following code to make a new column in the WooCommerce My Account Orders list where I've changed manage_edit-shop_order_columns
to woocommerce_my_account_my_orders_columns
hook like:
ANSWER
Answered 2021-Apr-26 at 19:03There are many mistakes in your code… To display the customer order notes sent by admin in My account orders as a new column, use the following instead:
QUESTION
I want only to take manual order notes. I read about them and saw they are "internal" & "customer".
Based on Display last WooCommerce admin order note in customers order history answer code, here is my attempt:
...ANSWER
Answered 2021-Apr-02 at 17:51One of the parameters from wc_get_order_notes is type
internal
is used for admin and system notescustomer
is used for customer notes- leave empty for all
However, adding this param solves only part of your problem. So I believe you can use added_by
and if it is not equal to system, continue
Note: in this example I used a static $order_id
, replace with $order->get_id()
if desired
So you get:
QUESTION
With WooCommerce, I use Dokan Multivendor and want to display the vendor store name of the order in a column. By default Dokan displays the author name of the order instead the store name.
Based on Display vendor store-name (Dokan) on WooCommerce admin order preview, I created this code snippet to do that:
...ANSWER
Answered 2021-Mar-13 at 11:06There are some mistakes in your code. It can be simplified and optimized as follows:
QUESTION
Following Disable Payment Gateway For Specific Shipping Method On Checkout Only answer to my previous question, which:
Disables Payment Gateways ('cardgatecreditcard', 'cardgategiropay', 'cardgateideal', 'cardgatesofortbanking') When Specific Shipping Methods are Selected ('flat_rate', 'request_shipping_quote')
However, it seems that the last part is causing a conflict with the WooCommerce Home page:
...ANSWER
Answered 2021-Mar-10 at 04:43You need to restrict your code to only checkout page:
QUESTION
We add vendor information in the admin order details for each order via:
Now I also want to add this information also in the order preview. I found this answer
We change the hook to woocommerce_admin_order_preview_end
but now when we want to open the preview nothing happend.
Do we have to adjust the whole code in order that it works for the order preview or why is our approach not working?
...ANSWER
Answered 2021-Feb-01 at 10:41As already explained in the link you referred to (By LoicTheAztec). You can't get the order
object as it's a template that loads specific data via Ajax and there is no arguments for woocommerce_admin_order_preview_start
action hook
Instead the filter hook woocommerce_admin_order_preview_get_order_details
will allow you first to add some custom data that you will be able to call and display it via woocommerce_admin_order_preview_start
or woocommerce_admin_order_preview_end
action hook
So you get:
QUESTION
There is an issue when including "stock status" of the purchased items on the client email.
If the client orders the last unit of an item, even though when he ordered it was clearly instock (available for immediate shipping), then the stock status turns to outofstock/onbackorder and the email that is sent to the client (which I assume is sent/generated a few seconds after the stock value is updated from the clients own order) shows this status updated to outofstock/onbackorder, so after completing the purchase now the client thinks the product is out of stock when in fact it was not.
I'm using this code hooked onto my emails:
...ANSWER
Answered 2021-Jan-25 at 13:22You can use the following that will save the product stock status as custom order item meta data when customer place an order (so you will always get the stock status when the order was placed):
QUESTION
Following Display a product custom field only in WooCommerce Admin single orders answer to my previous question, which:
- Adds a Custom SKU Field (ArticleID)
- Saves the Custom SKU (ArticleID) as Hidden Order Item Meta Data
- Saves the Custom SKU (ArticleID) as Hidden Order Item Meta Data for Manual Orders
How can I change the displayed meta key label _articleid
on order line items section of the admin single order pages?
Right now it shows the "SKU", the "Variation ID" (for product variations) and the "_articleid".
I'd like to replace displayed "_articleid" with "Article ID" instead.
Any help?
...ANSWER
Answered 2021-Jan-26 at 00:10You will use the following to replace displayed key label _articleid
with for example 'Article ID' in order items on WooCommerce admin single orders:
QUESTION
Following Display a product custom field only in WooCommerce Admin single orders answer to my previous question, which:
- Adds a Custom SKU Field (ArticleID)
- Saves the Custom SKU (ArticleID) as Hidden Order Item Meta Data
- Saves the Custom SKU (ArticleID) as Hidden Order Item Meta Data for Manual Orders
However, it seems that the last part (for Manual Orders) is causing a conflict with this following other custom code I added for Gateway Fees:
...ANSWER
Answered 2021-Jan-25 at 23:57You need to target only line items on the last function, this way:
QUESTION
I was able to write a code which is working fine! I just had some question if this code has a good quality or if I can do it better.
We want to display "Created by" on every product edit page and coupon etc. in admin backend. For that, I wrote the code below. The basics are from How to add a field in edit post page inside Publish box in Wordpress? and Add a new column with author name to WooCommerce admin coupon list
This code is fully working!
But I'm not sure if it is clean code and want to learn.
...ANSWER
Answered 2021-Jan-10 at 19:29The variable $post_id
is not defined and should be replaced by '$post->ID'. Also replace old
html tag and "Created by:" label should be translatable.
So in your code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install woocommerce-admin
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page