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

How to create multiple simple-products with same SKU in WooCommerce?

I want to create multiple simple-product with same SKU in WooCommerce. I search in admin settings but there I cannot find any settings to enable this features. Is there any hook so I can disable this features.
dineshkashera
  • 1,442
  • 1
  • 15
  • 26
12
votes
4 answers

WooCommerce: Check if items are already in cart

I found this great snippet from this website The following is the function to check if a specific product exists in cart: function woo_in_cart($product_id) { global $woocommerce; …
mysticalghoul
  • 632
  • 2
  • 10
  • 23
12
votes
3 answers

WooCommerce: Check if coupon is valid

I am trying to check if a coupon is still valid (hasn't reached its usage limit) and display content under this condition. The reason for this is that I want to be able to hand out a coupon code to particular visitors, but obviously don't want to…
NuclearApe
  • 573
  • 2
  • 6
  • 16
12
votes
4 answers

Woocommerce get image galleries by product id

How to show images from the product gallery programmatically? I see the option to show featured images; but not to show all images for a product id. Is it possible to do this? I try this but couldn't get the images from the product gallery by id…
Sergio R Sergi
  • 163
  • 1
  • 1
  • 7
12
votes
4 answers

Display Woocommerce product price with and without tax and tax amount

I am using WooCommerce for WordPress and I'm listing items excluding Tax. I need to show separately the Price (without tax), the Tax and the PRICE + Tax on the product page (like in checkout page). I have not been able to find a plugin that does…
Nuri Akman
  • 792
  • 3
  • 18
  • 41
12
votes
5 answers

$_FILES empty at checkout

I have added a bunch of new fields to my checkout form in woocommerce. it reads in the finished php file as such;
Captain Dando
  • 497
  • 2
  • 11
  • 30
12
votes
7 answers

WooCommerce Webhook: invalid URL

I am setting up WooCommerce to trigger a webhook upon order creation. I have set the webhook's URL as the url of a local web API we have setup for this purpose: http://localhost:3000/store/orders/new WooCommerce does trigger the webhook with the…
Luis Delgado
  • 3,644
  • 4
  • 34
  • 54
12
votes
3 answers

Endpoint for user login/signup in Woocommerce Rest API v2

I have searched completely in Woocommerce REST API documentation for the endpoint of user login/signup but unable to find it. Can anyone provide me the link to the endpoint and its documentation?
user1534536
  • 629
  • 2
  • 7
  • 12
12
votes
2 answers

Create new product attribute programmatically in Woocommerce

How can I create attributes for WooCommerce from a plugin? I find only : wp_set_object_terms( $object_id, $terms, $taxonomy, $append); From this stack-question But this approach required id of some product. I need to generate some attributes not…
WebArtisan
  • 3,996
  • 10
  • 42
  • 62
12
votes
4 answers

How to add filter or hook for "woocommerce_add_to_cart"

I want add to cart two product at the same time, one is original (current) product and second is from drop-down list add_action('woocommerce_add_to_cart', 'custome_add_to_cart'); $cnt=2 function custome_add_to_cart() { global $woocommerce; …
luckyamit
  • 719
  • 2
  • 7
  • 19
12
votes
2 answers

Display Customer order comments (customer note) in Woocommerce

I have a little problem when I try to display woocommerce customer order comments (not the notes, but the comments that a customer can add during the checkout process). (I'm going to add just the relative lines for this problem, as other woocommerce…
Nick
  • 13,493
  • 8
  • 51
  • 98
12
votes
6 answers

Woocommerce, How to edit the "added to cart" message

When click on add to cart button, the Woocommerce shows the message, view cart, I want to edit this message, actually edit all the span, put some icon etc...
Dante
  • 121
  • 1
  • 1
  • 3
12
votes
4 answers

Create custom 'Add to cart' with wordpress woocommerce

I fetch a specific product in a page that is outside of woocommerce template and I need to add the 'Add to cart' button. I looked at the code and I saw woocommerce doing it this way,
greW
  • 1,248
  • 3
  • 24
  • 49
12
votes
1 answer

Setting Woocommerce Product Tags and Categories via Custom Frontend Form

I am building a form for users to create a product via the frontend of my site using wp_insert_post and update_post_meta. The problem arises when trying to set the product categories and tags. It seems Woocommerce doesn't use standard Wordpress…
user1199981
  • 398
  • 1
  • 5
  • 12
12
votes
3 answers

WooCommerce - Get the product description by product_id

How can I get the product description or the product object using product ID. $order = new WC_Order($order_id); foreach ($order->get_items() as $item) { $product_description = get_the_product_description($item['product_id']); // is there any…
Vincent Panugaling
  • 896
  • 1
  • 12
  • 28