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

Replace Add to cart button on Woocommerce Single Product Pages for a product category

I'm trying to add a custom link button that leads to Contact page - within first if condition that displays "Contact us" text with custom URL on the button instead of "Add to Basket" button. How to do that? This is my code so far. It shows custom…
Wed
  • 323
  • 1
  • 9
  • 20
4
votes
1 answer

Conditional custom checkout fields validation issue in Woocommerce

I have a checkbox which if checked opens a drop down field (requirements). If you try and send the Woocommerce order it conditionally checks if the field has content, if it doesn't it returns an error. This all works accept when the requirements…
Evakos
  • 152
  • 2
  • 11
4
votes
2 answers

Edit woocommerce shipping calculator

I have added custom cities to Woocommerce checkout and each city represents a rate. However, I would like to have a dropdown of cities in the shipping calculator as I have done with the checkout page. The city field in the shipping calculator is a…
Peter
  • 53
  • 1
  • 5
4
votes
2 answers

Reduce stock only for specific order statuses and payment method in Woocommerce

I'm working on a bit of custom Woocommerce functionality for a client. They use the BACS payment gateway to handle manual payments. However, the gateway currently reduces the stock too early for our needs, i.e., when the order is "On Hold". I would…
4
votes
1 answer

Set specific Products to be shipped only in specific countries in WooCommerce

How can I set certain products to be shippable to only certain countries in Woocommerce? For example, during checkout, if Country is not USA, I want to show the message "We cannot deliver to your country."
AlexMcowkin
  • 41
  • 1
  • 3
4
votes
1 answer

Overriding template via the theme does not work in Woocommerce

I'm creating a custom Wordpress/woocommerce theme for a client based on FoundationPress. For some reason I can't override taxonomy-product_cat.php. I can override this file with other themes like twenty-nnn or Storefront. I spend half a day finding…
4
votes
2 answers

Set all shipping methods cost to zero for a Free shipping coupon in Woocommerce

I have 3 shipping methods in my cart that should become zero prices as soon as your customer enters Free Shipping coupon. I know how to add a filter in functions.php to detect the coupon but is someone know a snippet to set shipping methods…
user6677795
4
votes
1 answer

Show default page template for product categories in Woocommerce

I'm having a problem with WooCommerce / Wordpress templates. I used to have everything working. I have this code in my functions.php file: add_filter( 'template_include', 'wpse138858_woocommerce_category_archive_template' ); function…
J Low
  • 41
  • 1
  • 2
4
votes
2 answers

Save and display product custom data in emails & orders pages in WooCommerce

I'm using some code to add custom fields to enable my customers to customize their products. Here's my current code: /* Add meta fields to all products */ /* SRC: https://wisdmlabs.com/blog/add-custom-data-woocommerce-order-2/ */ /* Step 1: Adding…
warm__tape
  • 250
  • 4
  • 19
4
votes
1 answer

Show children for subcategory archives in Woocommerce Product Category widget

I'm building a shop with Woocommerce and using WooCommerce Product Category widget. I have set many product categories with subcategories. One of these categories is "Posters" and has several subcategories, like "Star signs", "Travel", "Nature"… By…
user2004478
  • 91
  • 1
  • 7
4
votes
3 answers

Changing the 'Shipping' text in WooCommerce cart and checkout pages:

I'm using WooCommerce with the Storefront theme and I'm trying to alter the word "Shipping" on the basket page with totals. I found some advice here: https://kriesi.at/support/topic/change-shipping-text-to-delivery-on-checkoutcart/ However, they…
user8875600
4
votes
2 answers

Execute a piece of code before woocommerce_add_to_cart

After customer registration, admin will verify his identity and activates that customer. For maintaining customer verify status I'm using IsVerified as 1 in wp_usermeta table. Now, If customer adds product to his cart, I want to check that customer…
Deva AP
  • 43
  • 6
4
votes
1 answer

Woocommerce 2 Variable Product Dropdown List, force first one to always show all options

I have 2 drop down select fields in my variable WooCommerce product. 1st one is Type of Product (in my case framed or unframed artwork) 2nd one is Size of Artwork. Thanks to this code: add_filter(…
user2264325
  • 53
  • 2
  • 7
4
votes
2 answers

Display editable custom fields values in Woocommerce edit order page

I am not a developer but somehow managed to add Woocommerce custom fields to checkout and order edit pages. There are similar questions, but I can't find the correct solution. The custom fields are visible in the admin order edit page but they don't…
Mark Ogner
  • 41
  • 1
  • 6
4
votes
1 answer

How can I post an order into woocommerce using Alamofire?

I am trying to create an order from iOS to woo commerce using Alamofire. I am searching for a proper solution. After trying to create an order I get this error: { code = "woocommerce_rest_cannot_create"; data = { status = 401; …
Faizul Karim
  • 333
  • 2
  • 13