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

WooCommerce how to check if page is_shop() in functions.php?

In WooCommerce, My Category Listing page and product listing page are rendered from archieve-product.php ( By Default) . How to check if page is_shop() in functions.php? As is_shop function does not work in functions.php. I simply want to remove my…
kd patel
  • 607
  • 1
  • 6
  • 15
16
votes
2 answers

How can I remove Shipping from a WooCommerce cart?

I need to remove shipping and shipping calculate from a cart. Is it possible to delete with hooks? The template is: http://flatsome.uxthemes.com/cart/ WooCommerce Cart
Jakub Lang
  • 181
  • 1
  • 1
  • 6
16
votes
2 answers

WooCommerce Create account programmatically / through function

Is there anyway to create a customer programmatically like you can with a WordPress user. Obviously the WooCommerce user shares some of the same WordPress user fields, there there is additional content that would need to be set like Billing / Postal…
Stefan Dunn
  • 5,363
  • 7
  • 48
  • 84
16
votes
1 answer

How to disable default shipping and payment options on checkout with WooCommerce?

I am looking for a way to disable the default payment option and shipping option on the "view cart" and/or "checkout" pages on WooCommerce. Everything I have tried did not work. JS is failing since this section is keeping refreshed. and PHP fails…
Shir Gans
  • 1,976
  • 3
  • 23
  • 40
16
votes
1 answer

Woocommerce - add serial to products in orders

I am looking for a way to add a serial number to each sold product, in the order display in WooCommerce. What I need is a manual solution, where the S/N of the sent product is added to the order before the package is sent. I have tried to show it on…
user2806026
  • 787
  • 3
  • 10
  • 24
16
votes
5 answers

Add custom css class to WooCommerce checkout fields

I would like to be able to add a custom CSS class to my WooCommerce checkout fields. I'm using twitter Bootstrap and I would like to be able to use their .form-control class. I looked in the woocommerce templates folder in form-billing.php but I'm…
NateW
  • 2,101
  • 3
  • 28
  • 37
16
votes
3 answers

Remove product in the cart using ajax in woocommerce

I would like to remove the product in the woocommerce cart using ajax without click the link. If you have encounter this kind of functionality, please help us. add_action( 'wp_footer', 'add_js_to_wp_wcommerce'); function add_js_to_wp_wcommerce(){…
user3331550
  • 161
  • 1
  • 1
  • 4
16
votes
3 answers

Making custom WooCommerce loop

I'm using already designed theme for wordpress, and now instead of regular blog posts I would like to display WooCommerce products (which are custom post types I persume). This is the current query with display loop:
jOpacic
  • 9,453
  • 12
  • 36
  • 58
16
votes
7 answers

WooCommerce: Create product by code

My store sells vinyl stickers. Each product (sticker) has a 144 variations (24 colors, 3 sizes and 2 orientation). Each variation is necessary to assign a unique SKU. Manually populate catalog is unrealistic. I am going to make a form in which the…
Beer Brother
  • 514
  • 2
  • 6
  • 15
15
votes
1 answer

Get product custom field values as variables in WooCommerce

I am using Woocommerce for registration for classes; each class/product has up to 20 custom fields, which I need to return as variables in order to highly customize the checkout and order details pages and customer email template. I don't just want…
GunStreetGirl
  • 183
  • 1
  • 1
  • 5
15
votes
3 answers

Replace the Variable Price range by the chosen variation price in WooCommerce 3

On WooCommerce, I would like to change the Variable single product page layout. Because when you have an variable product you get this wired price rage (below product title) in the Variable Product page and it shows in the shop page as well. For me,…
15
votes
7 answers

How to disable/hide woocommerce single product page?

I am trying to hide the single product detail page on my wordpress-woocommerce site. How can i achieve this without breaking woocommerce functionality?
wonder
  • 159
  • 1
  • 1
  • 4
15
votes
3 answers

How to display woocommerce sale price or regular price if there is no sale price

I'm using a woocommerce product addons plugin where I would like to display the price of a product in my dropdown section of the addons. Currently the code I have is this
JPWeb
  • 195
  • 1
  • 1
  • 10
15
votes
6 answers

Detect dashboard of WooCommerce "my account" pages

How can I detect if the "myaccount/my-account.php" template is used on the Dashboard. Currently I use: query_vars['page']) ) { ?> Back to my Account
15
votes
4 answers

Woocommerce: Programmatically Updating Order Status

When I try to programmatically update an order during a WP_Ajax hook. IE. $order = wc_create_order($order_data); $order->add_product( get_product( $membership_product_ids[0] ), 1 ); $order->set_address( $address, 'billing' ); $order->set_address(…
Nicholas Koskowski
  • 793
  • 1
  • 4
  • 23