Free checkout only works if the amount of the order is 0 or lower.
If you want to change this you can change catalog\model\payment\free_checkout.php
Change the line : if ($total <= 0) { in
if ($total > 0) {
then it works
If you want to change this you can change catalog\model\payment\free_checkout.php
Change the line : if ($total <= 0) { in
if ($total > 0) {
then it works
TOP 5 Opencart Extensions:
1:Opencart Reservations
2:Stock Report, import/export stock levels with Excel
3:3D Carousel
4:Product Price Changer by Category
5:Set price Inclusive Taxes
DEMO SHOP
The problem on my side came from the fact that the order total was calculating at $0.000003 due to a coupon code.
The fix for this would be to compare $total to see if it is less than one penny.
The fix for this would be to compare $total to see if it is less than one penny.
Code: Select all
if($total < 0.01)
I also found I needed to add this code to get the confirm order button to show up with a value of less than $0.01 and to still show on $0.00 if a voucher or coupon was used to bring the total to $0.00.
Version 1.5.1.3
to /public_html/catalog/model/total/total.php
and this code to /public_html/catalog/model/payment/authorizenet_sim.php
and to keep this from showing at $0.01 in /public_html/catalog/model/payment/free_checkout.php
Version 1.5.1.3
to /public_html/catalog/model/total/total.php
Code: Select all
if ($total < 0.01) {
$total = $total + 0.0001;
}
Code: Select all
if ($total >= 0.01) {
if ($this->config->get('authorizenet_sim_total') > $total) {
$status = false;
} elseif (!$this->config->get('authorizenet_sim_geo_zone_id')) {
$status = true;
} elseif ($query->num_rows) {
$status = true;
} else {
$status = false;
}
} else {
$status = false;
}
Code: Select all
if ($total = 0) {
$status = true;
} else {
if ($total < 0.01) {
$status = true;
} else {
$status = false;
}
}
Who is online
Users browsing this forum: No registered users and 16 guests