Plugin Directory

Changeset 2380745


Ignore:
Timestamp:
09/14/2020 06:36:51 AM (6 years ago)
Author:
codisto
Message:

http://plugins.svn.wordpress.org/codistoconnect/tags/1.3.53

Location:
codistoconnect/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • codistoconnect/trunk/changelog.txt

    r2343846 r2380745  
    11*** WooCommerce Amazon and eBay Integration ***
     2
     32020-09-14 - version 1.3.53
     4* Fix - stop errors when attempting to sync deleted variation children
     5* Fix - use WooCommerce default currency for order currency
     6* Update - add eBay template sync error logging
     7* Update - WordPress tested up to 5.5.1
     8* Update - WooCommerce tested up to 4.5.1
    29
    3102020-07-21 - version 1.3.52
  • codistoconnect/trunk/connect.php

    r2343846 r2380745  
    66 * Author: Codisto
    77 * Author URI: https://codisto.com/
    8  * Version: 1.3.52
     8 * Version: 1.3.53
    99 * Text Domain: codisto-linq
    1010 * Woo: 3545890:ba4772797f6c2c68c5b8e0b1c7f0c4e2
    1111 * WC requires at least: 2.0.0
    12  * WC tested up to: 4.1.0
     12 * WC tested up to: 4.5.1
    1313 * License: GPLv2
    1414 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1515 *
    1616 * @package Codisto LINQ by Codisto
    17  * @version 1.3.52
     17 * @version 1.3.53
    1818 */
    1919
     
    2222}
    2323
    24 define( 'CODISTOCONNECT_VERSION', '1.3.52' );
     24define( 'CODISTOCONNECT_VERSION', '1.3.53' );
    2525define( 'CODISTOCONNECT_RESELLERKEY', '' );
    2626
     
    506506
    507507                            $child_product = $wc_product->get_child( $child_id );
     508
     509                            if(!is_object($child_product)) {
     510                                continue;
     511                            }
    508512
    509513                            $img = wp_get_attachment_image_src( $child_product->get_image_id(), 'full' );
     
    661665
    662666                            $child_product = $wc_product->get_child( $child_id );
     667
     668                            if(!is_object($child_product)) {
     669                                continue;
     670                            }
    663671
    664672                            $child_product_data = array(
     
    11721180                            $tmpfile = wp_tempnam();
    11731181                            $zipfile = new PclZip( $tmpfile );
    1174                             $zipfile->create( $filestozip , PCLZIP_OPT_REMOVE_PATH, $ebayDesignDir );
    1175 
    1176                             $headers = array(
    1177                                 'Cache-Control' => 'no-cache, must-revalidate',
    1178                                 'Pragma' => 'no-cache',
    1179                                 'Expires' => 'Thu, 01 Jan 1970 00:00:00 GMT',
    1180                                 'X-Codisto-Content-Type' => 'application/zip',
    1181                                 'Content-Type' => 'application/zip, application/octet-stream',
    1182                                 'Content-Disposition' => 'attachment; filename=' . basename( $zipfile ),
    1183                                 'Content-Length' => filesize( $tmpfile )
    1184                             );
    1185 
    1186                             $this->sendHttpHeaders( '200 OK', $headers );
    1187 
    1188                             while( ob_get_level() > 0 ) {
    1189                                 if ( ! @ob_end_clean() )
    1190                                     break;
    1191                             }
    1192 
    1193                             flush();
    1194 
    1195                             readfile( $tmpfile );
     1182                            $zipsuccess = $zipfile->create( $filestozip , PCLZIP_OPT_REMOVE_PATH, $ebayDesignDir );
     1183                            if ($zipsuccess) {
     1184                                $headers = array(
     1185                                    'Cache-Control' => 'no-cache, must-revalidate',
     1186                                    'Pragma' => 'no-cache',
     1187                                    'Expires' => 'Thu, 01 Jan 1970 00:00:00 GMT',
     1188                                    'X-Codisto-Content-Type' => 'application/zip',
     1189                                    'Content-Type' => 'application/zip, application/octet-stream',
     1190                                    'Content-Disposition' => 'attachment; filename=' . basename( $zipfile ),
     1191                                    'Content-Length' => filesize( $tmpfile )
     1192                                );
     1193
     1194                                $this->sendHttpHeaders( '200 OK', $headers );
     1195
     1196                                while( ob_get_level() > 0 ) {
     1197                                    if ( ! @ob_end_clean() )
     1198                                        break;
     1199                                }
     1200
     1201                                flush();
     1202
     1203                                readfile( $tmpfile );
     1204                            } else {
     1205                                $this->sendHttpHeaders(
     1206                                    '200 OK',
     1207                                    array(
     1208                                        'Content-Type' => 'application/json',
     1209                                        'Cache-Control' => 'no-cache, no-store',
     1210                                        'X-Codisto-Content-Type' => 'application/json',
     1211                                        'Expires' => 'Thu, 01 Jan 1970 00:00:00 GMT',
     1212                                        'Pragma' => 'no-cache'
     1213                                    )
     1214                                );
     1215                                echo $this->json_encode( array('error'=>$zipfile->errorInfo(true)) );
     1216                            }
    11961217
    11971218                        }
     
    14771498                        }
    14781499
    1479                         update_post_meta( $order_id, '_order_currency', (string)$ordercontent->transactcurrency );
     1500                        $defaultcurrency = @count( $ordercontent->defaultcurrency ) ? (string)$ordercontent->defaultcurrency : (string)$ordercontent->transactcurrency;
     1501
     1502                        update_post_meta( $order_id, '_order_currency', $defaultcurrency );
    14801503                        update_post_meta( $order_id, '_customer_ip_address', '-' );
    14811504                        delete_post_meta( $order_id, '_prices_include_tax' );
  • codistoconnect/trunk/readme.txt

    r2343846 r2380745  
    33Tags: ecommerce, e-commerce, woocommerce, ebay, amazon, paypal, integration, multi-channel, listings, store, sales, sell, shop
    44Requires at least: 4.0
    5 Tested up to: 5.4.1
    6 Stable tag: 1.3.52
     5Tested up to: 5.5.1
     6Stable tag: 1.3.53
    77License: GPLv2
    88License URI: https://www.gnu.org/licenses/gpl-2.0.txt
     
    9797== Changelog ==
    9898
     99= 1.3.53 - 27/08/2020 =
     100* Fix - stop errors when attempting to sync deleted variation children
     101* Fix - use WooCommerce default currency for order currency
     102* Update - add eBay template sync error logging
     103* Update - WordPress tested up to 5.5.1
     104* Update - WooCommerce tested up to 4.5.1
     105
    99106= 1.3.52 - 21/07/2020 =
    100107* Update - add Amazon order button to order detail
Note: See TracChangeset for help on using the changeset viewer.