Changeset 2945838
- Timestamp:
- 08/01/2023 07:25:22 AM (3 years ago)
- Location:
- woo-alidropship/trunk
- Files:
-
- 7 edited
-
CHANGELOG.txt (modified) (2 diffs)
-
admin/import_list.php (modified) (5 diffs)
-
assets/css/admin.css (modified) (1 diff)
-
includes/data.php (modified) (3 diffs)
-
includes/setup-wizard.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
woo-alidropship.php (modified) (2 diffs)
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 3 3 4 4 /**1.0.28 – 2023.07.29*/ … … 9 9 10 10 /**1.0.26 – 2023.04.14*/ 11 - Fixed: Get shipping info rmation11 - Fixed: Get shipping infomation 12 12 13 13 /**1.0.25 – 2023.02.24*/ -
woo-alidropship/trunk/admin/import_list.php
r2944849 r2945838 297 297 $variations = self::get_product_variations( $product_id ); 298 298 299 $decimals = wc_get_price_decimals();299 $decimals = wc_get_price_decimals(); 300 300 if ( $decimals < 1 ) { 301 301 $decimals = 1; … … 399 399 if ( $page === 'woo-alidropship-import-list' ) { 400 400 VI_WOO_ALIDROPSHIP_Admin_Settings::enqueue_semantic(); 401 wp_enqueue_script( 'jquery-ui-sortable' );401 // wp_enqueue_script( 'jquery-ui-sortable' ); 402 402 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 ); 404 404 wp_localize_script( 'woo-alidropship-import-list', 'vi_wad_import_list_params', array( 405 405 'url' => admin_url( 'admin-ajax.php' ), … … 2304 2304 ?> 2305 2305 <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> 2312 2312 2313 2313 <?php … … 2319 2319 2320 2320 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 );2327 2321 2328 2322 $user = wp_get_current_user(); … … 2646 2640 $image = isset( $gallery[0] ) ? $gallery[0] : ''; 2647 2641 // $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 ); 2649 2643 2650 2644 $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 353 353 } 354 354 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 355 369 /*RTL*/ 356 370 .rtl .vi-wad-custom-price-rules-container .vi-wad-custom-price-rule-remove { -
woo-alidropship/trunk/includes/data.php
r2944849 r2945838 865 865 ); 866 866 } 867 self::handle_sku_module( $skuModule, $ignore_ship_from, $ignore_ship_from_default,$attributes );867 self::handle_sku_module( $skuModule, $ignore_ship_from, $attributes ); 868 868 $attributes['name'] = isset( $titleModule['subject'] ) ? $titleModule['subject'] : ''; 869 869 … … 1210 1210 $skuModule = self::aliexpress_pt_get_sku_module( $ali_product_data['data']['data'] ); 1211 1211 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 ); 1213 1213 } 1214 1214 $titleModule = self::aliexpress_pt_get_title_module( $ali_product_data['data']['data'] ); … … 3204 3204 } 3205 3205 } 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 3206 3295 } -
woo-alidropship/trunk/includes/setup-wizard.php
r2944849 r2945838 147 147 } 148 148 } 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' ) ); 150 150 exit; 151 151 } … … 206 206 </div> 207 207 <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> 209 209 </div> 210 210 </div> … … 692 692 <td> 693 693 <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> 696 697 </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> 698 699 </td> 699 700 </tr> … … 791 792 complete: function () { 792 793 $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' ) )?>'; 794 795 } 795 796 }) … … 797 798 }) 798 799 } 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' ) )?>'; 800 801 } 801 802 return false; -
woo-alidropship/trunk/readme.txt
r2945185 r2945838 316 316 317 317 == 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 320 320 321 321 /**1.0.28 – 2023.07.29*/ … … 326 326 327 327 /**1.0.26 – 2023.04.14*/ 328 - Fixed: Get shipping info rmation328 - Fixed: Get shipping infomation 329 329 330 330 /**1.0.25 – 2023.02.24*/ -
woo-alidropship/trunk/woo-alidropship.php
r2945185 r2945838 4 4 * Plugin URI: https://villatheme.com/extensions/aliexpress-dropshipping-and-fulfillment-for-woocommerce/ 5 5 * Description: Transfer data from AliExpress products to WooCommerce effortlessly and fulfill WooCommerce orders to AliExpress automatically. 6 * Version: 1.0. 296 * Version: 1.0.30 7 7 * Author: VillaTheme(villatheme.com) 8 8 * Author URI: http://villatheme.com … … 18 18 } 19 19 20 define( 'VI_WOO_ALIDROPSHIP_VERSION', '1.0. 29' );20 define( 'VI_WOO_ALIDROPSHIP_VERSION', '1.0.30' ); 21 21 define( 'VI_WOO_ALIDROPSHIP_DIR', plugin_dir_path( __FILE__ ) ); 22 22 define( 'VI_WOO_ALIDROPSHIP_INCLUDES', VI_WOO_ALIDROPSHIP_DIR . "includes" . DIRECTORY_SEPARATOR );
Note: See TracChangeset
for help on using the changeset viewer.