I have successfully added the phone number field in Ship to different address and the phone number is showing in back-end as well. However I am not receiving the phone number in email. Kindly Help This code helps me to add field: I have tried adding additional code in the above code (shown below) to show the phone number in
Tag: custom-fields
WordPress hide post from custom post-type on a single page
Initial situation custom post-type (projects)[projects.php] custom field (with cmb2)[projects.php] front-page.php What I want On my front-page is a section ( <div class=”m-rowteaser m-rowteaser–default”> ) what is displaying a random post from the post-type projects. There are some post that I don’t want to see at the front-page. Note: the post must be active because there is another page with these
Save product custom field value as custom order item meta in WooCommerce
I have problem with custom field in woocommerce (latest version). I need your help. My code function completed_order($order_id) { $order = wc_get_order( $order_id ); $customer_id = $order->…
Pass custom product text field as cart item data in WooCommerce
The goal here is to have a text field on the product page. The customer fills it in and adds to cart. The text is added to the product and included in the cart and on the checkout and on the order. …
Pass custom product meta data to the order in Woocommerce 3
In Woocommerce, I’m attempting to add a piece of custom meta to my products and I would like to pass it through to orders. We have a substantial amount of products and they are accountable to different cost centers so I need a select box inside the product admin that we can choice the cost centers that passes a value
Add a custom field value below product title in WooCommerce archives pages
In WooCommerce I would like to add custom text to my products display, that will be grabbed from a custom field in product’s edit page. This is how it looks now: You can see the products with their title below: I would like to add a text below every product, marked with blue pen: I have managed to find some
Get a custom field count for Woocommerce orders
Hi I am working on woocommerce I have added custom fields in Woocommerce for orders which is an Agent name each order is assigned with an Agent. I would like to get Agent name with its total order count. I have created custom widget and its working well , just issue with the agent name its coming every time. I
Add custom field data to WooCommerce order
I have a custom field on my WooCommerce single product. It sends to the cart fine, it displays on checkout fine, it shows in the order in the dashboard fine. What I am now trying to do is set the value as a custom field in the order page so I am able to amend the text when I need