Category "woocommerce"

Restrict use of coupon if customer have used related coupons in previous orders in WooCommerce

I am looking for a way, to limit coupon usage and to display an error message if a customer have used related coupons in previous orders before in WooCommerce.

How can I style the "Backordered: " - text in WP-admin - > Order Edit?

I need to style the TR element where Woocommerce prints the "Backordered" text in wp-admin, Order edit page, preferably for both the order edit, and for the "or

WooCommerce php 8.1 + WordPress 5.7.2

I have an issue with using new PHP 8.1 on WordPress 5.7.2. Everything work just fine, until turn on WooCommerce 5.3.0. Then whole site fall down. Here is error

Disable auto-complete fields (auto-fill) on Woocommerce checkout except for some fields

I use below code to disable Autocomplete Fields in the woocommerce checkout page: add_filter('woocommerce_checkout_get_value','__return_empty_string',10); Abov

Woocommerce subscriptions: Assign different subscrption_id to each item in cart

I am using Woocommerce with the Woocommerce Subscriptions plugin and I am trying to assign different subscription_id to each item in the cart. So far I have man

How to get WooComrnce product category by meta key value

I have product categories with the meta value "old_id", I'm trying to make a function that will return the new product category id using the old id (with meta k

Display In stock available variations in WooCommerce single product

I have variable products with many variations where only a few items are actually In Stock while the majority of other variations are ''available on backorder''

Add an OpenGraph tag in WooCommerce single product pages

I have to add Product SKU to Woocommerce metatags product page (Facebook OpenGraph). I've tried to add global $product; echo "<meta property='og:id' content=

Add a minimum order price in WooCommerce, but still allow the customer to checkout when the condition is not met by charging the deficit

I would like to add a minimum order price for WooCommerce. I have found instructions on how to restrict ordering, unless the user adds more products to cart so

Coupon daily time range in WooCommerce

I'm tying to enable the use of coupons to a range of hours in Woocommerce without success. Based on Discount on specific products based on a daily time range in

Stylize woocommerce price decimals

I want to stylize the decimals in the price tag and want to delete zero decimals (before 190,00) and it should be (after 190,-) And the decimals after the "," i

Speed up woocomerce order admin search

I am using the following function to speed up woocommerce order admin search by searching in particular fields only: function custom_woocommerce_shop_order_sear

Speed up woocomerce order admin search

I am using the following function to speed up woocommerce order admin search by searching in particular fields only: function custom_woocommerce_shop_order_sear

How to change the 'stock management' availability text on single product page based on different conditions in WooCommerce

I'm trying to change the stock management availability text on single product page based on different conditions in WooCommerce. There are 5 situations, dependi

Woocommerce Reports 'get_order_report_data' not working

I am getting null response on the below query. I am trying to get sum of the products subtotal and a custom cost field for products. I am able to get the data f

How to pass "$email" to WooCommerce emails template files if not available by default

I've checked many threads on the platform. But there is no thread which explains how to use the conditional $email>id parameter straight into a template. Thi

Hide specific WooCommerce products based on product category for users under the age of 18

I want to hide specific products, based on product category for users under the age of 18. So if the user is not logged in, or if logged in but under the age of

Hide specific WooCommerce products based on product category for users under the age of 18

I want to hide specific products, based on product category for users under the age of 18. So if the user is not logged in, or if logged in but under the age of

WooCommerce - Empty the current cart on add-to-cart event

So I'm selling a digital product with WooCommerce but I don't have a shop page or anything, I just have a big CTA button on my landing page which adds the given

How to Subscription details from the wcs_get_subscriptions_for_order() function

I have this variable: $subscriptions = wcs_get_subscriptions_for_order($order_id, array('order_type' => 'parent')); Using this print_r() I can see lots of d