Hide specific variation attributes displayed in WooCommerce cart items

I want to hide specific variations from the cart page in Woocommerce, I was able to hide all the variation names but I want to keep 3 that need to be shown. The following code shows all the variations …

Hide coupon discount raw if no coupon has been applied on WooCommerce cart page

I add coupons and discounts total savings to my cart page. My code works fine but I have an additional question. This is the code I am currently using: add_action( ‘…

Apply a welcome discount to non “on sale” items in WooCommerce

I use this code to set up a “welcome” discount for a registered user: add_action( ‘woocommerce_cart_calculate_fees’, ‘personal_discount_based’, 20, 1 ); function personal_discount_based( $…

WooCommerce cart subtotal: Display ‘free’ instead of ‘0,00’

i am searching for a solution to display ‘free’ instead of €0,00 in the WooCommerce Cart/Checkout. I know, there is a snippet for the Single Produkt itself, but is there a possibillity to change the …

Count only top level WooCommerce product categories form custom shipping calculations

I am using Increase Shipping cost per categories count found in WooCommerce cart answer code from my previous question. How to exclude subcategories from the array of product categories Ids, to keep …

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 custom taxonomy called &…

Php cart session is not update the attributes, only the quantity

Im trying to update cart attributes but i don’t know why is not working, the quantity is updateing just fine but the nested attributes wont. I don’t figure’it out how to make this to work properly …

Enable user local time in Woocommerce Cart and Checkout date time display

For a bookings website I have activated ‘Timezones’. The visitor’s local time should be displayed. In the booking form everything is working fine. The cart data ($start_time, $end_time) is not being …

Disable item name link for specific product in Woocommerce cart checkout and orders

I’m looking to disable the product link to the product page of a specific product in the cart. This product is a gift product automatically added to the cart when the cart subtotal amount equals a …

Change “You cannot add another (product) to your cart” notice in Woocommerce

I can’t find a way to change the Woocommerce default message when you try to add another product to your cart marked as sold individually. I found out that this is how you edit the default success …