Using Magento 2 Marketplace Payment Method Restriction module, the admin can assign the payment methods to products and the sellers.
Sometimes the admin wants to restrict few of the payment methods for some products and sellers. So, instead of completely disabling the payment methods for the store, restrict the payments methods which the admin doesn’t wish to use for particular products and sellers.
The marketplace sellers also can assign the payment methods to their products. During the checkout process, the customer can view the assigned payment methods to place an order.
Note: The extension will not create any new payment method for you.
Features
- The admin can enable or disable the module as per convenience.
- Assign specific payment methods to a product.
- Restrict the payment methods for the product types – Simple, Configurable, Virtual and downloadable.
- The admin can also assign payment methods to individual seller.
- The admin can assign payment methods to seller’s product also.
- The sellers can assign payment methods to their individual products
- Only assigned payment methods available while checkout to the customers.
Installation
Customers will get a zip folder and they have to extract the contents of this zip folder on their system. The extracted folder has an src folder, inside the src folder you have the app folder. You need to transfer this app folder into the Magento2 root directory on the server as shown below.
After the successful installation, you have to run these commands in the Magento2 root directory.
First command – php bin/magento setup:upgrade
Second command – php bin/magento setup:di:compile
Third Command – php bin/magento setup:static-content:deploy
After running the commands, you have to flush the cache from the Magento admin panel by navigating through->System->Cache management as shown below.
Multi-Lingual Configuration
Language Translation
For module translation, navigate to the following path in your system app/code/Webkul/MpProductPaymentRestriction/i18n/en_US.csv. Open the file named en_US.CSV for editing as shown in the below screenshot.
Then replace the words after the comma(,) on the right in the file with your translated words.
After editing and translating the CSV file, you need to save the translated file name according to your region language and country code such as – de_DE.CSV. Followed by uploading the translated file to the same folder from where you have obtained it. Now your module translation is complete.
Module Configuration
After the module installation, the admin can configure the module settings by navigating to the Stores -> Settings -> Configuration -> Webkul -> Marketplace Product Payment Restriction as shown below.
Here, the admin will:
- Enabled – Set the option to Yes if want to display the restricted payment methods only on the frontend. Else set the option to No if want to display all the payment methods.
- Allowed Payment Methods – Choose the payment methods wants to enable at the frontend. The selected payment methods will be applicable to all the products and the sellers.
And, lastly hit the Save Config button to save the configuration successfully.
Assign Payment Methods To Products – Admin End
The admin can restrict the different payment methods for each product as shown below.
On the product edit page, the admin will have:
- Select Payment- Choose the payment methods wants to enable for that particular product.
And, lastly hit the Save button to save the product successfully.
Note:
- The admin needs to configure the payment methods for each product individually.
- The admin can configure the payment methods for the admin and seller products as well.
- The admin can restrict the payment methods for the product types – Simple, Configurable, Virtual and downloadable.
- The admin can restrict the payment methods for the products which were existing before the installation of this module.
Assign Payment Methods To Sellers – Admin End
The admin can even restrict the different payment methods for each seller. For this, the admin will navigate to Marketplace Management -> Manage Sellers as shown below.
Here, the admin will select the seller to whom the admin wants to assign the payment methods. After selecting the seller, the admin gets navigated to the seller information page as shown below.
Under Payment Method Restriction, the admin will assign the payment methods to the seller.
Note: The seller can assign only those payment methods to their products which are been assigned to the sellers by the admin.
Assign Payment Methods To Products – Seller End
The seller also can restrict the different payment methods for each product. For this, the seller needs to navigate to the product edit page as shown below.
On the product edit page, the seller will have:
- Select Payment- Choose the payment methods wants to enable for that particular product.
And, lastly hit the Save button to save the product successfully.
Note:
- The admin seller to configure the payment methods for each product individually.
- The seller can restrict the payment methods for the product types – Simple, Configurable, Virtual and downloadable.
- The seller can restrict the payment methods for the products which were existing before the installation of this module.
Front-End
Now at the front-end, the customer can view the restricted payment methods while placing the order.
And accordingly, the customer will select the payment method when proceeding further for placing the order.
Case 1: What if the shopping cart has multiple products with different payment methods enabled?
It will check the common payment methods among the multiple products in the cart and accordingly will display them at the checkout.
That’s all for the Magento 2 Marketplace Payment Method Restriction plugin. Still, have any issue, feel free to add a ticket and let us know your views at webkul.uvdesk.com