Discount cart item price excluding a category and its children in WooCommerce

The fact is that the customer asks for a 50% discount for “Local Pickup” – I have already done this (I found a code here on StackOverFlow that applies a discount on all goods), but there is …

Display the WooCommerce product price (with discount) in a custom template

I need to display a product in a specific template. Here is the template code:

Change product variation prices via a hook in WooCommerce 3.3

I´m using hooks for customizing variable product prices. However, this answer does not seem to be working for Woocommerce 3.3.5. I use following (from the previous post) on my functions.php file: …