Plugin Directory

Changeset 3014502


Ignore:
Timestamp:
12/27/2023 02:56:59 AM (2 years ago)
Author:
thanhtd
Message:

Update

Location:
woo-alidropship/trunk
Files:
4 edited

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
    14/**2.0.0 – 2023.09.25*/
    25– Updated: Move Ali product to new table
  • woo-alidropship/trunk/admin/api.php

    r2968650 r3014502  
    366366            wp_send_json( $result );
    367367        }
     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        }
    368376    }
    369377
     
    495503            }
    496504            $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
    497514            if ( $get_data['status'] == 'success' ) {
    498515                $data = $get_data['data'];
     
    585602        if ( $products && is_array( $products ) ) {
    586603            vi_wad_set_time_limit();
    587             $args      = array(
     604            $args = array(
    588605                'post_type'      => 'vi_wad_draft_product',
    589606                'posts_per_page' => count( $products ),
     
    606623            );
    607624//          $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();
    611628            if ( $the_query->posts ) {
    612629                foreach ( $the_query->posts as $id ) {
     
    13211338            }
    13221339        }
     1340       
    13231341        if ( $state_code ) {
    13241342            $state      = isset( $states[ $state_code ] ) ? $states[ $state_code ] : $state_code;
     
    13881406            }
    13891407        }
     1408
    13901409        $result = array(
    13911410            'name'         => remove_accents( $name ),
     1411            'fname'        => remove_accents( $order->get_shipping_first_name() ),
     1412            'lname'        => remove_accents( $order->get_shipping_last_name() ),
    13921413            'phone'        => VI_WOO_ALIDROPSHIP_DATA::sanitize_phone_number( $phone ),
    13931414            'street'       => remove_accents( $address1 ),
     
    14041425            'fromOrderId'  => $order->get_id()
    14051426        );
     1427
    14061428        if ( $country === 'BR' ) {
    14071429            $result['cpf'] = $order->get_shipping_company();
  • woo-alidropship/trunk/readme.txt

    r2971116 r3014502  
    317317== Changelog ==
    318318
     319/**2.0.1 – 2023.12.27*/
     320- Fixed: Import AliExpress product characteristics and description from Aliexpress.ru
     321
    319322/**2.0.0 – 2023.09.25*/
    320323– Updated: Move Ali product to new table
  • woo-alidropship/trunk/woo-alidropship.php

    r2971116 r3014502  
    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: 2.0.0
     6 * Version: 2.0.1
    77 * Author: VillaTheme(villatheme.com)
    88 * Author URI: http://villatheme.com
     
    1818}
    1919
    20 define( 'VI_WOO_ALIDROPSHIP_VERSION', '2.0.0' );
     20define( 'VI_WOO_ALIDROPSHIP_VERSION', '2.0.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.