Pay In Store available only for In-Store Pickup

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 anos atrás
Hello every one,
I have two problems that I need to solve.
1. Like the tittle topic, I want to config plugin Pay In Store available only for In-Store Pickup.
2. In my shop, I have many items out of stock, but I want customers to order items that are out of stock.
How can I do that?
Thanks you
4 anos atrás
1. Create a new payment method. You can copy Cash on delivery payment plugin and change file/class names and namespaces. In payment processor class, you will find HidePaymentMethod method. Return true if Pick-up in store is not selected.

2. Go to product edit page, expand Inventory tab and then set Inventory method as Don't track inventory.
4 anos atrás
mhsjaber wrote:
1. Create a new payment method. You can copy Cash on delivery payment plugin and change file/class names and namespaces. In payment processor class, you will find HidePaymentMethod method. Return true if Pick-up in store is not selected.

I thinks just custom COD plugin, but I dont know how to code if customer selected Pick-up in store, then Payment method will hide. Can you help me, I am newbie in Nop
Thanks you
3 anos atrás
You got to have that here in HidePaymentMethod:

https://ibb.co/68p47Zm


And those services in the constructor:

https://ibb.co/M7kFCVf
3 anos atrás
Never mind the above, use these:

3 anos atrás
Or, use Payment Director ;)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.