is there a way to make the free checkout trigger for a price that is not exactly zero? that way I could put it in as 0.001 and not have to put the discount price and date in as well.
I thought about using COD for the freebies but that will only let me set a lower limit for price and not an upper limit so I would not be able to prevent people from using it for actual paid downloads.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
IN:
/catalog/model/extension/payment/free_checkout.php
REPLACE:
if ($total <= 0.00) {
WITH:
if ($total <= 0.001) {
You could probably use anything up to 0.009 as well, if using 0.001 doesn't seem to work. Hope that helps.
That may only resolved the free checkout validations but not for the COD payment method ...Johnathan wrote: ↑Mon Apr 13, 2020 10:17 pmTry this edit:
Code: Select all
IN: /catalog/model/extension/payment/free_checkout.php REPLACE: if ($total <= 0.00) { WITH: if ($total <= 0.001) {
You could probably use anything up to 0.009 as well, if using 0.001 doesn't seem to work. Hope that helps.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
you can change all occurrences of
Code: Select all
if ((float)$xxxxxxx['special']) {
Code: Select all
if ($xxxxxx['special']) {
Code: Select all
if ($xxxxxx['special'] > 0) {
Code: Select all
if (!is_null($xxxxxxx['special'])) {
Code: Select all
if (is_numeric($xxxxxxxx['special'])) {
that should allow you to set specials with a price of 0.00 and work with it.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thank you Johnathan That worked perfectly.Johnathan wrote: ↑Mon Apr 13, 2020 10:17 pmTry this edit:
Code: Select all
IN: /catalog/model/extension/payment/free_checkout.php REPLACE: if ($total <= 0.00) { WITH: if ($total <= 0.001) {
You could probably use anything up to 0.009 as well, if using 0.001 doesn't seem to work. Hope that helps.
Users browsing this forum: JNeuhoff and 289 guests