How to Apply Discounts for Category Z Based on Category X & Y Products and Payment Method in WooCommerce?
The code is implemented to provide a discount based on the combination of categories and payment method conditions. The provided code snippet adds a discount