Changeset 1370493
- Timestamp:
- 03/14/2016 07:42:22 AM (10 years ago)
- Location:
- woocommerce-cod-advanced/trunk
- Files:
-
- 3 added
- 2 edited
-
languages (added)
-
languages/aheadzen-en_US.po (added)
-
languages/askoracle-en_US.mo (added)
-
readme.txt (modified) (1 diff)
-
woocommerce_advanced_cod.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-cod-advanced/trunk/readme.txt
r1293292 r1370493 109 109 = 1.2.4 = 110 110 * 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 5 5 Description: Cash On Delivery Advanced - Added advanced options like hide COD payment while checkout if minimum amount, enable extra charges if minimum amount. 6 6 Author: Aheadzen Team 7 Version: 1.2. 47 Version: 1.2.6 8 8 Author URI: http://aheadzen.com/ 9 9 … … 22 22 add_filter('woocommerce_available_payment_gateways',array($this,'adv_cod_filter_gateways')); 23 23 //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')); 28 30 29 31 global $woocommerce; … … 32 34 } 33 35 } 36 37 38 function az_woocod_init(){ 39 load_plugin_textdomain('aheadzen', false, basename( dirname( __FILE__ ) ) . '/languages'); 40 } 34 41 35 42 /**************************** … … 156 163 /**Country**/ 157 164 $country_arr = array(); 158 if ( $allowed_countries ) {165 if ( $allowed_countries && $zone_fields && $zone_fields['zone_country']) { 159 166 $selections = explode(',', $zone_fields['zone_country']); 160 167 foreach ( $allowed_countries as $key => $val ) {
Note: See TracChangeset
for help on using the changeset viewer.