I am using Local pickup shipping option custom percentage discount in Woocommerce answer code to make local pickup discount of 2% on Woocommerce. So people who choose to pickup their order get a discount on their total amount. This code is great, but I would like to hide it on cart page, and to only show up on the checkout page. Now it shows on both pages.
I tried to change $cart
to $checkout
and I deleted rule 15 and 16 but that won't work unfortunately. Does anyone point me on the right direction.