Category "woocommerce"

Increase the Product Image Size in the Catalog Page

I know, this is a simple fix (it has to be), but I have been searching for two days and haven't been able to accomplish this. The products in the catalog page o

Minimum order amount except for specific shipping method in WooCommerce

In WooCommerce, I use the following code to set a minimum order amount: add_action( 'woocommerce_checkout_process', 'wc_minimum_order_amount' ); add_action( 'wo

Limit WooCommerce products in cart only from one custom taxonomy

I'm trying to restrict customers on my Woocommerce store to only be allowed to order products from 1 "supplier" at a time. I am defining the "Supplier" by a cus

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

I am looking to overwrite this message via functions.php through a child's theme. I have seen some examples through here and here. I would prefer using a filte

How to hide products with price higher than 1 on WooCommerce shop and archives pages

I'm using this code to hide products on the Shop Page where the product price is higher than 1. However, without the desired result. Where does it go wrong? M

Multiple order by in WooCommerce

I want to order my products in category page by average rating (DESC) and then by price (ASC). | id | avgrating | price | | 1 | 4 | 10

Woocommerce checkout form after filling gives error "Fill in the required fields"

I have worked on a website that was built many years ago by a developer who is not updating it. recently I have added Woocommerce. but there is a problem. after

Woocommerce product attributes with hierarchy like categories

Faced the task of making a filter based on the attributes of the product. I need to make a hierarchy of attributes like the product categories. Can this be real

Add free product when a certain coupon is applied in WooCommerce

I can add a product to cart, when a certain coupon is used via the woocommerce_applied_coupon hook and the add_to_cart() function add_action('woocommerce_applie

Show/Hide Checkout Fields according to answer to previous question

I use a multi-step checkout plugin. I ask customers if they have allergies, using checkboxes. The first checkbox is none followed by chicken, beef etc. I wish

How to auto draft WooCommerce product on specific date?

I have a custom date field, added with ACF, for each of my products at which point the product status should change to draft. I know there are a bunch of schedu

WooCommerce "Error processing checkout. Please try again". How do I get more details?

I am writing (actually modifying an existing one) gift card plugin. During checkout, the gift cards are created on a different system through a Web JSON API.

Adding multiple items to WooCommerce cart at once

I have 3 IDs of the different items that I want to add to my shopping cart. I could use https://url.com/shop/cart/?add-to-cart=3001 but when I want to add 3 ite

Private Notes In Woocommerce Order List

We add our own production numbers in private notes and it would be really handy if we could show these private notes on the order list under a new column, searc

Add custom CSS class to "add to cart" button on WooCommerce shop and archives pages based on certain condition

I am trying to disable "add to cart" button on WooCommerce shop and archives pages if product's quantity stock is zero or less. I don't want to hide it so I cam

Show Custom Data in Woocommerce Order Details Admin Area

When a User Buys a Product he can generate up to 3 Serial Keys for his Product. This works fine so far. The User can see his Serials always in "my account" The

Get Products by Category id

i am writing a pricing table plugin for woocommerce. the user inserts the shortcode with an id of woocommerce products category and after updating the page the

woocommerce change position of price

I get this error when trying to render the product price before the main content on the page. Fatal error: Uncaught Error: Call to a member function get_price_

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

I want add a custom Button "View Demo" next to "Add to Cart" button of WooCommerce based on Product Type, both on main shop page and single product page. I've

Modify WooCommerce REST API product image upload

I have to create and update products via WooCommerce REST API, without image uploads to media library (only the image source is need to be stored, because they