Plugin Directory

Changeset 2142753


Ignore:
Timestamp:
08/20/2019 06:45:25 PM (7 years ago)
Author:
casepress
Message:

update 5.6

Location:
wooms/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wooms/trunk/readme.txt

    r2130329 r2142753  
    7676== Changelog ==
    7777
     78
     79= 5.6 =
     80* исправлена ошибка параметров типа product.id https://github.com/wpcraft-ru/wooms/issues/177
     81* XT: исправлена ошибка синка остатков
     82
    7883= 5.5 =
    7984* XT: добавлена опция для передачи доп данных в примечании к Заказу https://github.com/wpcraft-ru/wooms/issues/175
  • wooms/trunk/wooms.php

    r2130329 r2142753  
    1616 * License: GPLv2 or later
    1717 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
    18  * Version: 5.5
    19  * WooMS XT Latest: 5.5
     18 * Version: 5.6
     19 * WooMS XT Latest: 5.6
    2020 */
    2121
     
    104104   */
    105105  public static function xt_plugin_update_message( $data, $response ) {
    106 
    107106
    108107    $data = get_file_data( __FILE__, array('xt_version' => 'WooMS XT Latest') );
     
    218217  }
    219218
     219  $url = wooms_fix_url($url);
     220
    220221  if ( isset( $data ) && ! empty( $data ) && 'GET' == $type ) {
    221222    $type = 'POST';
     
    291292  }
    292293}
     294
     295/**
     296 * fix bug with url
     297 *
     298 * @link https://github.com/wpcraft-ru/wooms/issues/177
     299 */
     300function wooms_fix_url($url = ''){
     301    $url = str_replace('product_id', 'product.id', $url);
     302    $url = str_replace('productid', 'product.id', $url);
     303    $url = str_replace('store_id', 'store.id', $url);
     304    $url = str_replace('storeid', 'store.id', $url);
     305    $url = str_replace('consignment_id', 'consignment.id', $url);
     306    $url = str_replace('variant_id', 'variant.id', $url);
     307    $url = str_replace('productFolder_id', 'productFolder.id', $url);
     308    return $url;
     309}
Note: See TracChangeset for help on using the changeset viewer.