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
22
votes
6 answers

Woocommerce: Auto-redirect to cart after adding product from category

http://www.passgotutoring.com/shop/product-category/ucla/ucla-14a/ I am trying to get a auto redirect towards WP_Cart to happen as soon as a client "adds to cart" one of our classes that are located on the left. Most of my clients buy a product,…
user1810236
  • 221
  • 1
  • 2
  • 4
21
votes
2 answers

Woocommerce Remove Coupon Section from Checkout Page

I am trying to remove the "Have a coupon" section that sits at the top of a Woocommerce checkout page (/checkout). I would like to keep the coupon section on the Cart page, so I can't completely disable coupons, but would like it removed on the…
Wes Asbell
  • 273
  • 1
  • 4
  • 8
21
votes
2 answers

Change cart item prices in Woocommerce 3

I am trying to change product price in cart using the following function: add_action( 'woocommerce_before_shipping_calculator', 'add_custom_price' ); function add_custom_price( $cart_object ) { foreach (…
Archana
  • 337
  • 2
  • 4
  • 12
21
votes
3 answers

Order properties should not be accessed directly - WooCommerce 3.0

I've just upgraded my local WooCommerce website to 3.0. Everything works perfectly as normal, but I've noticed with debugging turned on that I'm getting hundreds of the following notices: [05-Apr-2017 12:25:00 UTC] PHP Notice: id was called…
Liam McArthur
  • 1,033
  • 3
  • 18
  • 42
21
votes
1 answer

WooCommerce Retina Image Support - Not included in srcset

I've recently installed WP Retina 2x, and it generates the @2x images on my server. However, when using the PictureFill or WordPress Responsive methods, the srcset does not include any @2x images or 2x declarations: I should also mention that my…
Avishai
  • 4,512
  • 4
  • 41
  • 67
21
votes
3 answers

Run jQuery after WooCommerce AJAX cart update

WooCommerce: I have some jQuery that loads on document.ready that effects the quantity input box. Works great. My issue is that when I update the cart/delete item, the jQuery needs to run again because the AJAX call kills it (refreshes it). Is…
Mando
  • 387
  • 1
  • 5
  • 15
21
votes
10 answers

Woocommerce - How To Link to Product Variation?

I am trying to find a way to have a link to a specific product variation. I thought I had it solved with this plugin... https://wordpress.org/plugins/woocommerce-direct-variation-link/ However the I have 2 word product attribute names and can't seem…
MrMo
  • 321
  • 1
  • 2
  • 5
21
votes
3 answers

Woocommerce Get product tags in array

I want to get the product tags of the woocommerce products in an array, for doing if/else logic with it (in_array), but my code doesn't work: When…
Gas
  • 727
  • 2
  • 12
  • 32
20
votes
2 answers

Get coupon data from WooCommerce orders

I have created in WooCommerce two custom coupon types: function custom_discount_type( $discount_types ) { $discount_types['cash_back_fixed'] =__( 'Cash Back fixed discount', 'woocommerce' ); $discount_types['cash_back_percentage'] =__(…
Gaurav
  • 201
  • 1
  • 2
  • 9
20
votes
6 answers

where does woocommerce store orders?

I'm looking in the sql db and I can see something that resembles orders inside wp_posts . However, I would expect them to be inside the tables beginning with wp_woocommerce. Can anyone shed some light on this phenomenon? Cheers
Ke.
  • 2,484
  • 8
  • 40
  • 78
20
votes
2 answers

How can i access current woocommerce order shipping method id?

I have found method $order->get_shipping_method() to access the name, but i want to retrieve the id instead of name?
belfort1
  • 887
  • 2
  • 8
  • 14
20
votes
12 answers

Woocommerce - Product Page - How to create AJAX on "Add To Cart" button?

I want to make an "Add To Cart" button on a product page that would work with AJAX. How can I do it? When I add to cart on a product page - it refreshes the page, how can I make it work by AJAX? The "Add to cart" button on "Quick View" on archive…
Tom
  • 305
  • 1
  • 3
  • 6
20
votes
5 answers

Strict Standards: Declaration of ' ' should be compatible with ' '

I just installed woocommerce 2.0 (on Wordpress) on PHP 5.4, and I got this: Strict Standards: Declaration of WC_Gateway_BACS::process_payment() should be compatible with WC_Payment_Gateway::process_payment() in …
egig
  • 4,370
  • 5
  • 29
  • 50
20
votes
7 answers

Changes on archive-product.php doesn't work

I'm trying to customize the standard woocommerce theme and so far that has worked well. I copied all template files from /plugins/woocommerce/templates to /mytheme/woocommerce and customized the files. But when i'm change something in…
Slevin
  • 4,268
  • 12
  • 40
  • 90
19
votes
2 answers

Get the metadata of an order item in woocommerce 3

how to get metadata of a product woocommerce? I have field custom en my products and I need to get this data. {"ID":151, "ORDER_ID":251, "NAME":"car", "PRODUCT_ID":87, "VARIATION_ID":0, "QUANTITY":1, "TAX_CLASS":"", "SUBTOTAL":"3", …
Manu
  • 319
  • 1
  • 2
  • 10