Plugin Directory

Changeset 1370493


Ignore:
Timestamp:
03/14/2016 07:42:22 AM (10 years ago)
Author:
aheadzen
Message:

1.2.6

Location:
woocommerce-cod-advanced/trunk
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-cod-advanced/trunk/readme.txt

    r1293292 r1370493  
    109109= 1.2.4 =
    110110* Added COD extra charge Message so user can change message as per they want.
     111
     112= 1.2.5 =
     113* Notice: Undefined variable: zone_fields in ......... woocommerce_advanced_cod.php on line 159 -- ERROR Solved
     114
     115= 1.2.6 =
     116* Localization added.
  • woocommerce-cod-advanced/trunk/woocommerce_advanced_cod.php

    r1293292 r1370493  
    55Description: Cash On Delivery Advanced - Added advanced options like hide COD payment while checkout if minimum amount, enable extra charges if minimum amount.
    66Author: Aheadzen Team
    7 Version: 1.2.4
     7Version: 1.2.6
    88Author URI: http://aheadzen.com/
    99
     
    2222        add_filter('woocommerce_available_payment_gateways',array($this,'adv_cod_filter_gateways'));
    2323        //add_action( 'woocommerce_calculate_totals', array($this,'adv_cod_calculate_totals'), 9, 1 );
    24         add_action( 'wp_head', array($this,'adv_cod_wp_header'), 99 );
    25         add_filter( 'woocommerce_gateway_icon', array($this,'adv_cod_gateway_icon'),9,2);
    26        
    27         add_action( 'woocommerce_cart_calculate_fees', array( &$this, 'woo_add_extra_fee') );
     24        add_action('wp_head',array($this,'adv_cod_wp_header'), 99 );
     25        add_filter('woocommerce_gateway_icon',array($this,'adv_cod_gateway_icon'),9,2);
     26       
     27        add_action('woocommerce_cart_calculate_fees',array( &$this, 'woo_add_extra_fee'));
     28       
     29        add_action('init',array($this,'az_woocod_init'));
    2830       
    2931        global $woocommerce;
     
    3234        }   
    3335    }
     36   
     37   
     38    function az_woocod_init(){
     39        load_plugin_textdomain('aheadzen', false, basename( dirname( __FILE__ ) ) . '/languages');
     40    }
    3441   
    3542    /****************************
     
    156163        /**Country**/
    157164        $country_arr = array();
    158             if ( $allowed_countries ) {
     165            if ( $allowed_countries && $zone_fields && $zone_fields['zone_country']) {
    159166            $selections = explode(',', $zone_fields['zone_country']);
    160167            foreach ( $allowed_countries as $key => $val ) {
Note: See TracChangeset for help on using the changeset viewer.