/[drupal]/contributions/modules/uc_setcom/uc_setcom.module
ViewVC logotype

Diff of /contributions/modules/uc_setcom/uc_setcom.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.4.1, Mon Feb 23 12:01:06 2009 UTC revision 1.1.4.2, Wed Oct 7 08:14:04 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: $
3    
4  /**  /**
5  * @file  * @file
# Line 227  function uc_payment_method_setcom($op, & Line 227  function uc_payment_method_setcom($op, &
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        );        );
# Line 325  function uc_setcom_form(&$form_state, $o Line 325  function uc_setcom_form(&$form_state, $o
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, '.');
# Line 633  function uc_setcom_get_details() { Line 633  function uc_setcom_get_details() {
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) {
# Line 762  function getcurrency($amt, $cur) { Line 762  function getcurrency($amt, $cur) {
762        break;        break;
763    
764      case 'GBP' :      case 'GBP' :
765        $cur_sym = '£';        $cur_sym = '�';
766        break;        break;
767    
768      case 'USD' :      case 'USD' :

Legend:
Removed from v.1.1.4.1  
changed lines
  Added in v.1.1.4.2

  ViewVC Help
Powered by ViewVC 1.1.2