Changeset 2380745
- Timestamp:
- 09/14/2020 06:36:51 AM (6 years ago)
- Location:
- codistoconnect/trunk
- Files:
-
- 3 edited
-
changelog.txt (modified) (1 diff)
-
connect.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
codistoconnect/trunk/changelog.txt
r2343846 r2380745 1 1 *** WooCommerce Amazon and eBay Integration *** 2 3 2020-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 2 9 3 10 2020-07-21 - version 1.3.52 -
codistoconnect/trunk/connect.php
r2343846 r2380745 6 6 * Author: Codisto 7 7 * Author URI: https://codisto.com/ 8 * Version: 1.3.5 28 * Version: 1.3.53 9 9 * Text Domain: codisto-linq 10 10 * Woo: 3545890:ba4772797f6c2c68c5b8e0b1c7f0c4e2 11 11 * WC requires at least: 2.0.0 12 * WC tested up to: 4. 1.012 * WC tested up to: 4.5.1 13 13 * License: GPLv2 14 14 * License URI: http://www.gnu.org/licenses/gpl-2.0.html 15 15 * 16 16 * @package Codisto LINQ by Codisto 17 * @version 1.3.5 217 * @version 1.3.53 18 18 */ 19 19 … … 22 22 } 23 23 24 define( 'CODISTOCONNECT_VERSION', '1.3.5 2' );24 define( 'CODISTOCONNECT_VERSION', '1.3.53' ); 25 25 define( 'CODISTOCONNECT_RESELLERKEY', '' ); 26 26 … … 506 506 507 507 $child_product = $wc_product->get_child( $child_id ); 508 509 if(!is_object($child_product)) { 510 continue; 511 } 508 512 509 513 $img = wp_get_attachment_image_src( $child_product->get_image_id(), 'full' ); … … 661 665 662 666 $child_product = $wc_product->get_child( $child_id ); 667 668 if(!is_object($child_product)) { 669 continue; 670 } 663 671 664 672 $child_product_data = array( … … 1172 1180 $tmpfile = wp_tempnam(); 1173 1181 $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 } 1196 1217 1197 1218 } … … 1477 1498 } 1478 1499 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 ); 1480 1503 update_post_meta( $order_id, '_customer_ip_address', '-' ); 1481 1504 delete_post_meta( $order_id, '_prices_include_tax' ); -
codistoconnect/trunk/readme.txt
r2343846 r2380745 3 3 Tags: ecommerce, e-commerce, woocommerce, ebay, amazon, paypal, integration, multi-channel, listings, store, sales, sell, shop 4 4 Requires at least: 4.0 5 Tested up to: 5. 4.16 Stable tag: 1.3.5 25 Tested up to: 5.5.1 6 Stable tag: 1.3.53 7 7 License: GPLv2 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.txt … … 97 97 == Changelog == 98 98 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 99 106 = 1.3.52 - 21/07/2020 = 100 107 * Update - add Amazon order button to order detail
Note: See TracChangeset
for help on using the changeset viewer.