Plugin Directory

Changeset 3208487


Ignore:
Timestamp:
12/16/2024 11:04:53 AM (15 months ago)
Author:
ali2woo
Message:

new plugin release

Location:
ali2woo-lite/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • ali2woo-lite/trunk/alinext-lite.php

    r3201757 r3208487  
    66Text Domain: ali2woo
    77Domain Path: /languages
    8 Version: 3.4.8
     8Version: 3.4.9
    99Author: Dropshipping Guru
    1010Author URI: https://ali2woo.com/dropshipping-plugin/?utm_source=lite&utm_medium=author&utm_campaign=alinext-lite
    1111License: GPLv3
    1212Requires at least: 5.9
    13 Tested up to: 6.7
     13Tested up to: 6.7.2
    1414WC tested up to: 9.5
    1515WC requires at least: 5.0
  • ali2woo-lite/trunk/changelog.txt

    r3201757 r3208487  
    317317
    3183183.4.8
    319 * Fix xss vulnerability in api keys settings page
     319* Fix xss vulnerability in API keys settings page
    320320* Add A2W_JOB_MEMORY_LIMIT constant allowing to set max RAM size for background job
    321321* Improve get access token feature (fix undefined alert)
     
    325325* Fix minor bugs and code refactor
    326326
     3273.4.9
     328* Add WordPress 6.7.2 compatibility
     329* Add A2W_PRODUCT_SEARCH_LIMIT and A2W_STORE_PRODUCT_SEARCH_LIMIT (max 40 items per page)
     330* Fix bug in a global message service module
     331* Fix minor bugs and code refactor
     332
     333
  • ali2woo-lite/trunk/includes/classes/controller/SearchPageController.php

    r3191207 r3208487  
    6767        $page = isset($_GET['cur_page']) && intval($_GET['cur_page']) ? intval($_GET['cur_page']) : 1;
    6868        $per_page = 20;
     69        if (a2wl_check_defined('A2WL_PRODUCT_SEARCH_LIMIT')) {
     70            $per_page = intval(A2WL_PRODUCT_SEARCH_LIMIT);
     71        }
    6972
    7073        if (!empty($_REQUEST['a2wl_search'])) {
  • ali2woo-lite/trunk/includes/classes/controller/SearchStoreProductsPageController.php

    r3191207 r3208487  
    7070        $page = isset($_GET['cur_page']) && intval($_GET['cur_page']) ? intval($_GET['cur_page']) : 1;
    7171        $per_page = 20;
     72        if (a2wl_check_defined('A2WL_STORE_PRODUCT_SEARCH_LIMIT')) {
     73            $per_page = intval(A2WL_STORE_PRODUCT_SEARCH_LIMIT);
     74        }
    7275
    7376        if (!empty($_REQUEST['a2wl_search'])) {
  • ali2woo-lite/trunk/includes/classes/model/Aliexpress.php

    r3129531 r3208487  
    4242            $default_status = get_setting('default_product_status');
    4343
    44             $tmp_urls = [];
    45 
    4644            foreach ($result['products'] as &$product) {
    47                 $product['post_id'] = $wpdb->get_var($wpdb->prepare("SELECT post_id FROM $wpdb->postmeta WHERE meta_key='_a2w_external_id' AND meta_value=%s LIMIT 1", $product['id']));
     45                $query = $wpdb->prepare(
     46                    "SELECT post_id FROM $wpdb->postmeta WHERE meta_key='_a2w_external_id' AND meta_value=%s LIMIT 1",
     47                    $product['id']
     48                );
     49                $product['post_id'] = $wpdb->get_var($query);
    4850                $product['import_id'] = in_array($product['id'], $products_in_import) ? $product['id'] : 0;
    4951                $product['product_type'] = $default_type;
     
    5456                    $product['shipping_to_country'] = $filter['country'];
    5557                }
    56 
    57                 $tmp_urls[] = $product['url'];
    58             }
    59 
    60             if ($this->account->custom_account) {
    61                 try {
    62                     $promotionUrls = $this->get_affiliate_urls($tmp_urls);
    63                     if (!empty($promotionUrls) && is_array($promotionUrls)) {
    64                         foreach ($result["products"] as $i => $product) {
    65                             foreach ($promotionUrls as $pu) {
    66                                 if ($pu['url'] == $product['url']) {
    67                                     $result["products"][$i]['affiliate_url'] = $pu['promotionUrl'];
    68                                     break;
    69                                 }
    70                             }
    71                         }
    72                     }
    73                 } catch (Throwable $e) {
    74                     a2wl_print_throwable($e);
    75                     foreach ($result['products'] as &$product) {
    76                         $product['affiliate_url'] = $product['url'];
    77                     }
    78                 }
    7958            }
    8059        }
     
    9675            $default_status = get_setting('default_product_status');
    9776
    98             $tmp_urls = [];
    99 
    10077            foreach ($result['products'] as &$product) {
    101                 $product['post_id'] = $wpdb->get_var($wpdb->prepare("SELECT post_id FROM $wpdb->postmeta WHERE meta_key='_a2w_external_id' AND meta_value=%s LIMIT 1", $product['id']));
     78                $query = $wpdb->prepare(
     79                    "SELECT post_id FROM $wpdb->postmeta WHERE meta_key='_a2w_external_id' AND meta_value=%s LIMIT 1",
     80                    $product['id']
     81                );
     82                $product['post_id'] = $wpdb->get_var($query);
    10283                $product['import_id'] = in_array($product['id'], $products_in_import) ? $product['id'] : 0;
    10384                $product['product_type'] = $default_type;
     
    10788                if (isset($filter['country']) && $filter['country']) {
    10889                    $product['shipping_to_country'] = $filter['country'];
    109                 }
    110 
    111                 $tmp_urls[] = $product['url'];
    112             }
    113 
    114             if ($this->account->custom_account) {
    115                 try {
    116                     $promotionUrls = $this->get_affiliate_urls($tmp_urls);
    117                     if (!empty($promotionUrls) && is_array($promotionUrls)) {
    118                         foreach ($result["products"] as $i => $product) {
    119                             foreach ($promotionUrls as $pu) {
    120                                 if ($pu['url'] == $product['url']) {
    121                                     $result["products"][$i]['affiliate_url'] = $pu['promotionUrl'];
    122                                     break;
    123                                 }
    124                             }
    125                         }
    126                     }
    127                 } catch (Throwable $e) {
    128                     a2wl_print_throwable($e);
    129                     foreach ($result['products'] as &$product) {
    130                         $product['affiliate_url'] = $product['url'];
    131                     }
    132                 } catch (\Exception $e) {
    133                     a2wl_print_throwable($e);
    134                     foreach ($result['products'] as &$product) {
    135                         $product['affiliate_url'] = $product['url'];
    136                     }
    13790                }
    13891            }
  • ali2woo-lite/trunk/includes/classes/model/AliexpressAccount.php

    r3107543 r3208487  
    99namespace AliNext_Lite;;
    1010
     11use Exception;
    1112use IopClient;
     13use IopRequest;
    1214
    1315class AliexpressAccount extends AbstractAccount  {
     
    5052                $sourceValues = implode(',', array_keys($nHrefs));
    5153
    52                 $request = new \IopRequest('aliexpress.affiliate.link.generate');
     54                $request = new IopRequest('aliexpress.affiliate.link.generate');
    5355                $request->addApiParam('promotion_link_type','2');
    54                 $request->addApiParam('source_values',$sourceValues);
     56                $request->addApiParam('source_values', $sourceValues);
    5557                $request->addApiParam('tracking_id', $account['trackingid']);
    5658
     
    7274
    7375                    if ($responseResult->resp_code == 200){
    74                         foreach($responseResult->result->promotion_links->promotion_link as $pl){
    75                             if(isset($pl->promotion_link) && isset($nHrefs[$pl->source_value])){
     76                        foreach ($responseResult->result->promotion_links->promotion_link as $pl) {
     77                            if (isset($pl->promotion_link) && isset($nHrefs[$pl->source_value])) {
    7678                                $result[] = [
    77                                     'url'=>$nHrefs[$pl->source_value],
    78                                     'promotionUrl'=>$pl->promotion_link
     79                                    'url' => $nHrefs[$pl->source_value],
     80                                    'promotionUrl' => $pl->promotion_link
    7981                                ];
    8082                            }
     
    8890                    }
    8991                }
    90                 catch (\Exception) {
     92                catch (Exception) {
    9193                    //such exception is logged by lib itself
    9294                }
  • ali2woo-lite/trunk/includes/classes/service/GlobalSystemMessageService.php

    r3191207 r3208487  
    6363            if (!empty($message['type']) && !empty($message['message'])) {
    6464                if ($message['type'] === self::MESSAGE_TYPE_SUCCESS) {
    65                     $this->addNewMessage(self::MESSAGE_TYPE_SUCCESS, $message);
     65                    $this->addNewMessage(self::MESSAGE_TYPE_SUCCESS, $message['message']);
    6666                }
    6767                elseif ($message['type'] === self::MESSAGE_TYPE_ERROR) {
    68                     $this->addNewMessage(self::MESSAGE_TYPE_ERROR, $message);
     68                    $this->addNewMessage(self::MESSAGE_TYPE_ERROR, $message['message']);
    6969                }
    7070            }
  • ali2woo-lite/trunk/readme.txt

    r3201757 r3208487  
    33Tags: aliexpress dropshipping, woocommerce dropshipping, dropship
    44Requires at least: 5.9
    5 Tested up to: 6.7
     5Tested up to: 6.7.2
    66License: GPLv3
    77License URI: http://www.gnu.org/licenses/gpl.html
     
    313313
    314314== Changelog ==
     315= 3.4.9 - 2024.12.16 =
     316* Add WordPress 6.7.2 compatibility
     317* Add A2W_PRODUCT_SEARCH_LIMIT and A2W_STORE_PRODUCT_SEARCH_LIMIT (max 40 items per page)
     318* Fix bug in a global message service module
     319* Fix minor bugs and code refactor
     320
    315321= 3.4.8 - 2024.12.03 =
    316322* Fix xss vulnerability in api keys settings page
     
    352358* Add compatibility with WooCommerce 9.2.* 
    353359
    354 = 3.4.0 - 2024.08.01 =
    355 * Enhanced pricing rules module: ability to add a category to pricing rule (if category field is empty, then rule will apply to any category);
    356 * Enhanced pricing rules module: ability to create Pricing rule sets. Set is a group of pricing rules and settings, you can create few sets and switch between then during sale. Don't forget to use Apply pricing to exiting products feature after you switch to another pricing rule set;
    357 * Fix image editor bug;
    358 * Refactor legacy code and fix minor bugs;
    359 
    360 = 3.3.9 - 2024.07.08 =
    361 * Enhanced plugin security by adding WordPress nonce to all Ajax methods
    362 * Improved plugin security by checking user role in all plugin methods;
    363 * Enhanced plugin security by escaping HTML input in template views;
    364 * Improved plugin security by escaping SQL queries;
    365 * Enhanced order fulfillment module to synchronize product shipping information when refreshing in the fulfillment popup;
    366 * Fixed minor bugs and improve code style;
    367 
    368 = 3.3.5 - 2024.06.13 =
    369 * Refactor import products from CSV.
    370 * Enhance order fulfillment module; Now order is placed with country currency.
    371 * Fix minor bugs.
    372 
    373 = 3.3.3 - 2024.05.28 =
    374 * Fix plugin activation bug;
    375 
    376 = 3.3.2 - 2024.05.27 =
    377 * Update background process library, add namespaces for the library;
    378 * Fix bug with product last-update date;
    379 * Add cancel button for all background processed;
    380 * Add php max_execution_time check to system info page
    381 * Fix minor bug, old code base refactor;
    382 
    383 = 3.3.0 - 2024.05.20 =
    384 * Improve bulk price application script; Now you can close or refresh page when start the process;
    385 * Add status bar for all backroud processes in order to make it more clear;
    386 * Fix bug with product descriprtion images;
    387 * Fix minor bug, old code base refactor;
    388 
    389 = 3.2.8 - 2024.05.03 =
    390 * fix function saving images in image editor tool
    391 * fix pricing rules bug in plugin backend
    392 * fix product description loading
    393 * update some plugin dependecies
    394 * fix minor bugs
    395 
    396 = 3.2.7 - 2024.04.10 =
    397 * add image type file check to built-in image editor
    398 * add feature to load AliExpress category tree for imported product
    399 * replace || with OR in sql queries as this format is  deprectated
    400 * fix minor bugs
    401 
    402 = 3.2.6 - 2024.04.04 =
    403 * fix built-in image editor
    404 * fix chrome extension connection bug
    405 * fix is-not-applied price bug
    406 * fix minor bugs
    407 
    408360== Upgrade Notice ==
    409361
Note: See TracChangeset for help on using the changeset viewer.