Plugin Directory

Changeset 2877222


Ignore:
Timestamp:
03/09/2023 01:43:43 PM (3 years ago)
Author:
extendago
Message:

Version 1.2.9

Location:
extendago-wp-connection/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extendago-wp-connection/trunk/extendago-wp-connection.php

    r2868646 r2877222  
    44Plugin URI:  http://www.arture.nl/extendago
    55Description: The Wordpress plugin for connecting Woocommerce with Extendago / Wallmob. Manage your products inside Extendago and let our connection do the magic.
    6 Version:     1.2.8
     6Version:     1.2.9
    77Author:      Arture B.V.
    88Author URI:  https://arture.nl/
  • extendago-wp-connection/trunk/includes/cronjob/class-extendago-cronjob-functions.php

    r2868646 r2877222  
    657657                                'type_id'               => '523',
    658658                                'retail_price'          => number_format(((float)$product['price'] * 100), 0, '.', ''), // price in cents
    659                                 //'cost_price'            => '0',
    660659                                'product_id'            => $product['id'],
    661660                                'price_region_id'       => $price_region_id,
     
    691690                                            'type_id'               => '523',
    692691                                            'retail_price'          => number_format(((float)$variation->retail_price * 100), 0, '.', ''), // price in cents
    693                                             //'cost_price'            => '0',
    694692                                            'product_id'            => $product['id'],
    695693                                            'price_region_id'       => $price_region_id,
     
    710708                                    'product_data' => array(
    711709                                        array(
     710                                            'id'                    => 'product_data-'.$variation->id,
    712711                                            'type_id'               => '523',
    713712                                            'retail_price'          => number_format(((float)$variation->retail_price * 100), 0, '.', ''), // price in cents
    714                                             //'cost_price'            => '0',
    715713                                            'product_id'            => $product['id'],
    716714                                            'product_variant_id'    => $variation->id,
     
    736734                        }
    737735                        else{
    738 
    739 
    740 //                            echo '<pre>';
    741 //                            print_r('PATCH');
    742 //                            echo '<pre>';
    743 //                            echo '<pre>';
    744 //                            print_r($ExtendagoProductJSON);
    745 //                            echo '<pre>';
    746 
    747736                            $ProductResponse = $Extendago->CurlRequest('/products/'.$product['id'], 'PATCH', $ExtendagoProductJSON, false, true);
    748737                        }
    749 
    750 //                        echo '<pre>';
    751 //                        print_r($ProductResponse);
    752 //                        echo '<pre>';
    753 //                        exit;
    754738
    755739                        if( empty($ProductResponse) || isset($ProductResponse['error']) ){
     
    814798                                $Response = $Extendago->CurlRequest('/stock_values?filter-product_variant_id='.$product_variant['id'], 'GET');
    815799                                $stock_value = array(
     800                                    'id'                    => 'stock_value-'.$product_variant['id'],
    816801                                    'quantity'              => $variation->stock,
    817802                                    'product_id'            => $product['id'],
     
    831816                            $Response = $Extendago->CurlRequest('/stock_values?filter-product_id='.$product['id'], 'GET');
    832817                            $stock_value = array(
     818                                'id'                    => 'stock_value-'.$product['id'],
    833819                                'quantity'              => $product['quantity'],
    834820                                'product_id'            => $product['id'],
  • extendago-wp-connection/trunk/readme.txt

    r2868646 r2877222  
    55Requires at least: 6.0
    66Tested up to: 6.1.1
    7 Stable tag: 1.2.8
     7Stable tag: 1.2.9
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    3030
    3131== Changelog ==
     32
     33= 1.2.9 =
     34* Bugfix for updating products and existing cost_price inside Wallmob
    3235
    3336= 1.2.8 =
Note: See TracChangeset for help on using the changeset viewer.