Changeset 3209680
- Timestamp:
- 12/18/2024 07:58:02 AM (16 months ago)
- Location:
- cod24-shipping
- Files:
-
- 22 added
- 1 deleted
- 4 edited
-
tags/3.4.3/readme.txt (deleted)
-
tags/3.4.4 (added)
-
tags/3.4.4/assets (added)
-
tags/3.4.4/assets/css (added)
-
tags/3.4.4/assets/css/cod24-woo-admin.css (added)
-
tags/3.4.4/assets/css/sweetalert2.css (added)
-
tags/3.4.4/assets/index.php (added)
-
tags/3.4.4/assets/js (added)
-
tags/3.4.4/assets/js/city-select.js (added)
-
tags/3.4.4/assets/js/cod24-shcod-fee.js (added)
-
tags/3.4.4/assets/js/cod24-woo-admin.js (added)
-
tags/3.4.4/assets/js/sweetalert2.js (added)
-
tags/3.4.4/cod24-shipping.php (added)
-
tags/3.4.4/inc (added)
-
tags/3.4.4/inc/class-cod24-api.php (added)
-
tags/3.4.4/inc/class-cod24-pishtaz.php (added)
-
tags/3.4.4/inc/class-cod24-settings.php (added)
-
tags/3.4.4/inc/class-cod24-shcod.php (added)
-
tags/3.4.4/inc/class-cod24-special.php (added)
-
tags/3.4.4/inc/class-cod24-woo.php (added)
-
tags/3.4.4/inc/index.php (added)
-
tags/3.4.4/index.php (added)
-
tags/3.4.4/readme.txt (added)
-
trunk/cod24-shipping.php (modified) (1 diff)
-
trunk/inc/class-cod24-api.php (modified) (1 diff)
-
trunk/inc/class-cod24-woo.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cod24-shipping/trunk/cod24-shipping.php
r3204044 r3209680 3 3 Plugin Name: COD24 Shipping For Woocommerce 4 4 Description: This plugin is adding COD24 shipping methods to woocommerce. 5 Version: 3.4. 35 Version: 3.4.4 6 6 Author: COD24 7 7 Author URI: https://cod24.ir -
cod24-shipping/trunk/inc/class-cod24-api.php
r3204044 r3209680 243 243 $customer_phone = str_replace("+98", "0" , $order->get_billing_phone() ); 244 244 $customer_email = $order->get_billing_email(); 245 246 // analyze customer postcode 247 if( empty( $customer_postcode ) || ( !empty( $customer_postcode ) && strlen( $customer_postcode ) != 10 ) ) 248 $customer_postcode = "0000000000"; 245 249 246 250 $user_delivery_address = self::find_city( $customer_city ); -
cod24-shipping/trunk/inc/class-cod24-woo.php
r3204044 r3209680 343 343 } 344 344 } 345 346 // Check if free shipping is available and only hide other rates for certain conditions 347 $free_shipping_available = false; 348 349 // Loop through rates to check for free shipping 350 foreach ($rates as $rate_id => $rate) { 351 if ('free_shipping' === $rate->method_id) { 352 $free_shipping_available = true; // Free shipping is available 353 break; 354 } 355 } 356 357 // If free shipping is available and specific conditions are met, hide other rates 358 if ($free_shipping_available) { 359 foreach ($rates as $rate_id => $rate) { 360 if ('free_shipping' !== $rate->method_id) { 361 unset($rates[$rate_id]); // Remove other shipping methods 362 } 363 } 364 } 345 365 346 366 // hide cod when shipping cost delivery is required -
cod24-shipping/trunk/readme.txt
r3204044 r3209680 4 4 Requires at least: 5.0 5 5 Tested up to: 6.7 6 Stable tag: 3.4. 36 Stable tag: 3.4.4 7 7 License: GPL-2.0+ 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.