woocommerce_order_status_changed
hook to add a generated custom item meta value to an item in the relevant order when the status of the order is changed to “completed”.
I then want to show that custom meta in the email which is sent out (emails/customer-completed-order.php). However, it would appear that the hook I mention above runs after the email is sent.
I’ve tried modifying the priority of the hook call, but this makes no difference.
Does anyone know of an earlier hook which would indicate that the status has been changed, which is triggered before the email is dispatched?
I have an issue updating or deleting line-item meta when creating an order from the admin panel.
The following scenario creates an issue.
1. Add new order from wp-admin Woocommerce panel.
2. Add item -> select product.
3. Edit item -> add meta -> Save item.
4. Edit item once again -> update meta or delete meta -> save the item.
On update value, it creates a new meta entry.
On delete, nothing happens.
The function which creates an issue:
/wp-content/plugins/dokan-lite/includes/Commission.php:111
function: hide_extra_data( $formated_meta ).
Item meta key(id) not set in array.
]]>Im using “Extra Product Options (Product Addons) for WooCommerce” to create extra fields on products for this to show.
FIELD:
-> order item post meta
->-> order_item_type: line_item
The field is called: extra_text
So, how can i show this field on the pdf.
(i have premium plugin)
Thanks // Fredrik
]]>I have variation products with different delivery date and time.
So, I will like to add a custom column showing the item meta of each products purchase by customer on vendor’s dashboard.
So vendor able to prepare each item based on the delivery date and time.
Is there a way to do this?
]]>The developers of that plugin told me: “The data for Local Pickup Plus is stored as Order Item meta. This is stored in a separate table to normal post meta in the database, on a default install this would be located at wp_woocommerce_order_itemmeta. Within this table you can then extract the data using the _pickup_location_name key if you know the order_item_id that matches your order.”.
So my question is, could your plugin hook (as previously mentioned) be used to query this table and get the value of the _pickup_location_name key?
Thanks
I would like to add custom meta boxes to order items on the Edit Order page.
Our sales staff need to change meta data that has come through from the Product.
However, it is all done in text boxes.
Is there some way to have variations as drop-down selections so staff can update customer’s orders?
This would also hopefully change the price. We have thousands of variations and can’t force our staff to add things manually.
The reason the text Meta Boxes are no good is because staff could spell something wrong, the price also obviously doesn’t update. Which is a requirement.
Basically the product almost becomes static on an order.
TLDR; Does anyone know a way to create custom (or variation based) drop-down boxes for individual product meta on the Admin Order area?
I’ve looked into ACF (pro) to no avail.
Thank you.
]]>Output example:
ADA Braille Exit Sign – 2×8 (#ADA-E28)
1. Base Collection: ADA Alternative Collection
2. Base Color – ADA Alternative Collection: Dark Brown – PMS 412C
3. Base Thickness: 1/16″
4. Corner Style: Rounded
5. Font Family Options – White: Myriad Pro
6. Braille Color Options: Clear
7. Mounting: Foam Tape
Thanks in advance
]]>I created a product variation input area ‘Message’ on the product page and would like it to be displayed below the order data table on the invoice and packing slip using the template action hook. Can you tell me the code to put in the template-functions.php file? I tried but the meta key for the ‘Message’ field is not clear cut. I have attached a picture of the meta keys that are displayed.
Thank you
]]>I tried
<?php echo $item['_tax_class']; ?> <?php echo $item['tax_class']; ?>
it doesn’t work.
Please help
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
]]>