Changeset 3332597
- Timestamp:
- 07/23/2025 05:21:31 AM (8 months ago)
- Location:
- cedcommerce-connector-for-tiktok-shop
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.1 (copied) (copied from cedcommerce-connector-for-tiktok-shop/trunk)
-
tags/1.0.1/README.txt (modified) (2 diffs)
-
tags/1.0.1/admin/class-CCTS-admin.php (modified) (3 diffs)
-
tags/1.0.1/cedcommerce-connector-for-tiktok-shop.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/class-CCTS-admin.php (modified) (3 diffs)
-
trunk/cedcommerce-connector-for-tiktok-shop.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cedcommerce-connector-for-tiktok-shop/tags/1.0.1/README.txt
r3139387 r3332597 8 8 WC requires at least: 3.0.0 9 9 WC tested up to: 9.0.0 10 Stable tag: 1.0. 010 Stable tag: 1.0.1 11 11 License: GPLv3 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 101 101 = 1.0.0 = 102 102 * First version 103 104 = 1.0.1 = 105 * updated shipping label download functionality -
cedcommerce-connector-for-tiktok-shop/tags/1.0.1/admin/class-CCTS-admin.php
r3139387 r3332597 337 337 $marketplace = get_post_meta( $post_id, '_ced_marketplace', true ); 338 338 if ( ( 'tiktok' === $marketplace ) ) { 339 $shipping_label = get_post_meta( $post_id, 'shipping_label', true ); 339 340 add_meta_box( 340 341 'ced_tiktok_manage_orders_metabox', … … 345 346 'high' 346 347 ); 348 if( !empty($shipping_label) ) 349 { 350 add_meta_box( 351 'ced_tiktok_manage_orders_label_metabox', 352 __( 'Download Shipping Label', 'cedcommerce-connector-for-tiktok-shop' ) . wc_help_tip( __( 'You can download shipping label for each package id.', 'cedcommerce-connector-for-tiktok-shop' ) ), 353 array( $this, 'ced_tiktok_render_order_label_metabox' ), 354 'shop_order', 355 'advanced', 356 'high' 357 ); 358 } 347 359 } 348 360 } … … 404 416 </table> 405 417 <?php 418 } 419 } 420 421 public function ced_tiktok_render_order_label_metabox() { 422 global $post; 423 $order_id = isset( $post->ID ) ? intval( $post->ID ) : ''; 424 $shipping_labels = get_post_meta( $order_id, 'shipping_label', true ); 425 if( is_array( $shipping_labels ) && !empty($shipping_labels) ) 426 { 427 echo "<tr>"; 428 foreach( $shipping_labels as $package_id => $shipping_label ) 429 { 430 echo "<td> 431 <span>Package Id : <b>".$package_id."</b></span><span><a href='".$shipping_label."'> Download </a></span> 432 </td><br><br>"; 433 } 434 echo "</tr>"; 406 435 } 407 436 } -
cedcommerce-connector-for-tiktok-shop/tags/1.0.1/cedcommerce-connector-for-tiktok-shop.php
r3139387 r3332597 10 10 * Plugin URI: https://wordpress.org/plugins/search/cedcommerce/ 11 11 * Description: CedCommerce Connector for TikTok Shop allows merchants to list their products on Tiktok marketplaces and manage all the orders from their WooCommerce store. 12 * Version: 1.0. 012 * Version: 1.0.1 13 13 * Author: CedCommerce 14 14 * Author URI: https://cedcommerce.com … … 29 29 * Rename this for your plugin and update it as you release new versions. 30 30 */ 31 define( 'CCTS_VERSION', '1.0. 0' );31 define( 'CCTS_VERSION', '1.0.1' ); 32 32 define( 'CCTS_PREFIX', 'ced_tiktok_integration' ); 33 33 define( 'CCTS_DIRPATH', plugin_dir_path( __FILE__ ) ); -
cedcommerce-connector-for-tiktok-shop/trunk/README.txt
r3139387 r3332597 8 8 WC requires at least: 3.0.0 9 9 WC tested up to: 9.0.0 10 Stable tag: 1.0. 010 Stable tag: 1.0.1 11 11 License: GPLv3 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 101 101 = 1.0.0 = 102 102 * First version 103 104 = 1.0.1 = 105 * updated shipping label download functionality -
cedcommerce-connector-for-tiktok-shop/trunk/admin/class-CCTS-admin.php
r3139387 r3332597 337 337 $marketplace = get_post_meta( $post_id, '_ced_marketplace', true ); 338 338 if ( ( 'tiktok' === $marketplace ) ) { 339 $shipping_label = get_post_meta( $post_id, 'shipping_label', true ); 339 340 add_meta_box( 340 341 'ced_tiktok_manage_orders_metabox', … … 345 346 'high' 346 347 ); 348 if( !empty($shipping_label) ) 349 { 350 add_meta_box( 351 'ced_tiktok_manage_orders_label_metabox', 352 __( 'Download Shipping Label', 'cedcommerce-connector-for-tiktok-shop' ) . wc_help_tip( __( 'You can download shipping label for each package id.', 'cedcommerce-connector-for-tiktok-shop' ) ), 353 array( $this, 'ced_tiktok_render_order_label_metabox' ), 354 'shop_order', 355 'advanced', 356 'high' 357 ); 358 } 347 359 } 348 360 } … … 404 416 </table> 405 417 <?php 418 } 419 } 420 421 public function ced_tiktok_render_order_label_metabox() { 422 global $post; 423 $order_id = isset( $post->ID ) ? intval( $post->ID ) : ''; 424 $shipping_labels = get_post_meta( $order_id, 'shipping_label', true ); 425 if( is_array( $shipping_labels ) && !empty($shipping_labels) ) 426 { 427 echo "<tr>"; 428 foreach( $shipping_labels as $package_id => $shipping_label ) 429 { 430 echo "<td> 431 <span>Package Id : <b>".$package_id."</b></span><span><a href='".$shipping_label."'> Download </a></span> 432 </td><br><br>"; 433 } 434 echo "</tr>"; 406 435 } 407 436 } -
cedcommerce-connector-for-tiktok-shop/trunk/cedcommerce-connector-for-tiktok-shop.php
r3139387 r3332597 10 10 * Plugin URI: https://wordpress.org/plugins/search/cedcommerce/ 11 11 * Description: CedCommerce Connector for TikTok Shop allows merchants to list their products on Tiktok marketplaces and manage all the orders from their WooCommerce store. 12 * Version: 1.0. 012 * Version: 1.0.1 13 13 * Author: CedCommerce 14 14 * Author URI: https://cedcommerce.com … … 29 29 * Rename this for your plugin and update it as you release new versions. 30 30 */ 31 define( 'CCTS_VERSION', '1.0. 0' );31 define( 'CCTS_VERSION', '1.0.1' ); 32 32 define( 'CCTS_PREFIX', 'ced_tiktok_integration' ); 33 33 define( 'CCTS_DIRPATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.