Plugin Directory

Changeset 2945838


Ignore:
Timestamp:
08/01/2023 07:25:22 AM (3 years ago)
Author:
thanhtd
Message:

Update

Location:
woo-alidropship/trunk
Files:
7 edited

Legend:

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

    r2945185 r2945838  
    1 /**1.0.29 – 2023.07.31*/
    2 – Fixed: Missing find-product.php
     1/**1.0.30 – 2023.08.01*/
     2- Fixed: Parse data from Ali
    33
    44/**1.0.28 – 2023.07.29*/
     
    99
    1010/**1.0.26 – 2023.04.14*/
    11 - Fixed: Get shipping information
     11- Fixed: Get shipping infomation
    1212
    1313/**1.0.25 – 2023.02.24*/
  • woo-alidropship/trunk/admin/import_list.php

    r2944849 r2945838  
    297297            $variations = self::get_product_variations( $product_id );
    298298
    299             $decimals   = wc_get_price_decimals();
     299            $decimals = wc_get_price_decimals();
    300300            if ( $decimals < 1 ) {
    301301                $decimals = 1;
     
    399399        if ( $page === 'woo-alidropship-import-list' ) {
    400400            VI_WOO_ALIDROPSHIP_Admin_Settings::enqueue_semantic();
    401             wp_enqueue_script( 'jquery-ui-sortable' );
     401//          wp_enqueue_script( 'jquery-ui-sortable' );
    402402            wp_enqueue_style( 'woo-alidropship-admin-style', VI_WOO_ALIDROPSHIP_CSS . 'import-list.css', '', VI_WOO_ALIDROPSHIP_VERSION );
    403             wp_enqueue_script( 'woo-alidropship-import-list', VI_WOO_ALIDROPSHIP_JS . 'import-list.js', array( 'jquery' ), VI_WOO_ALIDROPSHIP_VERSION );
     403            wp_enqueue_script( 'woo-alidropship-import-list', VI_WOO_ALIDROPSHIP_JS . 'import-list.js', array( 'jquery', 'jquery-ui-sortable' ), VI_WOO_ALIDROPSHIP_VERSION );
    404404            wp_localize_script( 'woo-alidropship-import-list', 'vi_wad_import_list_params', array(
    405405                'url'                              => admin_url( 'admin-ajax.php' ),
     
    23042304        ?>
    23052305        <h1><?php esc_html_e( 'Import List', 'woocommerce-alidropship' ) ?></h1>
    2306 <!--        <div class="vi-ui segment ald-find-product-segment">-->
    2307 <!--            <div class="vi-ui icon input fluid">-->
    2308 <!--                <input type="text" class="ald-open-find-product-modal" placeholder="--><?php //esc_html_e( 'Find product to import', 'woocommerce-alidropship' ) ?><!--">-->
    2309 <!--                <i class="search icon"> </i>-->
    2310 <!--            </div>-->
    2311 <!--        </div>-->
     2306        <div class="vi-ui segment ald-find-product-segment">
     2307            <div class="vi-ui icon input fluid">
     2308                <input type="text" class="ald-open-find-product-modal" placeholder="<?php esc_html_e( 'Find product to import', 'woocommerce-alidropship' ) ?>">
     2309                <i class="search icon"> </i>
     2310            </div>
     2311        </div>
    23122312
    23132313        <?php
     
    23192319
    23202320    public static function import_list_html() {
    2321 //      $user = wp_get_current_user();
    2322 //      $per_page = get_user_meta( $user->ID, 'vi_wad_per_page', true );
    2323 //      $user     = get_current_user_id();
    2324 //      $screen   = get_current_screen();
    2325 //      $option   = $screen->get_option( 'per_page', 'option' );
    2326 //      $per_page = get_user_meta( $user, $option, true );
    23272321
    23282322        $user = wp_get_current_user();
     
    26462640                    $image = isset( $gallery[0] ) ? $gallery[0] : '';
    26472641//                  $variations          = get_post_meta( $product_id, '_vi_wad_variations', true );
    2648                     $variations  = self::get_product_variations( $product_id );
     2642                    $variations = self::get_product_variations( $product_id );
    26492643
    26502644                    $price_array = array_filter( array_merge( array_column( $variations, 'sale_price' ), array_column( $variations, 'regular_price' ) ) );
  • woo-alidropship/trunk/assets/css/admin.css

    r2847223 r2945838  
    353353}
    354354
     355.vi-wad-plugin-name a {
     356    text-decoration: none;
     357    font-size: 120%;
     358    padding: 0 0 10px;
     359    display: block;
     360    font-weight: 700;
     361}
     362
     363.vi-wad-plugin-desc {
     364    text-align: justify;
     365    line-height: 1.5;
     366    font-size: 90%;
     367}
     368
    355369/*RTL*/
    356370.rtl .vi-wad-custom-price-rules-container .vi-wad-custom-price-rule-remove {
  • woo-alidropship/trunk/includes/data.php

    r2944849 r2945838  
    865865                        );
    866866                    }
    867                     self::handle_sku_module( $skuModule, $ignore_ship_from, $ignore_ship_from_default, $attributes );
     867                    self::handle_sku_module( $skuModule, $ignore_ship_from, $attributes );
    868868                    $attributes['name'] = isset( $titleModule['subject'] ) ? $titleModule['subject'] : '';
    869869
     
    12101210                    $skuModule = self::aliexpress_pt_get_sku_module( $ali_product_data['data']['data'] );
    12111211                    if ( $skuModule ) {
    1212                         self::handle_sku_module( $skuModule, $ignore_ship_from, $ignore_ship_from_default, $attributes );
     1212                        self::handle_sku_module( $skuModule, $ignore_ship_from, $attributes );
    12131213                    }
    12141214                    $titleModule = self::aliexpress_pt_get_title_module( $ali_product_data['data']['data'] );
     
    32043204        }
    32053205    }
     3206
     3207
     3208    /**
     3209     * @param $property_id
     3210     * @param $property_value_id
     3211     *
     3212     * @return string
     3213     */
     3214    private static function property_value_id_to_ship_from( $property_id, $property_value_id ) {
     3215        $ship_from = '';
     3216        if ( $property_id == 200007763 ) {
     3217            switch ( $property_value_id ) {
     3218                case 203372089:
     3219                    $ship_from = 'PL';
     3220                    break;
     3221                case 201336100:
     3222                case 201441035:
     3223                    $ship_from = 'CN';
     3224                    break;
     3225                case 201336103:
     3226                    $ship_from = 'RU';
     3227                    break;
     3228                case 100015076:
     3229                    $ship_from = 'BE';
     3230                    break;
     3231                case 201336104:
     3232                    $ship_from = 'ES';
     3233                    break;
     3234                case 201336342:
     3235                    $ship_from = 'FR';
     3236                    break;
     3237                case 201336106:
     3238                    $ship_from = 'US';
     3239                    break;
     3240                case 201336101:
     3241                    $ship_from = 'DE';
     3242                    break;
     3243                case 203124901:
     3244                    $ship_from = 'UA';
     3245                    break;
     3246                case 201336105:
     3247                    $ship_from = 'UK';
     3248                    break;
     3249                case 201336099:
     3250                    $ship_from = 'AU';
     3251                    break;
     3252                case 203287806:
     3253                    $ship_from = 'CZ';
     3254                    break;
     3255                case 201336343:
     3256                    $ship_from = 'IT';
     3257                    break;
     3258                case 203054831:
     3259                    $ship_from = 'TR';
     3260                    break;
     3261                case 203124902:
     3262                    $ship_from = 'AE';
     3263                    break;
     3264                case 100015009:
     3265                    $ship_from = 'ZA';
     3266                    break;
     3267                case 201336102:
     3268                    $ship_from = 'ID';
     3269                    break;
     3270                case 202724806:
     3271                    $ship_from = 'CL';
     3272                    break;
     3273                case 203054829:
     3274                    $ship_from = 'BR';
     3275                    break;
     3276                case 203124900:
     3277                    $ship_from = 'VN';
     3278                    break;
     3279                case 203124903:
     3280                    $ship_from = 'IL';
     3281                    break;
     3282                case 100015000:
     3283                    $ship_from = 'SA';
     3284                    break;
     3285                case 5581:
     3286                    $ship_from = 'KR';
     3287                    break;
     3288                default:
     3289            }
     3290        }
     3291
     3292        return $ship_from;
     3293    }
     3294
    32063295}
  • woo-alidropship/trunk/includes/setup-wizard.php

    r2944849 r2945838  
    147147                    }
    148148                }
    149                 wp_safe_redirect( admin_url( 'admin.php?page=woo-alidropship-import-list' ) );
     149                wp_safe_redirect( admin_url( 'admin.php?page=woo-alidropship-import-list#aldShowModal' ) );
    150150                exit;
    151151            }
     
    206206                        </div>
    207207                        <div class="vi-wad-skip-btn">
    208                             <a href="<?php echo esc_url( admin_url( 'admin.php?page=woo-alidropship' ) ) ?>"><?php esc_html_e( 'Skip', 'woo-alidropship' ); ?></a>
     208                            <a href="<?php echo esc_url( admin_url( 'admin.php?page=woo-alidropship-import-list#aldShowModal' ) ) ?>"><?php esc_html_e( 'Skip', 'woo-alidropship' ); ?></a>
    209209                        </div>
    210210                    </div>
     
    692692                                    <td>
    693693                                        <div class="vi-wad-plugin-name">
    694                                             <a href="<?php echo esc_url( $plugin_url ) ?>" target="_blank"><span
    695                                                         style="font-weight: 700"> <?php echo esc_html( $plugin['name'] ) ?></span></a>
     694                                            <a href="<?php echo esc_url( $plugin_url ) ?>" target="_blank">
     695                                                <span > <?php echo esc_html( $plugin['name'] ) ?></span>
     696                                            </a>
    696697                                        </div>
    697                                         <div style="text-align: justify"><?php echo esc_html( $plugin['desc'] ) ?></div>
     698                                        <div class="vi-wad-plugin-desc" ><?php echo esc_html( $plugin['desc'] ) ?></div>
    698699                                    </td>
    699700                                </tr>
     
    791792                                        complete: function () {
    792793                                            $button.removeClass('loading');
    793                                             window.location.href = '<?php echo esc_url( admin_url( 'admin.php?page=woo-alidropship-import-list' ) )?>';
     794                                            window.location.href = '<?php echo esc_url( admin_url( 'admin.php?page=woo-alidropship-import-list#aldShowModal' ) )?>';
    794795                                        }
    795796                                    })
     
    797798                            })
    798799                        } else {
    799                             window.location.href = '<?php echo esc_url( admin_url( 'admin.php?page=woo-alidropship-import-list' ) )?>';
     800                            window.location.href = '<?php echo esc_url( admin_url( 'admin.php?page=woo-alidropship-import-list#aldShowModal' ) )?>';
    800801                        }
    801802                        return false;
  • woo-alidropship/trunk/readme.txt

    r2945185 r2945838  
    316316
    317317== Changelog ==
    318 /**1.0.29 – 2023.07.31*/
    319 – Fixed: Missing find-product.php
     318/**1.0.30 – 2023.08.01*/
     319- Fixed: Parse data from Ali
    320320
    321321/**1.0.28 – 2023.07.29*/
     
    326326
    327327/**1.0.26 – 2023.04.14*/
    328 - Fixed: Get shipping information
     328- Fixed: Get shipping infomation
    329329
    330330/**1.0.25 – 2023.02.24*/
  • woo-alidropship/trunk/woo-alidropship.php

    r2945185 r2945838  
    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.0.29
     6 * Version: 1.0.30
    77 * Author: VillaTheme(villatheme.com)
    88 * Author URI: http://villatheme.com
     
    1818}
    1919
    20 define( 'VI_WOO_ALIDROPSHIP_VERSION', '1.0.29' );
     20define( 'VI_WOO_ALIDROPSHIP_VERSION', '1.0.30' );
    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.