Hello,
I want to disable cash on delivery option if total reach more than 3000 INR. Where and what condition I need to place in cod.php file or something else ?
I have tried with free vqmod extensions for Max_Cod_limit from Opencart Extension Market but it is not working with new version of Ajax One Page Checkout so I am looking to put a condition in source file which disable cash on delivery if orders get more than 3000 INR value.
Any help will be appreciated.
Thanks.
I want to disable cash on delivery option if total reach more than 3000 INR. Where and what condition I need to place in cod.php file or something else ?
I have tried with free vqmod extensions for Max_Cod_limit from Opencart Extension Market but it is not working with new version of Ajax One Page Checkout so I am looking to put a condition in source file which disable cash on delivery if orders get more than 3000 INR value.
Any help will be appreciated.
Thanks.
I see nobody else has a solution for your problem, if you have a bit of cash and would some help from a friendly team of OpenCart Professionals then you are more than welcome to contact us and we will give you a quote for the work, we could possibly get this done as soon as today/tomorrow for you!
https://webdesires.co.uk/website-suppor ... t-support/
https://webdesires.co.uk/website-suppor ... t-support/
Regards, WebDesires.
We are a team of developers in the UK - professional and friendly, message us or give us a call anytime and we will be happy to help.
Phone: +44 (0) 121 318 6336 - Web: webdesires.co.uk - Skype: WebDesires
OpenCart Support - OpenCart Web Development - Our OpenCart Plugins
Active Member
../catalog/model/payment/cod.php
before:
$method_data = array();
add:
before:
$method_data = array();
add:
Code: Select all
if ($total > 3000) {
$status = false;
}
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
If you want an extension that does this, Restrict Payment Methods is designed to let you restrict your payment methods based on various criteria, including total and postcode. It would keep you from having to hard-code your edits, as well as give you more options for how to limit when payment methods are available.
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
If you need a fee based on the payment method, you could use Simple Payment Fee or Payment-Based Fee/Discount.
Who is online
Users browsing this forum: No registered users and 4 guests