Changeset 3264094
- Timestamp:
- 03/30/2025 01:12:37 PM (12 months ago)
- Location:
- cod24-shipping
- Files:
-
- 26 added
- 1 deleted
- 5 edited
-
tags/4.0.2/cod24-shipping.php (modified) (1 diff)
-
tags/4.0.2/readme.txt (deleted)
-
tags/4.0.3 (added)
-
tags/4.0.3/assets (added)
-
tags/4.0.3/assets/css (added)
-
tags/4.0.3/assets/css/cod24-woo-admin.css (added)
-
tags/4.0.3/assets/css/sweetalert2.css (added)
-
tags/4.0.3/assets/index.php (added)
-
tags/4.0.3/assets/js (added)
-
tags/4.0.3/assets/js/city-select.js (added)
-
tags/4.0.3/assets/js/cod24-shcod-fee.js (added)
-
tags/4.0.3/assets/js/cod24-woo-admin.js (added)
-
tags/4.0.3/assets/js/sweetalert2.js (added)
-
tags/4.0.3/cod24-shipping.php (added)
-
tags/4.0.3/inc (added)
-
tags/4.0.3/inc/api (added)
-
tags/4.0.3/inc/api/class-cod24-api.php (added)
-
tags/4.0.3/inc/api/class-cod24-tipax-api.php (added)
-
tags/4.0.3/inc/class-cod24-settings.php (added)
-
tags/4.0.3/inc/class-cod24-shcod.php (added)
-
tags/4.0.3/inc/class-cod24-woo.php (added)
-
tags/4.0.3/inc/index.php (added)
-
tags/4.0.3/inc/shipping (added)
-
tags/4.0.3/inc/shipping/class-cod24-pishtaz.php (added)
-
tags/4.0.3/inc/shipping/class-cod24-special.php (added)
-
tags/4.0.3/inc/shipping/class-cod24-tipax.php (added)
-
tags/4.0.3/index.php (added)
-
tags/4.0.3/readme.txt (added)
-
trunk/assets/js/city-select.js (modified) (2 diffs)
-
trunk/cod24-shipping.php (modified) (2 diffs)
-
trunk/inc/shipping/class-cod24-tipax.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cod24-shipping/tags/4.0.2/cod24-shipping.php
r3257813 r3264094 27 27 public function __construct() 28 28 { 29 define('COD24_PLUGIN_VERSION', '4.0. 1');29 define('COD24_PLUGIN_VERSION', '4.0.2'); 30 30 define('COD24_PLUGIN_DIR', plugin_dir_path(__FILE__)); 31 31 define('COD24_PLUGIN_URL', plugin_dir_url(__FILE__)); -
cod24-shipping/trunk/assets/js/city-select.js
r3254068 r3264094 106 106 var shipToDifferentAddress = $('#ship-to-different-address-checkbox').is(':checked'); 107 107 var state = shipToDifferentAddress ? $('#shipping_state').val() : $('#billing_state').val(); 108 var shipping_method = ( $('.shipping_method:checked').val() ) ? $('.shipping_method:checked').val() : $('.shipping_method:first-child').val(); 108 if( $('.shipping_method:checked').length > 0 ) 109 var shipping_method = ( $('.shipping_method:checked').val() ) ? $('.shipping_method:checked').val() : $('.shipping_method:first-child').val(); 110 else 111 var shipping_method = ''; 109 112 $( document.body ).trigger( 'state_changing', [country, state, shipping_method, $container ] ); 110 113 }); … … 117 120 var $citybox = $container.find( '#billing_city, #shipping_city, #calc_shipping_city' ); 118 121 119 if (shipping_method .includes('cod24_tipax'))122 if (shipping_method != '' && shipping_method.includes('cod24_tipax')) 120 123 { 121 124 var type = 'tipax'; -
cod24-shipping/trunk/cod24-shipping.php
r3257813 r3264094 3 3 Plugin Name: COD24 Shipping For Woocommerce 4 4 Description: This plugin is adding COD24 shipping methods to woocommerce. 5 Version: 4.0. 25 Version: 4.0.3 6 6 Author: COD24 7 7 Author URI: https://cod24.ir … … 27 27 public function __construct() 28 28 { 29 define('COD24_PLUGIN_VERSION', '4.0. 1');29 define('COD24_PLUGIN_VERSION', '4.0.3'); 30 30 define('COD24_PLUGIN_DIR', plugin_dir_path(__FILE__)); 31 31 define('COD24_PLUGIN_URL', plugin_dir_url(__FILE__)); -
cod24-shipping/trunk/inc/shipping/class-cod24-tipax.php
r3254068 r3264094 5 5 * Package: COD24 Shipping 6 6 * Author: Rasool Vahdati 7 * Last Modified Time: 2025/0 2/01 22:45:387 * Last Modified Time: 2025/03/27 17:51:42 8 8 * License: GPL-2.0+ 9 9 * License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 96 96 } 97 97 98 /*$user_delivery_address = COD24_Tipax_API::find_city( $package['destination']['city'] ); 99 if(empty($user_delivery_address['state_id']) && empty($user_delivery_address['city_id'])) 100 $available = false;*/ 98 // Check total order amount - Tipax shipping is only available for orders of 400,000 Toman or more 99 $current_currency = get_woocommerce_currency(); 100 $cart_price = WC()->cart->get_cart_contents_total(); 101 if( $current_currency == 'IRR' ) { 102 $total_cart_price = ceil($cart_price / 10); 103 } else { 104 $total_cart_price = $cart_price; 105 } 106 107 if ( $total_cart_price < 400000 ) { 108 $available = false; 109 } 101 110 102 111 return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', $available, $package, $this ); -
cod24-shipping/trunk/readme.txt
r3257813 r3264094 4 4 Requires at least: 5.0 5 5 Tested up to: 6.7 6 Stable tag: 4.0. 26 Stable tag: 4.0.3 7 7 License: GPL-2.0+ 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 44 44 == Changelog == 45 45 46 = 4.0.3 = 47 * Bugs fixes and improvements 48 * Fixed load city when no shipping method available 49 46 50 = 4.0.2 = 47 51 * Bugs fixes and improvements
Note: See TracChangeset
for help on using the changeset viewer.