Changeset 3255043
- Timestamp:
- 03/12/2025 10:06:46 PM (13 months ago)
- Location:
- cod24-shipping
- Files:
-
- 26 added
- 1 deleted
- 4 edited
-
tags/4.0.1 (added)
-
tags/4.0.1/assets (added)
-
tags/4.0.1/assets/css (added)
-
tags/4.0.1/assets/css/cod24-woo-admin.css (added)
-
tags/4.0.1/assets/css/sweetalert2.css (added)
-
tags/4.0.1/assets/index.php (added)
-
tags/4.0.1/assets/js (added)
-
tags/4.0.1/assets/js/city-select.js (added)
-
tags/4.0.1/assets/js/cod24-shcod-fee.js (added)
-
tags/4.0.1/assets/js/cod24-woo-admin.js (added)
-
tags/4.0.1/assets/js/sweetalert2.js (added)
-
tags/4.0.1/cod24-shipping.php (added)
-
tags/4.0.1/inc (added)
-
tags/4.0.1/inc/api (added)
-
tags/4.0.1/inc/api/class-cod24-api.php (added)
-
tags/4.0.1/inc/api/class-cod24-tipax-api.php (added)
-
tags/4.0.1/inc/class-cod24-settings.php (added)
-
tags/4.0.1/inc/class-cod24-shcod.php (added)
-
tags/4.0.1/inc/class-cod24-woo.php (added)
-
tags/4.0.1/inc/index.php (added)
-
tags/4.0.1/inc/shipping (added)
-
tags/4.0.1/inc/shipping/class-cod24-pishtaz.php (added)
-
tags/4.0.1/inc/shipping/class-cod24-special.php (added)
-
tags/4.0.1/inc/shipping/class-cod24-tipax.php (added)
-
tags/4.0.1/index.php (added)
-
tags/4.0.1/readme.txt (added)
-
tags/4.0/inc/class-cod24-woo.php (modified) (1 diff)
-
tags/4.0/readme.txt (deleted)
-
trunk/cod24-shipping.php (modified) (2 diffs)
-
trunk/inc/class-cod24-woo.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cod24-shipping/tags/4.0/inc/class-cod24-woo.php
r3254068 r3255043 415 415 $shipping_method_id = $shipping_item->get_method_id(); 416 416 417 if ($shipping_method_id === 'cod24_tipax') { 417 if ($shipping_method_id === 'cod24_tipax') 418 { 418 419 $shipping_cost = $shipping_item->get_total(); 419 420 $shipping_type = 'tipax' ; 420 } elseif ($shipping_method_id === 'cod24_special' || $shipping_method_id === 'cod24_pishtaz') { 421 } 422 else 423 { 421 424 $shipping_type = 'post'; 422 425 } 423 }426 } 424 427 425 428 $cod24_info = array( -
cod24-shipping/trunk/cod24-shipping.php
r3254068 r3255043 3 3 Plugin Name: COD24 Shipping For Woocommerce 4 4 Description: This plugin is adding COD24 shipping methods to woocommerce. 5 Version: 4.0 5 Version: 4.0.1 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 ');29 define('COD24_PLUGIN_VERSION', '4.0.1'); 30 30 define('COD24_PLUGIN_DIR', plugin_dir_path(__FILE__)); 31 31 define('COD24_PLUGIN_URL', plugin_dir_url(__FILE__)); -
cod24-shipping/trunk/inc/class-cod24-woo.php
r3254068 r3255043 6 6 * Package: COD24 Shipping 7 7 * Author: COD24 8 * Last Modified Time: 2025/03/1 1 13:32:068 * Last Modified Time: 2025/03/13 01:11:50 9 9 * License: GPL-2.0+ 10 10 * License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 469 469 <form id="order_barcode_form" method="post" action=""> 470 470 <div class="cod24-shipping-type" style="margin-bottom:10px"> 471 <div class="label" style="margin-bottom:10px"><label for="shipping_type"><?php e sc_attr_e('Shipping Type', 'cod24-shipping'); ?></label></div>471 <div class="label" style="margin-bottom:10px"><label for="shipping_type"><?php echo esc_attr__('Shipping Type', 'cod24-shipping'); ?></label></div> 472 472 <select name="shipping_type" id="shipping_type" class="postbox shipping_type" style="margin-bottom:10px" disabled> 473 <option value="none"><?php e sc_attr_e('Select the shipping type...','cod24-shipping'); ?></option>474 <option value="post" <?php if( !empty( $order_cod24_info ) ) selected( 'post', $order_cod24_info['shipping_type'] ); ?>><?php e sc_attr_e('Post', 'cod24-shipping'); ?></option>475 <option value="tipax" <?php if( !empty( $order_cod24_info ) ) selected( 'tipax', $order_cod24_info['shipping_type'] ); ?>><?php e sc_attr_e('Tipax', 'cod24-shipping'); ?></option>473 <option value="none"><?php echo esc_attr__('Select the shipping type...','cod24-shipping'); ?></option> 474 <option value="post" <?php if( !empty( $order_cod24_info ) ) selected( 'post', $order_cod24_info['shipping_type'] ); ?>><?php echo esc_attr__('Post', 'cod24-shipping'); ?></option> 475 <option value="tipax" <?php if( !empty( $order_cod24_info ) ) selected( 'tipax', $order_cod24_info['shipping_type'] ); ?>><?php echo esc_attr__('Tipax', 'cod24-shipping'); ?></option> 476 476 </select> 477 477 </div> … … 479 479 <div class="cod24-post-section <?php if( !empty( $order_cod24_info ) && isset( $order_cod24_info['shipping_type'] ) && $order_cod24_info['shipping_type'] == 'post' ) echo 'active'; ?>"> 480 480 <div class="cod24-meta-fields" style="margin-bottom:10px"> 481 <div class="label" style="margin-bottom:10px"><label for="post_custom_total_weight"><?php e sc_attr_e('Total weight of order', 'cod24-shipping'); ?> (<?php echo esc_attr( $weight_unit ); ?>)</label></div>481 <div class="label" style="margin-bottom:10px"><label for="post_custom_total_weight"><?php echo esc_attr__('Total weight of order', 'cod24-shipping'); ?> (<?php echo esc_attr( $weight_unit ); ?>)</label></div> 482 482 <input type="text" class="postbox post_custom_total_weight" id="post_custom_total_weight" style="margin-bottom:0px" name="post_custom_total_weight" value="<?php if( !empty( $order_cod24_info ) && isset( $order_cod24_info['total_weight'] ) && !empty( $order_cod24_info['total_weight'] ) ) echo esc_attr( $order_cod24_info['total_weight'] ); ?>" /> 483 483 </div> … … 541 541 </div> 542 542 <div class="cod24-meta-fields" style="margin-bottom:10px"> 543 <div class="label" style="margin-bottom:10px"><label for="custom_total_dimension"><?php e sc_attr_e('Total dimension of order', 'cod24-shipping'); ?> (<?php echo esc_attr( $dimension_unit ); ?>)</label></div>543 <div class="label" style="margin-bottom:10px"><label for="custom_total_dimension"><?php echo esc_attr__('Total dimension of order', 'cod24-shipping'); ?> (<?php echo esc_attr( $dimension_unit ); ?>)</label></div> 544 544 <div class="cod24-dimension-fields"> 545 545 <input type="text" class="dimension-length" id="custom_total_dimension" style="margin-bottom:0px" name="custom_total_dimension[length]" placeholder="<?php echo esc_attr__('Length','cod24-shipping'); ?>" value="<?php if( !empty( $order_cod24_info ) && isset( $order_cod24_info['total_dimension'] ) && !empty( $order_cod24_info['total_dimension'] ) ) echo esc_attr( $order_cod24_info['total_dimension']['length'] ); ?>" /> … … 554 554 </div> 555 555 <div class="cod24-meta-fields" style="margin-bottom:10px"> 556 <div class="label" style="margin-bottom:10px"><label for="pack_type"><?php e sc_attr_e('Pack Type', 'cod24-shipping'); ?></label></div>556 <div class="label" style="margin-bottom:10px"><label for="pack_type"><?php echo esc_attr__('Pack Type', 'cod24-shipping'); ?></label></div> 557 557 <select name="pack_type" id="pack_type" class="postbox pack_type" style="margin-bottom:10px"> 558 <option value="none"><?php e sc_attr_e('Select the pack type...','cod24-shipping'); ?></option>558 <option value="none"><?php echo esc_attr__('Select the pack type...','cod24-shipping'); ?></option> 559 559 <?php foreach(COD24_Tipax_API::get_pack_type_list() as $key => $pack_type_item) : ?> 560 560 <option value="<?php echo esc_attr( $key ); ?>" <?php if( !empty( $order_cod24_info ) && isset( $order_cod24_info['pack_type'] ) && !empty( $order_cod24_info['pack_type'] ) ) selected( $key, $order_cod24_info['pack_type'] ); ?>><?php echo esc_attr( $pack_type_item ); ?></option> … … 617 617 public function save_order_cod24_fields( $order_id ) 618 618 { 619 // Check if we are in the admin area 620 if ( ! is_admin() ) { 621 return; 622 } 623 619 624 $order = wc_get_order( $order_id ); 620 625 $old_cod24_info = $order->get_meta('_cod24_info', true); -
cod24-shipping/trunk/readme.txt
r3254068 r3255043 4 4 Requires at least: 5.0 5 5 Tested up to: 6.7 6 Stable tag: 4.0 6 Stable tag: 4.0.1 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.1 = 47 * bug fixed in the checkout page for old structure orders 48 46 49 = 4.0 = 47 50 * Added Tipax Shipping
Note: See TracChangeset
for help on using the changeset viewer.