Category "woocommerce"

WooCommerce checkout: How to set field as required if another one is filled + how to autofill field with data from another field

I am looking for solution for my problems in checkout. First problem is that I need to make field company ID as required if field "Buy as company" is checked. I

WooCommerce - How can I add multiple, products to cart using ajax with same add-to-cart-Button?

I am trying to use ajax to add multiple, different products to cart with one button click. The AddToCart-Button is living in SHOP before pagination. Ajax reques

WordPress plugin extend WC_product with namespace class not found

I am trying to add new woocommerce custom product type from my plugin. I just have a simple construct in the class that extend WC_Product namespace giftbox\mode

Free Search plugin for WooCommerce website [closed]

Can someone advise a free Search plugin for WordPress WooCommerce website , that can display in search results “products” and read

Add custom product option to woocommerce orders list

I am using the "custom product options" plugin and created a datepicker for customers to choose a requested ship date. I need to create a column on my orders ad

Woocommerce - hide an element if logged in, show element if logged out

i've found the following code to make an element change to display:block; if a user is logged in .logged-in .price{ display: none; } and also <?php if ( i

React native Button onPress Linking to wooCommerce product [duplicate]

We have to break the checkout flow in our mobile app and move it outside the app. So currently we have it setup that tapping Cart & Accoun

Skip 1st Woocommerce subscription renewal after order

I'm using a plugin to create a subscription schedule so that the subscription is processed on specific dates. For example, the next subscription is set to execu

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