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
Tag: woocommerce
How to display custom sidebar in specific WooCommerce category?
I have specific question about WooCommerce plugin. I am using WooCommerce Product Categories widget to show category menu on the left sidebar. On my website I have a category for special offers (which contains some subcategories and products) and I want other categories to be hidden from Woocommerce Product Categories widget when user opens this “Special Offers” category. I already
WooCommerce hide order item meta from front end (not admin)
I have a couple of order item meta details that I would not like the customer to see (on the view orders page under account info). I have found a filter that will remove this data from the ADMIN (…
Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type
I want add a custom Button “View Demo” next to “Add to Cart” button of WooCommerce based on Product Type, both on main shop page and single product page. I’ve done this steps: Add code to theme file …
WooCommerce: Set country by default in checkout page
I am using WooCommerce in my Wordpress web site. The customers billing and shipping details are populated by default on checkout page. I want that the country will not be set by default. Instead it …
Programmatically creating new order in Woocommerce
I am having the hardest time programmatically creating an order in WooCommerce. I am using the code below and is DOES create an order BUT I cannot get customer information OR product line items added to the order. The new order that is create is simply as Guest with no items, user information, etc. The issue seems to be that
WooCommerce add order note to orderCompleted email
I am at my wits end here and have tried every solution I could find online for days and nothing works. The worst part is the problem should be solvable in about 4 lines of code but it just isn’t …
How to get attribute name instead of slug in variation?
I need to get attribute from woocommerce product variation. This code is giving me an attribute slug instead of name. How can I get attribute name? Thank you so much in advance! Answer What you are getting is the slug of a taxonomy… In WooCommerce, attribute_pa_color without the attribute_ is a taxonomy. So you can try something like this.. to
WordPress Woocommerce Redirect Argument
When I enable my site automatically show argument ?v= like this How can I fix this? Answer String to all urls ?v=XXXXXXXXXXXX. That URL is coming from standard base address setting in Woocommerce. When you choose geolocation with caching support for page, it will add that ?v=xxxx string because it’s capturing the visitors base address TO fix it goto woocommerce->settings->Default
Removing the (0) on the WooCommerce Reviews Tab
I’ve succeeding in removing the (0) on the Reviews tab heading when there is no reviews. In marketing – it’s probably best practice to not show that a product has 0 reviews. Here is the code that I …