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
Tag: woocommerce
How do I insert meta data to my customers in woocommerce using an object array?
Hi I am trying to use the woocommerce API and do post requests of customer data and adding an internal customer ID. Here is my data I have tried to pass this data through a post request Below is the response when I commented out the meta data. But as you can see there is a meta data array. But
Hide or edit the “You cannot add another ‘xxx’ to your cart” error message in WooCommerce 4.5+
Via the product settings I enabled “sold individually: enable this to only allow one item to be bought in a single order” While adding the same product to cart, there appears an error message because I enabled this setting. The error message is “You cannot add another ‘xxx’ to your cart”. I don’t want the same product added to the
Change “Remove” link text for WooCommerce coupon on checkout page
Instead of [Remove] on the WooCommerce checkout for added coupons, I would like the text to be [Remove & Re-Calculate]. I am using the following and the text is changed but there is no link (the coupon cannot be removed). This is what I tried: Answer includes/wc-cart-functions.php contains at line 293, just before the woocommerce_cart_totals_coupon_html filter hook. So to replace
How to save from WooCommerce checkout a custom checkbox field state?
I have a problem with the update_post_meta function. I have a user submitted value, which I pass via $_POST and then saving to post meta. All is working fine, but when the value is ‘0’ the post meta is not updated. This is My code: Does anyone have any idea what might be wrong? Answer Since WooCommerce 3, here below
Remove “Search Results: ‘%s’” and blank space from Woocommerce Shop Search Results Page
I am trying to remove the “Search results: ‘ ‘ ” text that shows above products on the Woocommerce Storefront search results page. Below is an image with the referenced text circled: I have …
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
Assign a percentage fee to WooCommerce payment methods based on user roles
How do I expand this snippet to include 2 more payment gateways with different fees? The payment gateways I want to add are ‘cardgategiropay’ and ‘cardgateideal’ and the fees are 3% and 2% …
Custom phone number field not showing in WooCommerce order email
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
Why does WooCommerce Order Shortcode Generate Plugin Notice on Custom Thank You Page?
I have created a re-direct to a custom “Thank You” (order-received) page in WooCommerce by using my child theme and functions.php. The re-direct works as intended and all other shortcodes that I have created works fine, except for this. When inserting my [order_cost_breakdown] shortcode using Gutenberg on my Thanks page and when placing on order, I get this notice: I