Changeset 3014502
- Timestamp:
- 12/27/2023 02:56:59 AM (2 years ago)
- Location:
- woo-alidropship/trunk
- Files:
-
- 4 edited
-
CHANGELOG.txt (modified) (1 diff)
-
admin/api.php (modified) (7 diffs)
-
readme.txt (modified) (1 diff)
-
woo-alidropship.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-alidropship/trunk/CHANGELOG.txt
r2971116 r3014502 1 /**2.0.1 – 2023.12.27*/ 2 - Fixed: Import AliExpress product characteristics and description from Aliexpress.ru 3 1 4 /**2.0.0 – 2023.09.25*/ 2 5 – Updated: Move Ali product to new table -
woo-alidropship/trunk/admin/api.php
r2968650 r3014502 366 366 wp_send_json( $result ); 367 367 } 368 369 $migrate_process = VI_WOO_ALIDROPSHIP_Admin_Migrate_New_Table::migrate_process(); 370 if ( ! $migrate_process->is_queue_empty() || $migrate_process->is_process_running() ) { 371 $result['message'] = esc_html__( 'The migration process is currently running in the background. Please do not import at this time', 'woo-alidropship' ); 372 $result['message_type'] = 2; 373 374 wp_send_json( $result ); 375 } 368 376 } 369 377 … … 495 503 } 496 504 $get_data = VI_WOO_ALIDROPSHIP_DATA::get_data( 'https://www.aliexpress.com/item/' . $product_id . '.html', array( 'cookies' => $cookies ), $product_html ); 505 506 if ( ! empty( $request->get_param( 'ru_product_description' ) ) && empty( $get_data['data']['description'] ) ) { 507 $get_data['data']['description'] = base64_decode( $request->get_param( 'ru_product_description' ) ); 508 } 509 510 if ( ! empty( $request->get_param( 'ru_product_characteristics' ) ) && empty( $get_data['data']['specsModule'] ) ) { 511 $get_data['data']['specsModule'] = $request->get_param( 'ru_product_characteristics' ); 512 } 513 497 514 if ( $get_data['status'] == 'success' ) { 498 515 $data = $get_data['data']; … … 585 602 if ( $products && is_array( $products ) ) { 586 603 vi_wad_set_time_limit(); 587 $args = array(604 $args = array( 588 605 'post_type' => 'vi_wad_draft_product', 589 606 'posts_per_page' => count( $products ), … … 606 623 ); 607 624 // $the_query = new WP_Query( $args ); 608 $the_query = VI_WOO_ALIDROPSHIP_DATA::is_ald_table() ? new Ali_Product_Query( $args ) : new WP_Query( $args );609 610 $imported = array();625 $the_query = VI_WOO_ALIDROPSHIP_DATA::is_ald_table() ? new Ali_Product_Query( $args ) : new WP_Query( $args ); 626 627 $imported = array(); 611 628 if ( $the_query->posts ) { 612 629 foreach ( $the_query->posts as $id ) { … … 1321 1338 } 1322 1339 } 1340 1323 1341 if ( $state_code ) { 1324 1342 $state = isset( $states[ $state_code ] ) ? $states[ $state_code ] : $state_code; … … 1388 1406 } 1389 1407 } 1408 1390 1409 $result = array( 1391 1410 'name' => remove_accents( $name ), 1411 'fname' => remove_accents( $order->get_shipping_first_name() ), 1412 'lname' => remove_accents( $order->get_shipping_last_name() ), 1392 1413 'phone' => VI_WOO_ALIDROPSHIP_DATA::sanitize_phone_number( $phone ), 1393 1414 'street' => remove_accents( $address1 ), … … 1404 1425 'fromOrderId' => $order->get_id() 1405 1426 ); 1427 1406 1428 if ( $country === 'BR' ) { 1407 1429 $result['cpf'] = $order->get_shipping_company(); -
woo-alidropship/trunk/readme.txt
r2971116 r3014502 317 317 == Changelog == 318 318 319 /**2.0.1 – 2023.12.27*/ 320 - Fixed: Import AliExpress product characteristics and description from Aliexpress.ru 321 319 322 /**2.0.0 – 2023.09.25*/ 320 323 – Updated: Move Ali product to new table -
woo-alidropship/trunk/woo-alidropship.php
r2971116 r3014502 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: 2.0. 06 * Version: 2.0.1 7 7 * Author: VillaTheme(villatheme.com) 8 8 * Author URI: http://villatheme.com … … 18 18 } 19 19 20 define( 'VI_WOO_ALIDROPSHIP_VERSION', '2.0. 0' );20 define( 'VI_WOO_ALIDROPSHIP_VERSION', '2.0.1' ); 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.