Category "woocommerce"

Woocommerce how to add account details to billing address automatically

I would be much grateful if you help! I have custom registration fields that are correctly saved in database and are accessible through: $user->['users_tel']

Hide WooCommerce Subscriptions 'cancel' button after 90 days

I am trying to show/hide the 'Cancel' button within the subscription details in 'My Account', based on the subscription start date. However I am finding the int

WooCommerce product images in other plugin

I'm trying to get product thumbnail images into a PDF packing slip template on a WooCommerce site, but as a beginner can't really figure out how to call the pro

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