Plugin Directory

Changeset 3309632


Ignore:
Timestamp:
06/11/2025 08:24:24 AM (9 months ago)
Author:
extendago
Message:

Version 1.6.6

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

Legend:

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

    r3264425 r3309632  
    44Plugin URI:  https://extendago-connect.com/
    55Description: The Wordpress plugin for connecting Woocommerce with Extenda GO / Wallmob. You can manage your products inside Extenda GO or make your webshop as leading foor product manangement. You Stock changes will be two-way binding.
    6 Version:     1.6.5
     6Version:     1.6.6
    77Requires Plugins: woocommerce
    88Author:      Arture B.V.
  • extendago-wp-connection/trunk/includes/api/class-extendago-web-api-functions.php

    r3262736 r3309632  
    214214                    $Product->set_date_on_sale_to(date('Y-m-d', $product['discount_date_until']));
    215215                }
     216            }
     217            else{
     218                $Product->set_date_on_sale_from('');
     219                $Product->set_date_on_sale_to('');
    216220            }
    217221        }
  • extendago-wp-connection/trunk/includes/cronjob/class-extendago-cronjob-functions.php

    r3262736 r3309632  
    646646                        // Check if product is processed
    647647                        if( $response == 'true' ) {
    648                             $products->$key->processed = 'true';
     648                            if ( is_object($products) ) {
     649                                if ( ! isset($products->$key) || ! is_object($products->$key) ) {
     650                                    $products->$key = new stdClass();
     651                                }
     652                                $products->$key->processed = 'true';
     653                            } elseif ( is_array($products) ) {
     654                                if ( ! isset($products[$key]) || ! is_array($products[$key]) ) {
     655                                    $products[$key] = [];
     656                                }
     657                                $products[$key]['processed'] = 'true';
     658                            }
     659
    649660                            file_put_contents( $directory . '/' . $file, json_encode($products) );
    650661
     
    10731084
    10741085                        if( empty($ProductResponse) || isset($ProductResponse['error']) ){
    1075                             $this->logging->log_file_write('Error | Export productResponse 1: ' . $ProductResponse['error']);
     1086                            $this->logging->log_file_write('Error | Export '.$product['id'].' productResponse 1: ' . $ProductResponse['error']);
    10761087                        }
    10771088
     
    10921103
    10931104                                    if (empty($ProductResponse) || isset($ProductResponse['error'])) {
    1094                                         $this->logging->log_file_write('EXPORT | ProductResponse 2: ' . $ProductResponse['error']);
     1105                                        $this->logging->log_file_write('EXPORT | Export '.$product['id'].' productResponse 2: ' . $ProductResponse['error']);
    10951106                                    }
    10961107                                }
    10971108                            }
    10981109                            else{
    1099                                 $this->logging->log_file_write('Error | Export productResponse 3: ' . $ProductResponse['error']);
     1110                                $this->logging->log_file_write('Error | Export '.$product['id'].' productResponse 3: ' . $ProductResponse['error']);
    11001111                            }
    11011112                        }
  • extendago-wp-connection/trunk/readme.txt

    r3264425 r3309632  
    44Tags: extendago, extenda, woocommerce, arture, POS,
    55Requires at least: 6.0
    6 Tested up to: 6.7.1
    7 Stable tag: 1.6.5
     6Tested up to: 6.8.1
     7Stable tag: 1.6.6
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    3131== Changelog =
    3232
     33= 1.6.6 =
     34* Bugfix for product discount batches
     35
    3336= 1.6.5 =
    3437* Improved and secure log file download function
Note: See TracChangeset for help on using the changeset viewer.