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

Limit woocommerce orders by IP

I need to prevent selling more than 30 items per day by IP address in woocommerce. Basically, it is protection from bots. I think logic must be something like this: get IP of a customer on a purchase and store it in the order meta check if there…
iBasher
  • 65
  • 8
4
votes
1 answer

Translate checkout fields validation error notices in Woocommerce

How to translate Woocommerce Checkout page validation error messages? I have tried to used function ship_to_different_address_translation( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Billing First name is a…
Bositkhon Sultonov
  • 685
  • 1
  • 9
  • 26
4
votes
1 answer

Set a product category term in a product on Woocommerce

In Woocommerce I have a Product Attribute called "Platform" the Value of the Attribute is "Steam": So I am bulk importing the products and the Attributes are already there. But now I have to set for every product manually the category. Is it…
M6Gpower
  • 155
  • 1
  • 8
4
votes
0 answers

Creating WooCommerce Custom API

I'm looking into creating a WooCommerce endpoint due to the lack of many functionalities in the WooCommerce REST API provided out of the box. Examples are : Payment, Product-Addons, etc But I can't find anything to start with, no documentation on…
A-Android UCG
  • 797
  • 1
  • 7
  • 23
4
votes
1 answer

Display the product image in Woocommerce email notifications

On Woocommerce, I have changed $show_image variable to true in email order details php template file, but I am still unable to get the image displayed in email notifications:
tester
  • 429
  • 5
  • 20
4
votes
4 answers

Set the product type when creating a product programmatically in Woocommerce 3

In Woocommerce, I am trying to find a way similar to the WC_Product methods set_name() or set_status() for example, to set the product type like Simple or Variation. Actually I use the WC_Product object like this : $product = new WC_Product; …
Coupevent
  • 41
  • 1
  • 2
4
votes
1 answer

Display product attributes on specific Woocommerce product category archives page

I want to show two attributes on the category pages, with the attribute name and value only on specific categories. This code that I found displays the labels of the attributes, but is duplicating the value and I am really struggling with a show if…
4
votes
3 answers

WooCommerce change loading spinner icon

IM trying to change the WooCommerce loading spinner icon. It's defined in the woocommerce.css: .woocommerce .blockUI.blockOverlay::before { height: 1em; width: 1em; display: block; position: absolute; top: 50%; left: 50%; …
Mr. Jo
  • 4,946
  • 6
  • 41
  • 100
4
votes
3 answers

Change COD default order status to "On Hold" instead of "Processing" in Woocommerce

I need help with a problem-related to plugin "WooCommerce Pay for Payment" which counting some extra fee in shipping. Problem is, that this plugin sets automatically "processing" status in order which causes thanking email for payment (in case of…
Jiří Prek
  • 83
  • 2
  • 8
4
votes
1 answer

Change or update checkbox values using user inputs

I am currently working on a WordPress project where I have a webstore made up using WooCommerce, and as a practice project I've decided to make refund system for customers to use, where they can send a "Refund request" for the site admins to either…
Puppe
  • 112
  • 3
  • 15
4
votes
5 answers

Remove "Shop" from Woocommerce breadcrumbs

I don't have a main shop page, only product categories. The Woocommerce breadcrumbs always show a "Shop" trail in the breadcrumbs which I need to remove. In the Woo docs I can only fibd info on how to change tthe "home" slug or delimiter, or how to…
Lotus
  • 139
  • 1
  • 2
  • 9
4
votes
2 answers

How to set cart expiration in woocommerce within 15 minutes?

I have a wordpress website that allows non logged-in customers to order with the code below global $woocommerce; $woocommerce->session->set_customer_session_cookie(true); The issue that I am facing right now is that the products left unordered are…
redshot
  • 2,930
  • 3
  • 31
  • 68
4
votes
1 answer

Get custom payment gateway data as settings in Woocommerce 3

I'm making a custom payment gateway. The complex parts are going fine but I've now been stuck on something stupid for hours. I've created custom settings for the gateway without issue, they can be set and saved, but I can't figure out how to recall…
4
votes
1 answer

how to add a section to the WooCommerce settings "Shipping" tab

The filter hook woocommerce_sections_shipping is not working to add a section tab to woocommerce shipping settings: if ( ! class_exists('WC_Shipping_Calculator')){ class WC_Shipping_Calculator{ public function __construct(){ …
vince
  • 162
  • 2
  • 10
4
votes
2 answers

Display a custom message based on customer shipping zone in Woocommerce

In woocommerce, I need to display custom message on cart or checkout page, based on shipping zone, like "you'll be charged 10% more for this zip code". My workaround is about customizing that kind of default message : add_filter(…
Camille S.
  • 61
  • 1
  • 6