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
17
votes
4 answers

Woocommerce: Get current product category

How do I get the current product category that the user is browsing through? I am trying to use get_the_terms($post->ID, 'product_cat'); but this is giving me the categories for each product listed on the page. I would like to get the current…
Caio Mar
  • 2,344
  • 5
  • 31
  • 37
17
votes
4 answers

How to insert product in cart through rest api provided by woocommerce?

i am converting a woocommerce store into phonegap app. Now i am stuck. how to add product into cart and display cart into the phonegap app. So how to do it with the help of rest api. Thanks in advance
Sanjay Rathod
  • 1,083
  • 5
  • 18
  • 45
17
votes
3 answers

Woocommerce: custom price based on user input

I did not want to post here but I could not find the answer I was looking for and I do not have enough reputation to comment on other VERY SIMILAR questions to get my exact answer. I found an almost perfect answer from this post: WooCommerce: Add…
Bullyen
  • 808
  • 1
  • 8
  • 20
17
votes
2 answers

WooCommerce- How to remove product & product-category from urls?

I'm using WooCommerce on a WordPress and it adds product & product-category to the URLs. http://dev.unwaveringmedia.com/8dim/product-category/all-party-supplies/ http://dev.unwaveringmedia.com/8dim/product/14-snowman-serving-tray/ I need to remove…
Irfan
  • 4,882
  • 12
  • 52
  • 62
17
votes
5 answers

WooCommerce: Display ONLY on-sale products in Shop

I need to create a products archive page (usually the Shop page in WooCommerce) but displays ONLY the ON SALE products. Basically it should use the same template layout as that in the archive-product.php. There will be a link in the main menu that…
Giraldi
  • 16,451
  • 6
  • 33
  • 52
17
votes
7 answers

woocommerce - How do I get the most top level category of the current product category

I have a Woocommerce product and I need to display on that page the Most top level category of a category assigned to the product - Main Product Category -- Sub Product Category --- Category Assigned to product I need to get the ID or name of "Main…
Gman
  • 783
  • 2
  • 8
  • 24
17
votes
3 answers

WooCommerce: get and set shipping & billing address's postcode

How do I set/get the Postcode(Zip-code) in woocommerce? Is there a function for this? ie., can I set the zip code through any function? I would also like to know, how to populate this field with my data(say 546621) if the user is not logged in?
Nagendra Rao
  • 7,016
  • 5
  • 54
  • 92
17
votes
9 answers

Wordpress (Woocommerce extension) - Create new order programmatically

I want to create a new order programmatically. Workflow is simple: After submitting simple form, user will be created and along with that, a new order. I managed to create a new user and user_id is returned, now I need to assign a new order all in…
Jozko Golonka
  • 323
  • 1
  • 2
  • 11
17
votes
5 answers

Get Woocommerce Category Thumbnails

I have a custom template for a woocommerce category page to only display the categories. I have got the system to get a list of the child categories (by using get_term_children($id, 'product_cat') and get_term_by(...)), but it only returns objects…
topherg
  • 4,203
  • 4
  • 37
  • 72
17
votes
3 answers

Show custom field on order in woocommerce

Im working on a webshop and follwoing this tutorial http://wcdocs.woothemes.com/snippets/tutorial-customising-checkout-fields-using-hooks-and-filters/ to add some customes fields to my billing. // Hook in add_filter( 'woocommerce_checkout_fields' ,…
Jepzen
  • 2,942
  • 6
  • 40
  • 62
16
votes
1 answer

Remove the reset variation button on WooCommerce variable products

On variable products, I would like to remove the reset variation button that appears on my WooCommerce product page when selecting variations (ex. Size, colour), that allows to reset all the choices that have been made. This pop-up, even when not…
16
votes
1 answer

Woocommerce mySQL Query - List All Orders, Users and Purchased Items

I have a fully working mySQL query which pulls all of the orders, users, addresses and items purchased from Woocommerce, however it only lists the products individually, and I would like to add the quantity for each product displayed. Currently…
Miles
  • 173
  • 1
  • 9
16
votes
1 answer

Display the discounted price and percentage on Woocommerce products

On the image below, it shows the discounted price and percentage I found no custom code searching that has this feature. I am using the code below to display the discounted price, but the price is not formatted (the currency symbol and the decimals…
Duc Phuli
  • 219
  • 1
  • 3
  • 13
16
votes
4 answers

Get WooCommerce featured products in a WP_Query

I updated WooCommerce to version 3.0 but I can't show the featured products on my theme, I googled a while and get WC deleted the _feature and add this in taxonomy. But I don't understand so much how my theme get the featured products. Here is the…
Armando García
  • 163
  • 1
  • 1
  • 6
16
votes
8 answers

Get the number of items in cart in wordpress using woocommerce

i'm actually developping a website. But i'm facing an issue. I need to display the number of item that are in the cart but only the number, nothing else i dont want total amount or anything else. Juste the number of items. I aim to display it over…
Nemzytch
  • 171
  • 1
  • 1
  • 7