• I’m using the Woo Payment Discounts plugin which adds 5% discount to a certain payment method.
    I’m also using a function in the functions.php file so that the customer gets 40% off from 10 items.

    add_action( 'woocommerce_cart_calculate_fees', 'cart_items_quantity_discount', 10, 1 );

    I would like to change the order in which discounts are applied.
    First the 40% (from the functions.php file)
    Then the 5% after choosing the payment method.

    I already changed the add_action function call priorities and it didn’t work.

    Does anyone have any tips on how to reverse the call order?

    • This topic was modified 2 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add action fee before a plugin’ is closed to new replies.