Plugin Directory

Changeset 3085804


Ignore:
Timestamp:
05/13/2024 12:32:48 PM (22 months ago)
Author:
extendago
Message:

Version 1.5.1

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

Legend:

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

    r3058414 r3085804  
    44Plugin URI:  http://www.arture.nl/extendago
    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.5.0
     6Version:     1.5.1
    77Author:      Arture B.V.
    88Author URI:  https://arture.nl/
  • extendago-wp-connection/trunk/includes/api/class-extendago-web-api-functions.php

    r3058414 r3085804  
    172172            }
    173173
    174             //CHECK OR PRODUCT HAS THE TRASH STATUS. IF SO, UPDATE THE STATUS TO THE INITIAL STATUS
    175             if (get_post_status($post_id) == 'trash') {
     174            // CHECK IF PRODUCT HAS THE TRASH STATUS. IF SO, UPDATE THE STATUS TO THE INITIAL STATUS
     175            if (get_post_status($post_id) == 'trash' || get_post_status($post_id) == 'draft' ) {
    176176                $extendago_keep_product_status = get_option('extendago_keep_product_status');
    177177                if( !isset($extendago_keep_product_status) || !$extendago_keep_product_status) {
  • extendago-wp-connection/trunk/includes/api/class-extendago-web-api.php

    r3019318 r3085804  
    113113            $result = json_decode($result, true);
    114114
    115             update_option('extendago_access_token', $result['access_token']);
    116 
    117             return $result['access_token'];
     115            if( isset($result['access_token']) ){
     116                update_option('extendago_access_token', $result['access_token']);
     117
     118                return $result['access_token'];
     119            }
     120            else{
     121                return NULL;
     122            }
    118123        }
    119124
  • extendago-wp-connection/trunk/includes/cronjob/class-extendago-cronjob-functions.php

    r3058414 r3085804  
    839839
    840840
     841                                $retail_price = $variation->retail_price;
     842                                if( isset($variation->sale_price) && !empty($variation->sale_price) ){
     843                                    $retail_price = $variation->sale_price;
     844                                }
     845
    841846                                // First variation
    842847                                if( $i == 1 ){
     
    845850                                            'id'                    => $product['id'],
    846851                                            'type_id'               => '523',
    847                                             'retail_price'          => number_format(((float)$variation->retail_price * 100), 0, '.', ''), // price in cents
     852                                            'retail_price'          => number_format(((float)$retail_price * 100), 0, '.', ''), // price in cents
    848853                                            'cost_price'            => 0,
    849854                                            'product_id'            => $product['id'],
     
    869874                                            'id'                    => 'product_data-'.$variation->id,
    870875                                            'type_id'               => '523',
    871                                             'retail_price'          => number_format(((float)$variation->retail_price * 100), 0, '.', ''), // price in cents
     876                                            'retail_price'          => number_format(((float)$retail_price * 100), 0, '.', ''), // price in cents
    872877                                            'cost_price'            => 0,
    873878                                            'product_id'            => $product['id'],
  • extendago-wp-connection/trunk/includes/woocommerce/class-extendago-woocommerce-functions.php

    r3043693 r3085804  
    839839                    $order_line_item['vat_amount']              = (int)number_format($item_data['total_tax'], 2, '', '');
    840840                    $order_line_item['retail_price']            = (int)number_format($item_data['total'] + $item_data['total_tax'], 2, '', '');
     841                    $order_line_item['total_line_amount']       = (int)number_format($item_data['total'] + $item_data['total_tax'], 2, '', '');
    841842
    842843                    $vat_rate = 0;
  • extendago-wp-connection/trunk/readme.txt

    r3058414 r3085804  
    11=== Extendago Woocommerce ===
    2 Contributors: Arture B.V.
     2Contributors: ExtendaGO
    33Donate link: https://www.arture.nl/abonnementen/
    44Tags: extendago, extenda, woocommerce, arture, POS,
    55Requires at least: 6.0
    66Tested up to: 6.4.3
    7 Stable tag: 1.5.0
     7Stable tag: 1.5.1
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    1212== Description ==
    1313
    14 Extenda GO Connect makes it simple. No duplication of work, but a central place for your product management. Manage your products, stock and discounts at one place and our plugin will do the magic. Order received in Woocommerce? Our plugin will create the order in ExtendaGO and also handle the stock events.
     14Extenda GO Connect, developed and maintained by Arture, makes it simple. No duplication of work, but a central place for your product management. Manage your products, stock and discounts at one place and our plugin will do the magic. Order received in Woocommerce? Our plugin will create the order in ExtendaGO and also handle the stock events.
    1515
    1616In our plugin, various settings offer the possibility to set the processing as desired.
     
    3131== Changelog ==
    3232
     33= 1.5.1 =
     34* Change for sale price processing to Extenda GO
     35
    3336= 1.5.0 =
    3437* Bugfix for cost price with dot format
Note: See TracChangeset for help on using the changeset viewer.