I would like to add a new column to the Attributes table on the Attributes add / edit page within Woocommerce / Wordpress admin, using the Wordpress / PHP add_filter command. As a reference, to add columns in WordPress admin to the Woocommerce All Products add / adit table, the following filter works: add_filter( ‘manage_edit-product_columns’, ‘add_product_column’, 10, 1 ) The
Tag: woocommerce
Get weight value from WooCommerce variations of a variable product
I am working on a plugin that auto adjusts product prices. All of my products are variable products which has made this tougher than I can solve. I have a check to make sure the product is variable. The only product Attribute is ‘Size’. Here I have 4-8 different Size Variations per product. Each of these have a weight value
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
Add incremental number before item name on WooCommerce order emails
I have a WooCommerce store and everything is working well. But I would like to add a number in front of every item name when an order is placed so I can put numbers on the box so the customer knows which box contains what product. (I only have 1 product but the custommer can customize that product with a
Add a new column with author name to WooCommerce admin coupon list
Yesterday we had the situation, that someone ask my “Who created this coupon?”. Unfortunately WooCommerce by default does not display the creator of the coupon in the coupon overview where all coupon are listed. What I try to find out is, how can I add a new column with the author name in the WooCommerce > Marketing > Coupons overview.
Hot to add subcategories under category element in woocommerce flatsome theme WordPress
I’m trying to set up e-commerce website. Ran into a problem with Categories element. I want the element to represent not only categories, but also subcategories below itself. I also cannot edit page …
How to change all my account endpoints urls in WooCommerce
I’m using Woocommerce Version 4.8.0 I have a problem with my account page I want to change all the URLs like the image down below: I have found on stackoverflow the solution for it but the code change only one URL not all of them Any help? Answer All related endpoints slugs can be found on WooCommerce settings > Advanced
Change WooCommerce checkout city field to a dropdown for a unique country
In Woocommerce, I wrote some code for billing and shipping city to use the shipping charge. Now I want to change the cities list when change country. This is my custom code: But when the user change the country from Saudi Arabia to Qatar, the billing_city does not change to text type, so we must refresh the page to show
Make order notes field required for variations with specific product attribute term in WooCommerce
I have few variable products with variation that have pa_size and pa_color attributes (taxonomy). I have 4 sizes (“s”, “m”, “l” and “special”) and 4 colors. My problem is, for the “special” size: Customer must fill order notes in checkout page, but since it is not a required field, they easily miss it. I found some code for product categories
core file deleted in woocommerce / wordpress
I have noticed that the file “wp-admin/includes/ajax-actions.php” is deleted automatically in production. Even if I upload this file via ftp, it gets deleted after some time ( ~5min ). I …