| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 227 |
|
|
| 228 |
$form['setcom_payment_methods']['uc_setcom_poli'] = array( |
$form['setcom_payment_methods']['uc_setcom_poli'] = array( |
| 229 |
'#type' => 'select', |
'#type' => 'select', |
| 230 |
'#title' => t('Allow payment by Setcom POLi'), |
'#title' => t('Allow payment by Setcom POLi/SID'), |
| 231 |
'#default_value' => variable_get('uc_setcom_poli', 0), |
'#default_value' => variable_get('uc_setcom_poli', 0), |
| 232 |
'#options' => $allowed_options, |
'#options' => $allowed_options, |
| 233 |
); |
); |
| 325 |
$data['IsVoucher'. $j] = 0; |
$data['IsVoucher'. $j] = 0; |
| 326 |
$i++; |
$i++; |
| 327 |
} |
} |
| 328 |
|
$do_shipping = variable_get('setcom_shipping', FALSE); |
| 329 |
if (!variable_get('setcom_shipping', FALSE)) { |
if (!$do_shipping) { |
| 330 |
$data['LIDSKU'. $i] = 'shipping'; |
$data['LIDSKU'. $i] = 'shipping'; |
| 331 |
$data['LIDDesc'. $i] = 'Shipping cost'; |
$data['LIDDesc'. $i] = 'Shipping cost'; |
| 332 |
$data['LIDPrice'. $i] = uc_currency_format($order->quote['rate'], FALSE, FALSE, '.'); |
$data['LIDPrice'. $i] = uc_currency_format($order->quote['rate'], FALSE, FALSE, '.'); |
| 633 |
} |
} |
| 634 |
|
|
| 635 |
if (variable_get('uc_setcom_poli', 0)==0) { |
if (variable_get('uc_setcom_poli', 0)==0) { |
| 636 |
$is_allowed[] =' POLi'; |
$is_allowed[] =' POLi/SID'; |
| 637 |
} |
} |
| 638 |
elseif (variable_get('uc_setcom_credit_poli', 0)==1) { |
elseif (variable_get('uc_setcom_credit_poli', 0)==1) { |
| 639 |
$is_allowed_wait[] = ' POLi'; |
$is_allowed_wait[] = ' POLi/SID'; |
| 640 |
} |
} |
| 641 |
else { |
else { |
| 642 |
$not_allowed[] =' POLi'; |
$not_allowed[] =' POLi/SID'; |
| 643 |
} |
} |
| 644 |
|
|
| 645 |
if (variable_get('uc_setcom_balance', 0)==0) { |
if (variable_get('uc_setcom_balance', 0)==0) { |
| 762 |
break; |
break; |
| 763 |
|
|
| 764 |
case 'GBP' : |
case 'GBP' : |
| 765 |
$cur_sym = '£'; |
$cur_sym = '�'; |
| 766 |
break; |
break; |
| 767 |
|
|
| 768 |
case 'USD' : |
case 'USD' : |