Category "woocommerce"

Add shortcode to WooCommerce product description

I am trying to auto-add some shortcode at the end of every woo product description. (not after short description). The code with which I am trying is: add_filte

Slow Query in WooCommerce, what to do?

I have written a Plugin that displays the sum of all purchases of all customers of the last year, ordered by the sum (Customer who bought the most is on top). I

Substraction in woocommerce

my problem is as follows. I am currently generating a tax receipt for some orders (not all) in my woocommerce. but the customer would like for 3 of the 4 produc

can we remove filter titles from woocommerce url?

I am trying to remove the titles from the filter URLs, /product-category/t-shirt/color=red/size=medium/neck=round-neck/ to /product-category/t-shirt/red/medium/

WooCommerce pull report with dynamically added fee

I am adding a fee to the users cart based on the cart totals. add_action('woocommerce_cart_calculate_fees', function() { if (is_admin() && !defined(

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