Questions tagged [woocommerce]

WooCommerce: a WordPress plugin. For how-to-use questions, ask their support team. It's mostly open source. On-topic questions: programming which changes or extends WooCommerce behavior. Questions about 3rd party plugins should be asked directly to the plugin support.

is a commercially supported open source available for .

It allow you to freely sell products from your WordPress site. WooCommerce is enterprise-level quality and is built in , , and .

WooCommerce It is now owned by its parent company Automattic.

Before submitting a question

  • Ensure you have the latest versions of WordPress, your theme and all plugins.
  • Check for theme or plugin conflicts. This includes switching to a default WordPress theme such as Twenty Seventeen and disabling all other plugins.
  • Remember, Stack Overflow is not an official support channel for WooCommerce. That support channel is here.

System Status Report
It may help to have a look at the System Status Report to detect some problems and warnings. This can be found in your WordPress dashboard and going to WooCommerce > System Status.

Useful Links


Related Tags

32907 questions
4
votes
1 answer

Product regular price calculation based on 2 custom fields in Woocommerce 3

In Woocommerce I have set 2 custom fields in the admin in the pricing section under Woocommerce default prices fields: Margin rate and Purchase price. I am trying to figure out how can I auto update the product price (regular price field) based on…
S M
  • 41
  • 4
4
votes
1 answer

Display user meta data values in admin user list custom columns in WordPress

For Woocommerce, with the help of this answer thread, I created some custom columns in Back end (Admin) user list: In the database, there are some meta_key values called billing_vatnr and billing_company coming from the WooCommerce registration…
user10403192
4
votes
1 answer

Catch "applied coupon" event to trigger a JS function in Woocommerce

In Woocommerce, is there any way trigger JS after applied coupon like this? I would like to use it in something like this: $( document.body ).on( 'updated_cart_totals', function(){ //do something }); Any help is appreciated.
4
votes
1 answer

Add person types programmatically on bookable product creation in Woocommerce 3

Basically I'm trying to add a new bookable product in Woocommerce using a custom form I've made, so I have to add the products programmatically. Creating the product is fine, the problem is that I can't figure out how to add a new person type to my…
4
votes
1 answer

For specific country replace city with the chosen state value in Woocommerce checkout

In Woocommerce, I wrote the code for billing_state to use the shipping charge. Now I want to write the value from billing_state to billing_city, when changing billing_state, billing_city also changes This are my custom states code: add_filter(…
Lê Nghĩa
  • 255
  • 4
  • 15
4
votes
1 answer

Disable other product categories for a cart item from specific category in Woocommerce

I'm developing a webshop, with different aspects, the first is a regular shop, and the second is a night beer service. i've searched but can't find what i am looking for; First the night beer service is a specific category that shouldn't be ordered…
RMCS
  • 383
  • 3
  • 17
4
votes
3 answers

Get all attributes with their terms related to a product category in Woocommerce

As we know, to get terms of specific attribute added to a product we can use: $attr_terms = $product->get_attribute( 'attr_slug' ); OR to get all terms of specific attribute regardless of a product we can use $attr_terms = get_terms( 'pa_attr_slug'…
stckvrw
  • 1,689
  • 18
  • 42
4
votes
1 answer

Cart bulk quantity discount for specific products in Woocommerce

In woocommerce I am trying to make a custom cart item quantity discount for a specific product ID only. This is what I am trying to do: If a customer add to cart a specific product, I would like to keep the original price for the first item and…
4
votes
1 answer

Disable editing specific admin custom fields in Woocommerce

I have some custom fields for my Woocommerce products inside my Inventory Tab using woocommerce_wp_text_input() function. I would like to add one more custom text field just for displaying a value for reference. I want to lock the textfield by…
Maria Georgali
  • 629
  • 1
  • 9
  • 22
4
votes
1 answer

Woocommerce API - Create Order With Float Quantity

Unfortunately, in my store all of the product quantities are in float. I used the below code to accept float value as a quantity in my website. // Removes the WooCommerce filter, that is validating the quantity to be an…
4
votes
1 answer

Send billing company with admin notification email

I am trying to attach the billing company to the admin email. I am using this script add_action( 'user_register', array( $this, 'user_register' ) ); function user_register( $user_id ) { // using this function to send the email …
Wushu06
  • 93
  • 2
  • 10
4
votes
1 answer

Custom cart item price set from product hidden input field in Woocommerce 3

In Woocommerce, I used jQuery to calculate a custom price on a single product pages, and now need to pass this value to the cart. The desired behavior is to pass the new price retrieved from the hidden field to the cart item price. Here is my actual…
logos_164
  • 736
  • 1
  • 13
  • 31
4
votes
3 answers

Make checkout country dropdown readonly in Woocommerce

I want country dropdown on woocommerce as readonly. I already set the default country to australia but I want them to be readonly.
pink widow baby
  • 55
  • 2
  • 11
4
votes
1 answer

Get and use the product type in WooCommerce

I'm working on a project and I'm stuck in getting Woocommerce product types as 'simple', 'variable', 'grouped' or 'external'... What I want to achieve: On the Thank you page, where it says "Thank you. Your order has been received.". I want to…
4
votes
2 answers

How to get the grouped product ID from a linked product in woocommerce

I have a grouped product product-1 , which has many linked products: -product-1 (grouped product) |__ product-2 (simple or variable product) |__ product-3 (simple or variable product) I want to get the ID of product-1 using the ID of product-2
Hooman
  • 361
  • 4
  • 11