OK, I've got kind of tricky problem.
A programmer put a module in my OpenCart store for handling Gift Cards from an external company. Used their API, went off the OpenCart voucher setup somewhat...
Store connects to Authorize.net thru SIM.
Problem is, if order total is $0, no reason to go to Authorize.net, not to mention there is an error if you try.
Can anyone lead me on the path to finding an automated way to force Cash on Delivery if order total is $0?
Nevermind... I figured it out...
Added this to catalog/model/payment/authnetsim.php:
Changed:
To:
and added this in body:
Added this to catalog/model/payment/authnetsim.php:
Changed:
Code: Select all
public function getMethod($address) {
Code: Select all
public function getMethod($address, $total) {
Code: Select all
if ($total > 0) {
$status = true;
} else {
$status = false;
}
Who is online
Users browsing this forum: No registered users and 160 guests