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

Add a product note field in single product pages in Woocommerce

I want create custom order note in single product detail page for user. This one can do using php without plugin. I have attached screenshot and site URL for reference. The have tried with this code in function.php its working on checkout page not…
Saravana
  • 3,389
  • 4
  • 21
  • 37
4
votes
1 answer

Add a custom product calculated price to Woocommerce cart

In woocommerce I have added an extra text field before add to cart button to add custom charge on product purchase. This plugin will add extra text field to single product page and calculates total plus the extra charge. My problem is that I cant…
DHL17
  • 123
  • 2
  • 10
4
votes
2 answers

woocommerce category depth as condition with if statement

Im not sure the best way to proceed here. I have categories laid out like this (a simplified version): -fruit --apple ---large ---small --banana ---var1 ----large ----small ---var2 ----small ----large I want to use the depth of a category as the…
blackhill24
  • 422
  • 14
  • 30
4
votes
4 answers

Assign the user ID to an order created programmatically in Woocommerce 3

I’m using Woocommerce to manage my products on Wordpress, but the user pay through a 3rd party service. I’m trying to create new order manually, and assign it to the current user.The order is indeed created and logged but the following code only log…
TheProphet
  • 89
  • 1
  • 9
4
votes
3 answers

Editing the woocommerce checkout page "order notes"

I want to change the woocommerce checkout page's 'order notes' text field to 'special notes'. But I couldn't find the exact location of this file. Where I can find this file in my localhost folder? Here is the screenshot of the page:
user9762426
4
votes
1 answer

Disable Place Order button conditionally in Woocommerce

I have some code in a function that displays a message to the end user when the total added value of a custom field exceeds a certain value. Basically its a message telling the customer that they have ordered too much furniture to fit into a 68m3…
James Donald
  • 303
  • 4
  • 14
4
votes
1 answer

Multi Select fields in Woocommerce backend

I am trying to create 4 multi-select options at Woocommerce product variations. For example: I am selling trees and want to display the season the tree is available. So we have 4 seasons (spring, summer, autumn, winter), Some trees are available in…
Justus
  • 123
  • 2
  • 10
4
votes
3 answers

Make checkout addresses fields not required in WooCommerce

In Woocommerce I am trying to make checkout adresses fields not required with the code below… But I've got this error "Please enter an address to continue", when submitting checkout form. My code to set adresses checkout fields not…
Artem Kopytko
  • 128
  • 1
  • 1
  • 7
4
votes
2 answers

template_include stop working on woocommerce update

The following code is to override the Product Details page template, It was working since the last update on WooCommerce. Can anyone help me out on this, thanks in advance. add_filter('template_include', 'wpautomate_plugin_templates'); …
Tristup
  • 3,603
  • 1
  • 14
  • 26
4
votes
1 answer

Display custom checkout field value in Woocommerce admin order edit pages

I have the function in functions.php: // Hook in add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); // Our hooked in function - $fields is passed via the filter! function custom_override_checkout_fields( $fields ) { …
Daniel Kozina
  • 69
  • 2
  • 7
4
votes
2 answers

Change product variation prices via a hook in WooCommerce 3.3

I´m using hooks for customizing variable product prices. However, this answer does not seem to be working for Woocommerce 3.3.5. I use following (from the previous post) on my functions.php file: add_filter('woocommerce_variation_prices_price',…
Daisy
  • 43
  • 1
  • 1
  • 4
4
votes
1 answer

Display orders with a custom status for "all" in Woocommerce admin orders list

I have created few custom order status using this code register_post_status( 'wc-arrival-shipment', array( 'label' => 'Shipped but not paid', 'public' => false, …
4
votes
0 answers

Custom add to cart url adding product twice to the cart in Woocommerce 3.3.1

I have created a step by step variable product selection in WooCommerce 3.3.1 and I have a custom add to cart url, made this way:…
4
votes
1 answer

woocommerce_get_shop_coupon_data being called 3 times

I am writing a plugin for Woocommerce to do an api call to a coupon provider and I'm hooking into woocommerce_get_shop_coupon_data with: add_filter( 'woocommerce_get_shop_coupon_data', 'wigroup_coupon_injecion', 1, 3 ); All is working as expected,…
BG Smit
  • 63
  • 6
4
votes
1 answer

Display specific product attributes on Woocommerce archives pages

I want to display some specific product attributes of my choice on the store shop page for each product. It is necessary to display the name of the attribute and opposite its value. I started writing code, I wanted to print at least names, but I…
Aleks Pvn
  • 151
  • 1
  • 2
  • 12