Category "woocommerce"

Display a product custom field only in WooCommerce Admin single orders

This question follows How to show a product custom field (custom SKU) in WooCommerce orders answer to my previous question. How do I make a product custom field

How to debug in WooCommerce 3+

I am creating a custom shipping method for Woocommerce using this tutorial https://docs.woocommerce.com/document/shipping-method-api/ but I am having issues deb

Add customer email and phone in "Order" column to admin orders list on Woocommerce

I am trying to find a way on how to add the customer phone and email below the name on the WooCommerce order view. See picture for reference where I need to ad

Display a order failed custom notice after redirecting back to checkout page in Wordpress plugin

I want to display a cancelled order custom notice as a strip on top of checkout page (like we generally see the order success message from Wordpress). I need to

How to hide products with stock less than 2 on WooCommerce shop page

I own an e-Commerce business and i want to hide the products that have a stock of less than 3. This is what i came up to: add_action( 'woocommerce_product_que

Insert a DIV after the 6th product only once in WooCommerce category archives

I would like to show some content after the fifth product of a product category. Based on Add content in between product rows in WooCommerce archives answers co

Get the product with highest price in Woocommerce

I need to retrieve the product with highest price in whole database. I've tried this but doesn't work. $args = [ 'limit' => '1', 'orderby'

Change the alert text on add to cart action without selected variation in Woocommerce

in Wordpress I'm using Woocommerce v3.3.5 and in single product pages for variable products, When I click the add to cart button while I don't select a variatio

Cannot retrieve order_id from database with SQL query

We are trying to update WC orders based on an external script. However, the script is unable to acquire the order_id for some reason. I tried to run the SQL que

Get WooCommerce product variation attribute terms in admin products general box

I display the id and sku of each variable product in the general tab - of the wp admin product data box with the following code. Any idea how to get the the var

Display Brand Name Above Product Title in Woocommerce Cart, Checkout Page, Orders and Email Notification

Using the functions below I've applied a custom field to products added in Woocommerce cart and checkout page also to orders and notification email. My questi

Set quantity minimum, maximum and step at product level in Woocommerce

I'm using "set minimum and maximum allowable product quantities to be added in WooCommerce Cart" to require a minimum and maximum quantity order. Now, i need to

Get Woocommerce CoCart API response(add, update, delete) after promotion applied

I would like to get the responses of each route (add to cart, update cart and delete cart) already applied to the promotion. What I face now is it only response

Is there a way to direct logging to file instead to stdout?

How could I redirect any logging to files to stdout/err/.. ? (to be specific I have rsyslog going) Basically, I would like what WC_Log_Handler_File produces to

Show product count in archive page Title in WooCommerce

How to show in the archive page TITLE, the number of products, in WooCommerce? Thanks!

Show product count in archive page Title in WooCommerce

How to show in the archive page TITLE, the number of products, in WooCommerce? Thanks!

Decimal quantity step for specific product categories in WooCommerce

I would like to adjust quantity step for specific product categories to allow decimal numbers (0.5 steps specifically). A bit like in Set quantity minimum, maxi

Add rows to Single product Additional information table in WooCommerce 3.6

I am trying to add a row to Single product Additional information table. Actually is there any hooks or filter to do this? I have searched the hook but can'

Woocommerce show more variables in admin area

In Woocommerce within the product edit screen, under variables, I currently have products which have up to 52 options, this is displayed over 4 pages, however I

woocommerce_wp_select options array from product attribute terms

I am trying to create a drop down list box in woocommerce but have it populated with data from the database. I have the majority of the code working but the po