Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › How to use direct transfer?
- November 15, 2019 at 1:06 pm #92423
For now, I want my vendors to be able to sell only through the manual method of direct bank transfer. In order to do that, I activated “Direct Bank Transfer” in woocomerce payment settings, and setting “Bank Transfer” as the only Withdraw Payment Method in WCFM Multivendor Marketplace. That way, all vendors are forced to choose direct transfer as their favourite payment method.
My problem is that when a costumer wants to checkout, they never receive the bank information of the vendor.
Am I missing some step?
Note: The fields ‘bank_addr’, ‘routing_number’,’iban’,’swift’,’ifsc’ are left empty when a vendor is created.
- November 16, 2019 at 3:52 am #92518
By the way, in the woocomerce checkout settings (in [base_url]/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=bacs), I haven’t set any account details, and the list is empty, but it would be weird if I had to manually copy them if those details are already defined by each vendor in WCFM Multivendor Marketplace. Am I missing any step?
- November 23, 2019 at 12:14 am #93483
Ok, after days struggling with this, I managed to hack my way out of this problem. This is what I had to add to the functions.php of my child theme:
As you can see, this hack assumes that all items in the order are from the same vendor, this is because we use the plugin “Disable cart page for WooCommerce”, that’s why I didn’t bother to make the function to search all vendors inside the order, but that shouldn’t be hard to implement. Also, to make this work, I had to set up a dummy bank account in Woocommerce configuration, inside the Bank Transfer payment option. That’s the account that it’s dropped by array_shift().
Honestly, I find weird that I had to write this code, I assumed that since vendors already can set up their bank account details, you would have implemented this already. I’m posting this solution to help the community since I doubt I’m the only one with this problem.
Edit note: For some reason I couldn’t paste the code
- November 23, 2019 at 9:36 am #93522
Please use this code snippet for the purpose- https://docs.wclovers.com/tweaks/#vendor-customer-direct-pay-option
Using this vendors will have separate setting tab “customer pay option”, where they will able to set their payment options an those will visible to customer’s order details and order email.
The topic ‘How to use direct transfer?’ is closed to new replies.