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

WooCommerce API for mobile App

i am planning to develop a native mobile Android App for WooCommerce shops. I had a look at their REST API documentation here: http://docs.woocommercev2.apiary.io/ I already started to test it but when i do different calls GET /orders let's say it…
Agli Panci
  • 494
  • 1
  • 9
  • 21
13
votes
4 answers

WooCommerce: Display Category Name

Is there a way to display the product category name on the WooCommerce archive-product.php page. My product category name is "Bracelets", and I'd like that to be displayed as a title on the page. I'm using wp_title() currently:

realph
  • 4,481
  • 13
  • 49
  • 104

13
votes
2 answers

WooCommerce - Move Product Description out Tabs into Summary

I've hunted high and low how to move the Product Description on a Single Product page of Woocommerce out of the tabs and in to the main section. I just can't find it anywhere! If anybody can help me out it would be massively appreciated as i'm…
dhod
  • 461
  • 1
  • 5
  • 11
13
votes
5 answers

Update Woocommerce cart after adding a product (jQuery)

The Ajax seems to work just fine but the cart content won't refresh as expected. I want the contents of the cart to be refreshed once the "add to cart" button is clicked. As it is now, I have to refresh the page manually to see the added products.…
estrar
  • 1,373
  • 4
  • 12
  • 37
12
votes
4 answers

Woocommerce: Detect where Add to Cart button was clicked and run different code

In the ecommerce store: There are items displayed on Homepage and each of the items have an "Add to Cart" button underneath them. When this button is clicked, the item is added to cart. If this button is clicked again, the Quantity of the item that…
Devner
  • 6,825
  • 11
  • 63
  • 104
12
votes
2 answers

Empty cart before add to cart in WooCommerce

I am using WP Job manager with Woo Subscriptions. Now: Initially, I selected a package(Woo Subscription) Then I added all the details. But did not submit it. Came back to the site, so to buy again I need to select a package. So I selected the…
Ram
  • 319
  • 1
  • 2
  • 16
12
votes
3 answers

Set product sale price programmatically in WooCommerce 3

I have a Woocommerce store set up with various product categories. I want to apply a 20% discount to all products, which belong to the product category Cuckoo For now all I'm trying to achieve is set a sale price in my functions.php It tried as…
Marcus Christiansen
  • 3,017
  • 7
  • 49
  • 86
12
votes
1 answer

Woocommerce - Setup another PayPal email address if customer is a certain role

I'm trying to add another PayPal email address into Woocommerce if the customer is within a certain role, in this case a Wholesale Customer. Woocommerce by default only allows you to setup one PayPal account but I have been able to find the…
Shaun
  • 757
  • 1
  • 8
  • 36
12
votes
1 answer

WooCommerce get products by attribute query

I have a product with attribute colors. Attribute values are red, blue and green. I am trying to create a custom search but I can't get the query to pull any product. $args = array( 'post_type' => array('product'), 'post_status' …
user3098629
  • 175
  • 1
  • 1
  • 13
12
votes
1 answer

How to show different sizes on select of particular PRODUCT in Woocommerce

In Woocommerce, Single product page I have used the 2 different sizes, one for top and other for pant. If the user wants to select pant only pant size select box will show and if the user selects the top size only top size will show and if the user…
user6888126
12
votes
7 answers

how to get particular product quantity from the cart page in the woocommerce

With this code: foreach ( WC()->cart->get_cart() as $cart_item ) { $quantity = $cart_item['quantity']; echo $quantity; } I can get the quantity of all the products added in cart but I need it for the particular product.
vivek raj
  • 229
  • 1
  • 3
  • 8
12
votes
2 answers

Accessing Order Items protected data in Woocommerce 3

I am trying to get the line items of an order. I'm doing this: $order = new WC_Order(147); foreach ($order->get_items() as $key => $lineItem) { print_r('
----');
    print_r($lineItem);
    print_r('----
'); } I can see all the data I…
bstras21
  • 981
  • 3
  • 11
  • 32
12
votes
4 answers

Wordpress - How to update user password using REST API

I am using wordpress as well woocommerce for my web store and also using woocommerce REST API for Android app. I have used WP REST API and JWT Authentication for WP-API plugins for user authentication and login through rest api. Now when I am using…
DD77
  • 776
  • 2
  • 8
  • 25
12
votes
1 answer

WooCommerce Subscriptions - Get related orders Ids for a specific subscription

Is there woocommerce function that will return me all related orders (at least the order ID) for the specific subscription that user has bough? I have found in this official documentation Subscription Function & Property Reference:…
Ugis
  • 181
  • 1
  • 1
  • 13
12
votes
3 answers

Using wc_get_product() with a PHP variable for product ID

I'm building out custom landing pages for products in WooCommerce and I'd like to get the product price amongst other things in order to display them on the landing page. Each landing page has some custom fields which allow the WP Admin to add in…