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
11
votes
2 answers

WooCommerce cookies and sessions - Get the current products in cart

I try to learn the cookies of WooCommerce, for do any function operating by products the added to cart. I wrote in console document.cookie And I get this data: woocommerce_items_in_cart=1; woocommerce_cart_hash=500d17f6c010b62b25c3f52893be945d; I…
ABE
  • 734
  • 2
  • 9
  • 21
11
votes
2 answers

Woocommerce product query for stock status

I use 3 statuses of availability: 'in stock', 'out of stock' and 'allow for backorders'. I want export products which is only 'in stock' status to XML. The problem is that woocommerce returns value "instock" for both statuses: 'in stock' and 'allow…
Maria Puchkova
  • 179
  • 1
  • 3
  • 13
11
votes
4 answers

Adding custom post type / post to Woocommerce

I have a personal theme "A" and I want that it can also work without Woocommerce. When Woocommerce "WC" plugin is added I would integrate A products with WC. I have a custom post type called "objects", how can I make "object" buyable throught…
Delayer
  • 409
  • 1
  • 5
  • 17
11
votes
4 answers

How to re-enable introductory onboarding wizard after reinstalling WooCommerce

I uninstalled my WooCommerce plugin and chose to delete all data. When installed it back I cannot see the Introductory Onboarding Wizard. I need it to create my shop and all the pages again. I suspect this is because some traces were left from the…
eYe
  • 1,695
  • 2
  • 29
  • 54
11
votes
2 answers

How to set category to product woocommerce

is it possible to add a category to a woocommerce post? I am creating my products as follows: // creates woocommerce product $product = array( 'post_title' => $name, 'post_content' => '', 'post_status' => 'publish', …
user1213904
  • 1,830
  • 4
  • 23
  • 39
11
votes
3 answers

WooCommerce: How to display fields from the "Product Add-ons" extension?

I'm using the [Product Add-ons][1] extension for WooCommerce, which allows custom fields for products. This automatically displays on the single product template. By some trial and error with the single product template, it appears to hook in…
jwinn
  • 1,135
  • 3
  • 14
  • 30
11
votes
1 answer

can't install woocommerce plugin on LOCALHOST

can someone who has experience with wordpress help me?? I have been trying to install WooCommerce - excelling eCommerce plugin on my wordpress theme, but since I'm working on localhost I think this is causing me some problems. When I try to download…
user3757420
  • 133
  • 1
  • 3
  • 10
11
votes
3 answers

Send email from WooCommerce when order status is changed to a custom order status

I have created a custom order status in my WooCommerce installation, called Quote. /* * Change order status on new orders depending on order contents: * If any product in the order is availble for quote, return 'quote' status. * Otherwise the…
Ella
  • 165
  • 1
  • 1
  • 8
11
votes
4 answers

Wordpress Woocommerce - use update_post_meta to add product attributes

The products in my clients website require certain attributes which I have added via Products -> Attributes in the Wordpress administration. In this import script I'm coding I need to use the function update_post_meta($post_id, $meta_key,…
Daniel
  • 716
  • 3
  • 13
  • 27
11
votes
5 answers

Woocommerce REST API 404 error

Since woocommerce released the 2.1 version with REST API feature, I tried to use it: I activated the API on my woocommerce admin panel but when I try to call the curl: http://www.mydomain.com/wc-api/v1/ the response is a 404 file not found error. I…
user1142705
  • 131
  • 1
  • 1
  • 5
11
votes
1 answer

woocommerce code for cart button

I need to add the woocommerce cart button to one of my pages and was wondering if someone could help with the code required to call the cart button. Here is the current code:
helpanoobout
  • 115
  • 1
  • 1
  • 4
11
votes
2 answers

WooCommerce Delete all products from cart and add current product to cart

I am new to WooCommerce and I need to be able to only add one single product in the cart. I want to clear all products and add the current product to the cart when I click the "Add to cart" button. How can I do that ?
spsaravananct
  • 392
  • 2
  • 4
  • 17
11
votes
3 answers

How to get the stock quantity of an article from woocommerce?

i got a little problem with displaying the stock quantity correctly. heres the loop:
Bill Bronson
  • 530
  • 2
  • 9
  • 24
11
votes
2 answers

Woocommerce - php to get order information

I'm trying to get the data associated with an order on the woocommerce plugin (wordpress). Currently, I have written my own plugin that contains the code:
user2189190
  • 179
  • 2
  • 4
  • 13
11
votes
5 answers

How do categories and subcategories for WooCommerce are saved in DB?

I have a problem with categories and subcategories in WordPress plugin - WooCommerce. I'm creating a script which would create a categories and subcategories, the problem is that I don't fully understand how all this works in WooCommerce DB…
Kazik Jarmolovski
  • 211
  • 1
  • 3
  • 9