NB: Make sure you do a back up of your theme, files and database before attempting the tutorials
Last modified : Oct 01 2022
Estimated reading time : 0 minutes, 42 seconds - 145 words
Share the post "Woocommerce: Offer a 30-day Deferred Payment Options for Customers"
Here we will show you how to hide payment methods when a coupon is used in your WooCommerce cart. For example, you want to give 30 days for your customers to pay as you want then to grab as much as they can from your shop.
The idea behind this function is that we create a special coupon for resellers and when they order online, using the coupon will disable online payment method and triggers the 30 days delay and any other delays you might have configured.
The first thing we need to do is enabling Woocommerce’ payment on delivery payment method. In the description box, we can write “Payment in 30 days”.
And then we add a filter which will enable Payment on delivery if the reseller uses his coupon. All other users/customers will have to choose from the available payment methods.