Plugin Directory

Changeset 2951415


Ignore:
Timestamp:
08/10/2023 10:33:19 AM (3 years ago)
Author:
thanhtd
Message:

Update

Location:
woo-alidropship/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • woo-alidropship/trunk/CHANGELOG.txt

    r2951095 r2951415  
     1/**1.1.1 – 2023.08.10*/
     2– Fixed: Missing item count at admin menu
     3
    14/**1.1.0 – 2023.08.10*/
    25– Added: Find Ali product to import from Import list
  • woo-alidropship/trunk/admin/error_images.php

    r2951095 r2951415  
    5959    public function menu_product_count() {
    6060        global $submenu;
    61         if ( isset( $submenu['woo-alidropship'] ) ) {
     61        if ( isset( $submenu['woo-alidropship-import-list'] ) ) {
    6262            // Add count if user has access.
    6363            if ( apply_filters( 'woo_aliexpress_dropship_error_images_count_in_menu', true ) && current_user_can( 'manage_options' ) ) {
    6464                $product_count = VI_WOO_ALIDROPSHIP_Error_Images_Table::get_rows( 0, 0, true );
    65                 foreach ( $submenu['woo-alidropship'] as $key => $menu_item ) {
     65                foreach ( $submenu['woo-alidropship-import-list'] as $key => $menu_item ) {
    6666                    if ( 0 === strpos( $menu_item[0], _x( 'Failed Images', 'Admin menu name', 'woo-alidropship' ) ) ) {
    67                         $submenu['woo-alidropship'][ $key ][0] .= ' <span class="update-plugins count-' . esc_attr( $product_count ) . '"><span class="' . self::set( 'error-images-count' ) . '">' . number_format_i18n( $product_count ) . '</span></span>'; // WPCS: override ok.
     67                        $submenu['woo-alidropship-import-list'][ $key ][0] .= ' <span class="update-plugins count-' . esc_attr( $product_count ) . '"><span class="' . self::set( 'error-images-count' ) . '">' . number_format_i18n( $product_count ) . '</span></span>'; // WPCS: override ok.
    6868                        break;
    6969                    }
  • woo-alidropship/trunk/admin/import_list.php

    r2951095 r2951415  
    637637    public function menu_product_count() {
    638638        global $submenu;
    639         if ( isset( $submenu['woo-alidropship'] ) ) {
     639        if ( isset( $submenu['woo-alidropship-import-list'] ) ) {
    640640            // Add count if user has access.
    641641            if ( apply_filters( 'woo_aliexpress_dropship_product_count_in_menu', true ) && current_user_can( 'manage_options' ) ) {
    642642                $count         = wp_count_posts( 'vi_wad_draft_product' );
    643643                $product_count = $count->draft + $count->override;
    644                 foreach ( $submenu['woo-alidropship'] as $key => $menu_item ) {
     644                foreach ( $submenu['woo-alidropship-import-list'] as $key => $menu_item ) {
    645645                    if ( 0 === strpos( $menu_item[0], _x( 'Import List', 'Admin menu name', 'woo-alidropship' ) ) ) {
    646                         $submenu['woo-alidropship'][ $key ][0] .= ' <span class="update-plugins count-' . esc_attr( $product_count ) . '"><span class="' . self::set( 'import-list-count' ) . '">' . number_format_i18n( $product_count ) . '</span></span>'; // WPCS: override ok.
     646                        $submenu['woo-alidropship-import-list'][ $key ][0] .= ' <span class="update-plugins count-' . esc_attr( $product_count ) . '"><span class="' . self::set( 'import-list-count' ) . '">' . number_format_i18n( $product_count ) . '</span></span>'; // WPCS: override ok.
    647647                        break;
    648648                    }
  • woo-alidropship/trunk/admin/imported.php

    r2951095 r2951415  
    197197    public function menu_product_count() {
    198198        global $submenu;
    199         if ( isset( $submenu['woo-alidropship'] ) ) {
     199        if ( isset( $submenu['woo-alidropship-import-list'] ) ) {
    200200            // Add count if user has access.
    201201            if ( apply_filters( 'woo_aliexpress_dropship_product_count_in_menu', true ) && current_user_can( 'manage_options' ) ) {
    202202                $product_count = $this->get_product_count();
    203                 foreach ( $submenu['woo-alidropship'] as $key => $menu_item ) {
     203                foreach ( $submenu['woo-alidropship-import-list'] as $key => $menu_item ) {
    204204                    if ( 0 === strpos( $menu_item[0], _x( 'Imported', 'Admin menu name', 'woo-alidropship' ) ) ) {
    205                         $submenu['woo-alidropship'][ $key ][0] .= ' <span class="update-plugins count-' . esc_attr( $product_count->publish ) . '"><span class="' . self::set( 'imported-list-count' ) . '">' . number_format_i18n( $product_count->publish ) . '</span></span>'; // WPCS: override ok.
     205                        $submenu['woo-alidropship-import-list'][ $key ][0] .= ' <span class="update-plugins count-' . esc_attr( $product_count->publish ) . '"><span class="' . self::set( 'imported-list-count' ) . '">' . number_format_i18n( $product_count->publish ) . '</span></span>'; // WPCS: override ok.
    206206                        break;
    207207                    }
  • woo-alidropship/trunk/readme.txt

    r2951095 r2951415  
    316316
    317317== Changelog ==
     318
     319/**1.1.1 – 2023.08.10*/
     320– Fixed: Missing item count at admin menu
     321– Added: Find Ali product to import from Import list
     322
    318323/**1.0.30 – 2023.08.01*/
    319324- Fixed: Parse data from Ali
  • woo-alidropship/trunk/woo-alidropship.php

    r2951095 r2951415  
    44 * Plugin URI: https://villatheme.com/extensions/aliexpress-dropshipping-and-fulfillment-for-woocommerce/
    55 * Description: Transfer data from AliExpress products to WooCommerce effortlessly and fulfill WooCommerce orders to AliExpress automatically.
    6  * Version: 1.1.0
     6 * Version: 1.1.1
    77 * Author: VillaTheme(villatheme.com)
    88 * Author URI: http://villatheme.com
     
    1818}
    1919
    20 define( 'VI_WOO_ALIDROPSHIP_VERSION', '1.1.0' );
     20define( 'VI_WOO_ALIDROPSHIP_VERSION', '1.1.1' );
    2121define( 'VI_WOO_ALIDROPSHIP_DIR', plugin_dir_path( __FILE__ ) );
    2222define( 'VI_WOO_ALIDROPSHIP_INCLUDES', VI_WOO_ALIDROPSHIP_DIR . "includes" . DIRECTORY_SEPARATOR );
Note: See TracChangeset for help on using the changeset viewer.