I am trying to change the shipped via in emails and in order information. I have a custom radio button with customer fields that are filled out only on the checkout page. Currently WooCommerce takes the label of the radio button but not the fields. I would like to have the fields only in customer email and in the order
Tag: orders
Add and display custom cart item data in WooCommerce orders and emails
I have a custom woocommerce product type called lottery. I needed a custom select field on it (because it’s not a variable product) So I added one. Everything is working nice i’m getting the value in the cart and in the checkout too, but I cannot get the value in the admin order or in the order mails (clients and
Adding custom text after order total in Woocommerce orders and emails
I am using this to display a custom text for customers from specific countries on the cart and checkout page: This does however NOT add the custom text after the order totals in the plain order emails that Woocommerce is sending. I know there is a filter woocommerce_get_formatted_order_total but I cannot seem to get a working function with this. How
Add permalink to product title in WooCommerce custom order history
I am using Show products name and quantity in a new column on Woocommerce My account Orders answer code to add an additional column to the Woocommerce My Account Order History page that displays the titles of items for the order. How would I make the code display the title as a hyperlink to the product page of the item
Add product data to WooCommerce admin order preview
I used this code for displaying the product attributes in the order details/editor And it seems to work, but there is an error in the admin panel: Fatal error: Uncaught Error: Call to a member function get_id() on null Help me figure it out, I don’t understand why this is happening. Answer To avoid your issue, you need to target
Get non formatted value from $order->get_formatted_line_subtotal() in WooCommerce
I need to make certain changes to the file order-details-item.php Product prices are formed in custom meta fields. So in my case the value is: $qty = $item->get_quantity(); is incorrect. It is always the same. To solve the problem, I can use the simplest arephmetic operation. Divide the total order price by the product price. For example, if a customer
Call to a member function get_items() on boolean in WooCommerce thankyou
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
WooCommerce: get and echo “Order Total” on checkout page
I am trying to get the “Order Total” in a function with this code. But not working. The total is not printed at all. What am I missing here? add_action(‘…
How to get custom fields values from WooCommerce orders
I have checked similar questions but couldn’t resolve the problem. This is my code so far: It is giving me this error: “billing_vergi_dairesi was called incorrectly. Order properties should not be accessed directly”. So I replaced $order->billing_vergi_dairesi; and $order->billing_vergi_no; with $order->get_billing_vergi_dairesi(); and $order->get_billing_vergi_no(); Then I got: “uncaught Error: Call to undefined method”. What I am doing wrong? Answer Since WooCommerce
Hook woocommerce_checkout_order_processed order items issue
I am working on a WooCommerce project. I need to add some entry based on ordered item in my custom table. If user ordered 3 items then those 3 entry will be place along with some data in my custom …