OpenCart Shipping Based Payment Method:
The webstore owner can limit the customers so that they get to choose only those payment methods for completing the orders that get assigned to each of the shipping methods by the admin.
Subsequently, after selecting a shipping method, the customer only gets the assigned payment methods available for that particular shipping method. Lastly, the customer can choose a payment method and can place the order.
- Set shipping dependent payment methods.
- limit the number of payment methods depending upon the chosen shipping method.
- Easily create multiple shipping methods along with their associated payment methods.
- The customers can see the payment methods available depending on the chosen shipping method.
Extract the contents of the received zip folder on your system and then according to your OpenCart version select the respective folder for the module. Now upload the admin directory into the Opencart’s root directory.
Login to the admin panel and then go to Extension-> Extension Installer and then upload the XML file. The XML file is in the ocmod folder under the module directory.
In the ocmod folder, select the Opencart version that you are using and under it, you will find the shipping_payment_mapping.ocmod.xml file.
After uploading the XML file go to the Extension -> Modifications and click on refresh button.
After that in Admin panel go to System -> Users -> User Groups and edit the group ‘Administrator’ and choose to select all for both Access and Modify Permission for the permission that you want to provide and Save it.
Now go to Extension-> Extension->Modules->Shipping Based Payment Method and tap the Install button to install the extension.
Configuration Settings – Admin Backend
After the successful installation of the extension, the admin will navigate through Extension->Extension->Modules->Shipping Based Payment Method and will tap the Edit button.
This brings up the configuration settings for the module.
Under the OpenCart Shipping Based Payment Method configuration settings, the admin will be able to –
- Set the Status as Enabled to make use of the extension else select it as Disabled.
Note: If no mapping is done for a particular shipping method then all of the payment methods available within the store will be displayed to a customer at checkout.
Adding a New Mapping
The admin will have to map the shipping methods with the payment methods. To do so, the admin will first tap the Add button at the bottom right-hand side. This adds a horizontal column for creating a mapping.
Now, the admin will have all of the shipping methods within his store displayed on the left and all the payment methods listed on the right. Now here, the admin will –
- Select a Shipping method from a list of available shipping methods.
- Choose the Payment methods that will be available for the selected shipping method.
- The admin can do multiple mapping by tapping the Add button.
- Lastly, tap the Save button on the top right-hand side.
Customer Workflow — Store Frontend
The customer can add the products into the cart and can make a checkout by tapping the Checkout button.
After tapping the Checkout button, the customer is taken to the checkout page. Here, after the first 3 steps, the customer will select the Delivery method in Step 4.
According to the chosen Shipping method(Free Shipping in this case), the customer will have the respectively assigned Payment methods available for selection at step 5.
Note: At step number Five, the customer can see a notification that says ‘Available Payment Methods for this shipping method‘. It lets the customer know which payment methods are available for the chosen shipping method.
Moreover, if the customer selects Country Wise Shipping in step 4, then the customer will have the respectively assigned payment methods(set by the admin in module config. settings) available for selection at step 5.
Next, the customer will have to tap on the confirm button to proceed further to step 6, where the customer can complete the order.
Lastly, after placing the order, the customer will be able to check the shipping and payment details within the Order history section.
Moreover, in case you need more information or require any customization, then please send an email to firstname.lastname@example.org or raise a ticket at our HelpDesk system.
Current Product Version - 220.127.116.11
Supported Framework Version - 2.x.x.x, 2.0.x.x, 2.1.x.x, 2.2.x.x, 2.3.x.x