See the meta here https://ibb.co/jZs2gyL
]]>Do you know if there is a way to remove the “(+$5.00)” completely to it’s own class in the order details meta? Here is how it looks when inspecting the source HTML:
<td class="product">
<span class="item-name">Product 1</span>
<span class="item-meta">
<ul class="wc-item-meta">
<li>
<strong class="wc-item-meta-label">Add-on Title:</strong>
<p>
Add-on Item (+<span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>5.00</span>)
</p>
</li>
</ul>
</span>
<dl class="meta"> </dl> </td>
Currently, the parentheses and + symbol are part of the Add-on item name which makes for a not so clean approach when printing packing slips without price information as this part of the formatting still remains.
Thank you!
]]>I was using the get_post_meta() to get the meta value. As I need to make my plugin to get compatible with WC HPOS, I changed it to $order->get_meta(). but it shows errors like Notice: Function is_internal_meta_key was called?incorrectly. Generic add/update/get meta methods should not be used for internal meta data, including "_shipping_phone".
Please help to resolve this
]]>Student First Name:PeterStudent Last name:Koehler
Custom Checkout Fields
Student First Name: Peter
Student Last name: Koehler
TWO times Order Meta Details displaying. How to solve this?
]]>Currently it looks to be stored as a cookie
Thanks
]]>Do you know the way how to add a custom user field to the order as meta data?
I tried some things but I am getting errors all the time:
// Add the user meta as order meta data
add_action( 'woocommerce_order_status_wordt-verwerkt', 'add_wefactemail_to_order_meta_data', 10, 2 );
function add_wefactemail_to_order_meta_data( $order ) {
$user_id = $order->get_user_id(); // Get the user id
$wefactemail = get_user_meta( $user_id, 'KVK_nummer_2', true );
$order->update_meta_data( 'WeFact_Billing_Email', $wefactemail );
}
Also, I am using the custom order status plugin from WooCommerce. So I am trying to add the action when we are updating the order status to the custom order status “wordt-verwerkt”.
I hope you can help me out.
Best,
Olga
It may be a bit of an unusual question for the packing slip.
1. Would it be possible to get the order information (the order table) of an order with meta data that is the same as in the current order?
2. And would it be possible to get the order information (the order table) of an order the ordernumber that is the same as the meta data in the current order?
I will explain my case and the reason why.
We are using an order splitter plugin to split items, that are not yet shipped, from the main order #3456 to a suborder. Now this suborder is getting the following meta data: “cloned_from: 3456”.
So I would like to get the order data of all the other orders that have this same meta data. (preferably only the orders that are not the current one, or orders that have the order status “complete”)
And I would like to display the order items from the order that has the ordernumber that is stored in the meta data.
I hope you can help.
Best regards,
Olga
I am building a payment solution for video content, where the end result of the transaction is a combo of the resource ID and a unique identifyer.
The identifyer along with the URL to view the resource is displayed to the user AND sent to their email address upon payment completion.
We are, however, concerned that the user may NOT have access to their VIPPS email, hence the need to explore whether this code (generated BEFORE sending the user to the payment gateway) may be included in the listing which appears within the VIPPS app.
Thanks in advance.
]]>Is there a way to alter packing slip template (or create a custom one) via dashboard interface? If not what files should I modify to design my own?
BR,
Gytis