Ecwid Ecommerce Shopping Cart - Version 6.0.1

Version Description

Download this release

Release Info

Developer Ecwid
Plugin Icon 128x128 Ecwid Ecommerce Shopping Cart
Version 6.0.1
Comparing to
See all releases

Code changes from version 6.0 to 6.0.1

ecwid-shopping-cart.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ecwid.com?source=wporg
5
  Description: Ecwid is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
6
  Text Domain: ecwid-shopping-cart
7
  Author: Ecwid Team
8
- Version: 6.0
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
@@ -1415,11 +1415,11 @@ function ecwid_get_scriptjs_params( $force_lang = null ) {
1415
  if (!Ecwid_Api_V3::get_token()) {
1416
  $params .= '&data_no_apiv3=1';
1417
  }
1418
-
1419
- require_once ECWID_PLUGIN_DIR . '/includes/importer/importer.php';
1420
- if ( class_exists( 'Ecwid_Importer' ) && get_option( Ecwid_Importer::OPTION_WOO_CATALOG_IMPORTED ) ) {
1421
- $params .= '&data_imported=1';
1422
- }
1423
 
1424
  return $params;
1425
  }
5
  Description: Ecwid is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
6
  Text Domain: ecwid-shopping-cart
7
  Author: Ecwid Team
8
+ Version: 6.0.1
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
1415
  if (!Ecwid_Api_V3::get_token()) {
1416
  $params .= '&data_no_apiv3=1';
1417
  }
1418
+
1419
+ require_once ECWID_PLUGIN_DIR . '/includes/importer/importer.php';
1420
+ if ( class_exists( 'Ecwid_Importer' ) && get_option( Ecwid_Importer::OPTION_WOO_CATALOG_IMPORTED ) ) {
1421
+ $params .= '&data_imported=1';
1422
+ }
1423
 
1424
  return $params;
1425
  }
includes/importer/class-ecwid-importer-task.php CHANGED
@@ -54,7 +54,8 @@ class Ecwid_Importer_Task_Create_Product extends Ecwid_Importer_Task
54
  'showOnFrontpage' => (int) ( get_post_meta( $woo_id, '_featured', true ) == 'yes' )
55
  );
56
 
57
- if ( !empty( get_post_meta( $woo_id, '_sku', true ) ) ) {
 
58
  $data['sku'] = get_post_meta( $woo_id, '_sku', true );
59
  }
60
 
@@ -74,12 +75,10 @@ class Ecwid_Importer_Task_Create_Product extends Ecwid_Importer_Task
74
  $data['categoryIds'][] = $category_id;
75
  }
76
  }
77
- if ( empty( $data['cateogryIds'] ) ) {
78
  unset($data['categoryIds']);
79
  }
80
 
81
- $data['categoryIds'] = array();
82
-
83
  $result = null;
84
  if ( $exporter->get_setting( Ecwid_Importer::SETTING_UPDATE_BY_SKU ) ) {
85
  $products = $api->get_products( array( 'sku' => $data['sku'] ) );
54
  'showOnFrontpage' => (int) ( get_post_meta( $woo_id, '_featured', true ) == 'yes' )
55
  );
56
 
57
+ $meta = get_post_meta( $woo_id, '_sku', true );
58
+ if ( !empty( $meta ) ) {
59
  $data['sku'] = get_post_meta( $woo_id, '_sku', true );
60
  }
61
 
75
  $data['categoryIds'][] = $category_id;
76
  }
77
  }
78
+ if ( empty( $data['categoryIds'] ) ) {
79
  unset($data['categoryIds']);
80
  }
81
 
 
 
82
  $result = null;
83
  if ( $exporter->get_setting( Ecwid_Importer::SETTING_UPDATE_BY_SKU ) ) {
84
  $products = $api->get_products( array( 'sku' => $data['sku'] ) );
lib/ecwid_api_v3.php CHANGED
@@ -386,7 +386,7 @@ class Ecwid_Api_V3
386
  }
387
 
388
  public function get_store_profile() {
389
-
390
  $profile = EcwidPlatform::cache_get( self::PROFILE_CACHE_NAME );
391
 
392
  if ($profile) {
@@ -398,7 +398,7 @@ class Ecwid_Api_V3
398
  $params = array(
399
  'token' => $this->get_token()
400
  );
401
-
402
  $url = $this->build_request_url($url, $params);
403
  $result = EcwidPlatform::fetch_url($url);
404
 
386
  }
387
 
388
  public function get_store_profile() {
389
+
390
  $profile = EcwidPlatform::cache_get( self::PROFILE_CACHE_NAME );
391
 
392
  if ($profile) {
398
  $params = array(
399
  'token' => $this->get_token()
400
  );
401
+
402
  $url = $this->build_request_url($url, $params);
403
  $result = EcwidPlatform::fetch_url($url);
404
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Ecwid
3
  Tags: ecommerce, downloadable products, Facebook ecommerce, online store, paypal, product catalog, shop, shopping cart, store
4
  Requires at least: 3.5
5
  Tested up to: 4.9
6
- Stable tag: 6.0
7
 
8
  Powerful, easy to use ecommerce shopping cart. Bank level PCI DSS Level 1 security. iPhone & Android apps. Superb support. Free plan available.
9
 
3
  Tags: ecommerce, downloadable products, Facebook ecommerce, online store, paypal, product catalog, shop, shopping cart, store
4
  Requires at least: 3.5
5
  Tested up to: 4.9
6
+ Stable tag: 6.0.1
7
 
8
  Powerful, easy to use ecommerce shopping cart. Bank level PCI DSS Level 1 security. iPhone & Android apps. Superb support. Free plan available.
9