Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / what is the meaning of credit_covers?

what is the meaning of credit_covers?

Started by linjuming on 28 Jun 2012, 1:23 AM · Views: 702

Results 1 to 3 of 3
28 Jun 2012, 1:23 AM
#1
linjuming avatar

linjuming

Zen Follower

Join Date:
Apr 2012
Posts:
151
Plugin Contributions:
0

Post #1 by linjuming

in checkout_process.php
there is a $credit_covers var
what is the meaning ?

if ($credit_covers === TRUE)
{
$order->info['payment_method'] = $order->info['payment_module_code'] = '';
}

28 Jun 2012, 6:47 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #2 by rodg

linjuming:

in checkout_process.php
there is a $credit_covers var
what is the meaning ?

From the code source:

// pre_confirmation_check is called on checkout confirmation. It's function is to decide whether the
// credits available are greater than the order total. If they are then a variable (credit_covers) is set to
// true. This is used to bypass the payment method. In other words if the Gift Voucher is more than the order
// total, we don't want to go to paypal etc.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

28 Jun 2012, 7:24 AM
#3
linjuming avatar

linjuming

Zen Follower

Join Date:
Apr 2012
Posts:
151
Plugin Contributions:
0

Post #3 by linjuming

thank you very much