Changeset 3374567
- Timestamp:
- 10/07/2025 04:24:24 PM (3 months ago)
- Location:
- a2z-canada-post-automated-shipping
- Files:
-
- 32 added
- 2 edited
-
tags/3.0.4 (added)
-
tags/3.0.4/controllors (added)
-
tags/3.0.4/controllors/classes (added)
-
tags/3.0.4/controllors/classes/hit-box-packing.php (added)
-
tags/3.0.4/controllors/classes/index.php (added)
-
tags/3.0.4/controllors/classes/weight_pack (added)
-
tags/3.0.4/controllors/classes/weight_pack/class-hit-weight-packing-util.php (added)
-
tags/3.0.4/controllors/classes/weight_pack/class-hit-weight-packing.php (added)
-
tags/3.0.4/controllors/classes/weight_pack/class-hit-weight-strategy-ascend.php (added)
-
tags/3.0.4/controllors/classes/weight_pack/class-hit-weight-strategy-descend.php (added)
-
tags/3.0.4/controllors/classes/weight_pack/class-hit-weight-strategy-simple.php (added)
-
tags/3.0.4/controllors/classes/weight_pack/index.php (added)
-
tags/3.0.4/controllors/hit_canadapost_auto_init.php (added)
-
tags/3.0.4/controllors/index.php (added)
-
tags/3.0.4/controllors/views (added)
-
tags/3.0.4/controllors/views/cp_logo.png (added)
-
tags/3.0.4/controllors/views/hit_canadapost_auto_settings_view.php (added)
-
tags/3.0.4/controllors/xml (added)
-
tags/3.0.4/controllors/xml/cacert.pem (added)
-
tags/3.0.4/controllors/xml/index.php (added)
-
tags/3.0.4/controllors/xml/label.xml (added)
-
tags/3.0.4/controllors/xml/rate.xml (added)
-
tags/3.0.4/controllors/xml/rateca.xml (added)
-
tags/3.0.4/controllors/xml/rateus.xml (added)
-
tags/3.0.4/controllors/xml/transmit.xml (added)
-
tags/3.0.4/hit_canadapost_auto_basic.php (added)
-
tags/3.0.4/i18n (added)
-
tags/3.0.4/i18n/index.php (added)
-
tags/3.0.4/i18n/languages (added)
-
tags/3.0.4/i18n/languages/index.php (added)
-
tags/3.0.4/index.php (added)
-
tags/3.0.4/readme.txt (added)
-
trunk/hit_canadapost_auto_basic.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
a2z-canada-post-automated-shipping/trunk/hit_canadapost_auto_basic.php
r3347108 r3374567 4 4 * Plugin URI: https://wordpress.org/plugins/a2z-canada-post-automated-shipping/#developers 5 5 * Description: Realtime Shipping Rates, Shipping label, commercial invoice automation included. 6 * Version: 3.0. 36 * Version: 3.0.4 7 7 * Author: Shipi 8 8 * Author URI: https://myshipi.com/ … … 80 80 $general_settings = get_option('hit_cp_auto_main_settings'); 81 81 $general_settings = empty($general_settings) ? array() : $general_settings; 82 83 add_action( 'woocommerce_view_order', array($this, 'add_tracking_info_to_order_view'), 10 ); 82 84 85 } 86 87 function add_tracking_info_to_order_view( $order_id ) { 88 // print_r($order_id);die; 89 $data = $this->hit_cp_get_meta($order_id, 'values', false); 90 if($data){ 91 $shipment_data = json_decode($data, true); 92 if ($shipment_data){ 93 if(isset($shipment_data["tracking_num"])){ 94 $key = 0; 95 ?> 96 <script> 97 // Listener in the parent window 98 function receiveMessage(event) { 99 // Optionally check the event origin for security 100 if (event.data && event.data.type === 'setHeight') { 101 var iframe = document.getElementById('shipi_canadapostcontentFrame<?php echo $key;?>'); 102 iframe.style.height = event.data.height + 'px'; 103 } 104 } 105 window.addEventListener('message', receiveMessage, false); 106 </script> 107 <iframe src="https://track.myshipi.com/?no=<?php echo $shipment_data["tracking_num"]; ?>&track=1&embed=1" scrolling="no" id="shipi_canadapostcontentFrame<?php echo $key;?>" style="width: 100%;border: 0px;background: transparent;"></iframe> 108 <?php 109 } 110 } 111 } 112 } 113 114 function hit_cp_get_meta($order_id, $meta_key, $default = false) { 115 $option_name = 'hit_cp_auto_' . $meta_key . '_' . $order_id; 116 $meta_value = get_option($option_name, $default); 117 return $meta_value; 83 118 } 84 119 -
a2z-canada-post-automated-shipping/trunk/readme.txt
r3347108 r3374567 5 5 Tested up to: 6.8 6 6 Requires PHP: 5.6 7 Stable tag: 3.0. 37 Stable tag: 3.0.4 8 8 License: GPLv3 or later License 9 9 URI: http://www.gnu.org/licenses/gpl-3.0.html … … 80 80 81 81 == Changelog == 82 = 3.0.4 = 83 > Added Tracking Status 84 82 85 = 3.0.3 = 83 86 > Bug Fix
Note: See TracChangeset
for help on using the changeset viewer.