Plugin Directory

Changeset 3332597


Ignore:
Timestamp:
07/23/2025 05:21:31 AM (8 months ago)
Author:
cedcommerce
Message:

tagging version 1.0.1

Location:
cedcommerce-connector-for-tiktok-shop
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • cedcommerce-connector-for-tiktok-shop/tags/1.0.1/README.txt

    r3139387 r3332597  
    88WC requires at least: 3.0.0
    99WC tested up to: 9.0.0
    10 Stable tag: 1.0.0
     10Stable tag: 1.0.1
    1111License: GPLv3 or later
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    101101= 1.0.0 =
    102102* 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  
    337337        $marketplace = get_post_meta( $post_id, '_ced_marketplace', true );
    338338        if ( ( 'tiktok' === $marketplace ) ) {
     339            $shipping_label = get_post_meta( $post_id, 'shipping_label', true );
    339340            add_meta_box(
    340341                'ced_tiktok_manage_orders_metabox',
     
    345346                'high'
    346347            );
     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            }
    347359        }
    348360    }
     
    404416        </table>
    405417            <?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>";
    406435        }
    407436    }
  • cedcommerce-connector-for-tiktok-shop/tags/1.0.1/cedcommerce-connector-for-tiktok-shop.php

    r3139387 r3332597  
    1010 * Plugin URI:        https://wordpress.org/plugins/search/cedcommerce/
    1111 * 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.0
     12 * Version:           1.0.1
    1313 * Author:            CedCommerce
    1414 * Author URI:        https://cedcommerce.com
     
    2929 * Rename this for your plugin and update it as you release new versions.
    3030 */
    31 define( 'CCTS_VERSION', '1.0.0' );
     31define( 'CCTS_VERSION', '1.0.1' );
    3232define( 'CCTS_PREFIX', 'ced_tiktok_integration' );
    3333define( 'CCTS_DIRPATH', plugin_dir_path( __FILE__ ) );
  • cedcommerce-connector-for-tiktok-shop/trunk/README.txt

    r3139387 r3332597  
    88WC requires at least: 3.0.0
    99WC tested up to: 9.0.0
    10 Stable tag: 1.0.0
     10Stable tag: 1.0.1
    1111License: GPLv3 or later
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    101101= 1.0.0 =
    102102* 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  
    337337        $marketplace = get_post_meta( $post_id, '_ced_marketplace', true );
    338338        if ( ( 'tiktok' === $marketplace ) ) {
     339            $shipping_label = get_post_meta( $post_id, 'shipping_label', true );
    339340            add_meta_box(
    340341                'ced_tiktok_manage_orders_metabox',
     
    345346                'high'
    346347            );
     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            }
    347359        }
    348360    }
     
    404416        </table>
    405417            <?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>";
    406435        }
    407436    }
  • cedcommerce-connector-for-tiktok-shop/trunk/cedcommerce-connector-for-tiktok-shop.php

    r3139387 r3332597  
    1010 * Plugin URI:        https://wordpress.org/plugins/search/cedcommerce/
    1111 * 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.0
     12 * Version:           1.0.1
    1313 * Author:            CedCommerce
    1414 * Author URI:        https://cedcommerce.com
     
    2929 * Rename this for your plugin and update it as you release new versions.
    3030 */
    31 define( 'CCTS_VERSION', '1.0.0' );
     31define( 'CCTS_VERSION', '1.0.1' );
    3232define( 'CCTS_PREFIX', 'ced_tiktok_integration' );
    3333define( 'CCTS_DIRPATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.