Post by colt1911 » Thu Apr 05, 2012 12:22 am

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?
Last edited by colt1911 on Thu Apr 05, 2012 2:27 am, edited 1 time in total.

New member

Posts

Joined
Sat Sep 24, 2011 1:23 am

Post by OpenCart Addons » Thu Apr 05, 2012 1:14 am

Hey,

If the order total is $0.00, why not use free checkout?

You can enable it through:
Admin CP > Extension > Payment > Free Checkout


Joel.

Canada's Leading Expert In OpenCart Development & Certified OpenCart Development Partner Image


User avatar
Active Member

Posts

Joined
Thu Nov 24, 2011 10:51 am
Location - Canada

Post by colt1911 » Thu Apr 05, 2012 2:00 am

@Joel - Hey, thanks a lot! That solved half of my problem. The other half of my problem is to make the Authorize.net SIM payment method not show up if order total is $0, if you have any ideas...

New member

Posts

Joined
Sat Sep 24, 2011 1:23 am

Post by colt1911 » Thu Apr 05, 2012 2:27 am

Nevermind... I figured it out...

Added this to catalog/model/payment/authnetsim.php:

Changed:

Code: Select all

public function getMethod($address) {
To:

Code: Select all

public function getMethod($address, $total) {
and added this in body:

Code: Select all

if ($total > 0) {
			$status = true;
		} else {
			$status = false;
		}

New member

Posts

Joined
Sat Sep 24, 2011 1:23 am
Who is online

Users browsing this forum: No registered users and 160 guests