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
29
votes
1 answer

Woocommerce - Get SKU in product single page

I want go get the SKU in my product single pages in Woocommerce. I tried which is a featured function according to the Woocommerce docs (http://docs.woothemes.com/wc-apidocs/class-WC_Product.html) but it will just break the loop.…
carl_mace
  • 293
  • 1
  • 3
  • 5
28
votes
4 answers

Check if string contains any letter (Javascript/jquery)

How can i check if a string contains any letter in javascript? Im currently using this to check if string contains any numbers: jQuery(function($){ $('body').on('blur change', '#billing_first_name', function(){ var wrapper =…
haveman
  • 311
  • 1
  • 3
  • 13
28
votes
11 answers

Show Out of stock products at the end in Woocommerce

Is it possible to show out of stock products at the end of a category or page in wordpress? So the customer first see the products that are available and after that the products that are out of stock.
RaGu
  • 723
  • 2
  • 9
  • 29
28
votes
3 answers

WooCommerce: Add input field to every item in cart

I've been trying to add a single text input field to every item in the cart and submit that user input to product's meta info. It's been 2 days and I haven't succeeded yet. My objective is to: Take input from user for every item added to the…
Nix
  • 500
  • 1
  • 4
  • 19
28
votes
2 answers

How to filter WooCommerce products by custom attribute

I'm trying to filter WooCommerce product archive by custom attributes. For example, there are 5 products with attribute "color" containing "red", and another 3 with attribute "color" containing "blue". How can I apply a filter to the products loop,…
user1974752
28
votes
4 answers

Woocommerce location of checkout template

I'm trying to edit the checkout page, but can't find the template. What's the location inside plugin, of the file that has checkout fields?
jOpacic
  • 9,453
  • 12
  • 36
  • 58
27
votes
4 answers

Create an order programmatically with line items in Woocommerce 3+

I needed to create a Woocommerce order programatically, however using the 'old' Woocommerce made this a very dirty procedure. I had to insert all kind of database records manually, using many update_post_meta calls. Looking for a better solution.
Mattijs
  • 3,265
  • 3
  • 38
  • 35
26
votes
4 answers

Sorry, no products matched your selection. Please choose a different combination WooCommerce

I have changed dropdown to radio button using wc-variations-radio-buttons-master The different color is also actually radio button. The current link product have 12 such variation which have product and not other. Some combination I can explain…
Sajid anwar
  • 1,194
  • 14
  • 41
26
votes
1 answer

Add columns to admin orders list in WooCommerce

I am using WooCommerce plugin for one of my ecommerce WordPress websites. I want to add some columns to my order listing page in the WooCommerce admin area. I am not able to find out where to add that. Can anyone advise which template page I need…
Upendra Sharma
  • 575
  • 2
  • 9
  • 28
26
votes
3 answers

Get the product name in Woocommerce

I want to be able to display a product title by using PHP to echo the product name by the product ID (this is to be displayed within a Page, not the product page itself). I am using Wordpress and I have a plugin for PHP so I can include PHP code…
nsilva
  • 5,184
  • 16
  • 66
  • 108
26
votes
3 answers

Get product permalink by product name in Woocommerce

I am trying to get Woocommerce product permalink by given product name. I know I can get permalink by given product ID like this: $url = get_permalink( $product_id ); But I can not find any code to get it by product name. I tried this: $url =…
user3868840
  • 371
  • 1
  • 3
  • 4
26
votes
1 answer

Wordpress. Woocommerce. Action hook BEFORE adding to cart

What i need to do: I want to run some checks on a product before being added to the cart. More exactly: I want to compare the product i am about to add to the cart, with the ones already added, to see if there are some conflicts. An example: Let's…
Sergio
  • 361
  • 1
  • 3
  • 5
26
votes
8 answers

Woocommerce get variation product price

Im trying to display the product variation price inside the variations dropdown. Im trying to change default behavior where price is displayed inside a div when you choose a variation on the dropdown. The problem is i cant find where that div is…
chifliiiii
  • 2,231
  • 3
  • 28
  • 37
25
votes
3 answers

Add a custom order note programmatically in Woocommerce admin order edit pages

In woocommerce I am trying to add a custom order note in the admin order edit pages through php (so programmatically). I haven't find the way yet. Any help will be appreciated.
Max
  • 803
  • 3
  • 10
  • 24
25
votes
1 answer

Get in WooCommerce cart the product ID of a cart item

$cart_item = $woocommerce->cart->get_cart(); I have the above code. if I run print_r on cart_item I get a multi dimensional array: Array( [a6292668b36ef412fa3c4102d1311a62] => Array ( [product_id] => 6803 How do I get the…
Kevin.a
  • 4,094
  • 8
  • 46
  • 82