I have renamed payment by Cheque to Pay in store, to have an option for customer to pay by cash in store. However I need it to be hidden when other shipping methods are selected (except pickup at store).
Delivery shouldn’t have the option to pay in store.
I was looking for a plugin to do that but surprisingly there is nothing out there.
I found Local Pickup Plus however in the description wasn’t any info that you can pick certain payments for local pickup.
In woocommerce plugin go to /classes/gateways/ and create a new folder called pis (pay in store).
From cod folder copy the file class-wc-gateway-cod.php to the new created folder pis. Rename the file to class-wc-gateway-pis.php. Now open the renamed file and replace all cod to pis and Cash on delivery to Pay in store.
Save the file and upload the new folder with the file to FTP and your new payment gateway will appear in wp-admin 🙂