Ecwid Ecommerce Shopping Cart - Version 5.7.1

Version Description

  • Fix for the The requested product is not available error message appeared in the version 5.7. The issue was caused by the new Default product feature. Some users found that error message when adding their store to a new page in the plugin and specifying the default category for that page. Everything should work fine now.
Download this release

Release Info

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

Code changes from version 5.7 to 5.7.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: 5.7
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
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: 5.7.1
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
includes/class-ecwid-config.php CHANGED
@@ -92,12 +92,14 @@ class Ecwid_Config {
92
 
93
  public static function load_from_ini() {
94
 
95
- if (!file_exists(ECWID_PLUGIN_DIR . 'config.ini')) {
 
 
96
  return;
97
  }
98
 
99
- $result = @parse_ini_file(ECWID_PLUGIN_DIR . 'config.ini');
100
-
101
  if ($result === false) {
102
  return;
103
  }
@@ -109,13 +111,13 @@ class Ecwid_Config {
109
  self::KB_URL => 'kb_url',
110
  self::REGISTRATION_URL => 'registration_url',
111
  self::CHANNEL_ID => 'channel_id',
112
- self::OAUTH_APPID => 'oauth_appid',
113
- self::OAUTH_APPSECRET => 'oauth_appsecret',
114
  self::OAUTH_TOKEN_URL => 'oauth_token_url',
115
  self::OAUTH_AUTH_URL => 'oauth_authorize_url',
116
  );
117
 
118
  $common_config = array(
 
 
119
  self::TOKEN => 'oauth_token',
120
  self::STORE_ID => 'store_id',
121
  self::API_DOMAIN => 'api_domain',
@@ -126,7 +128,7 @@ class Ecwid_Config {
126
  $empty_is_allowed = array(
127
  self::REGISTRATION_URL
128
  );
129
-
130
  $is_wl_enabled = @$result['wl_mode'];
131
 
132
  foreach ( $wl_config as $name => $ini_name ) {
92
 
93
  public static function load_from_ini() {
94
 
95
+ $filename = apply_filters('ecwid_config_ini_path', ECWID_PLUGIN_DIR . 'config.ini');
96
+
97
+ if (!file_exists($filename)) {
98
  return;
99
  }
100
 
101
+ $result = @parse_ini_file($filename);
102
+
103
  if ($result === false) {
104
  return;
105
  }
111
  self::KB_URL => 'kb_url',
112
  self::REGISTRATION_URL => 'registration_url',
113
  self::CHANNEL_ID => 'channel_id',
 
 
114
  self::OAUTH_TOKEN_URL => 'oauth_token_url',
115
  self::OAUTH_AUTH_URL => 'oauth_authorize_url',
116
  );
117
 
118
  $common_config = array(
119
+ self::OAUTH_APPID => 'oauth_appid',
120
+ self::OAUTH_APPSECRET => 'oauth_appsecret',
121
  self::TOKEN => 'oauth_token',
122
  self::STORE_ID => 'store_id',
123
  self::API_DOMAIN => 'api_domain',
128
  $empty_is_allowed = array(
129
  self::REGISTRATION_URL
130
  );
131
+
132
  $is_wl_enabled = @$result['wl_mode'];
133
 
134
  foreach ( $wl_config as $name => $ini_name ) {
js/store-editor-page.js CHANGED
@@ -224,7 +224,7 @@ jQuery(document).ready(function() {
224
  result.list = getNumber('list_rows', defaults.list_rows);
225
  result.table = getNumber('table_rows', defaults.table_rows);
226
  result.default_category_id = getNumber('default_category_id', defaults.default_category_id);
227
- result.default_product_id = getNumber('default_category_id', defaults.default_product_id);
228
  result.category_view = getString('category_view', ['list', 'grid', 'table'], defaults.category_view);
229
  result.search_view = getString('search_view', ['list', 'grid', 'table'], defaults.search_view);
230
  result.minicart_layout = defaults.minicart_layout;
224
  result.list = getNumber('list_rows', defaults.list_rows);
225
  result.table = getNumber('table_rows', defaults.table_rows);
226
  result.default_category_id = getNumber('default_category_id', defaults.default_category_id);
227
+ result.default_product_id = getNumber('default_product_id', defaults.default_product_id);
228
  result.category_view = getString('category_view', ['list', 'grid', 'table'], defaults.category_view);
229
  result.search_view = getString('search_view', ['list', 'grid', 'table'], defaults.search_view);
230
  result.minicart_layout = defaults.minicart_layout;
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: 5.7
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
 
@@ -149,6 +149,9 @@ You can use Ecwid’s built-in import tools to copy your store products from any
149
  * [Ecwid eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
150
 
151
  == Changelog ==
 
 
 
152
  = 5.7 =
153
  - **New feature in the [ecwid] shortcode — it’s now possible to specify the product that will be displayed by default when the store page is opened.** If you want to feature some product from your online store on one of the site pages or if you sell a single product, you can specify it in the new “default_product_id” parameter in the ecwid shortcode to make it opened by default.
154
  - **Speedup in the store navigation for your customers.** We improved Ecwid e-commerce sidebar widgets and menus in the storefront, they now work without page reload when a visitor is already on the store page. After the customer opens your store page, all further browsing will be super fast, including switching between products, opening categories, visiting recently viewed products etc.
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: 5.7.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
 
149
  * [Ecwid eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
150
 
151
  == Changelog ==
152
+ = 5.7.1 =
153
+ - **Fix for the “The requested product is not available” error message appeared in the version 5.7**. The issue was caused by the new “Default product” feature. Some users found that error message when adding their store to a new page in the plugin and specifying the default category for that page. Everything should work fine now.
154
+
155
  = 5.7 =
156
  - **New feature in the [ecwid] shortcode — it’s now possible to specify the product that will be displayed by default when the store page is opened.** If you want to feature some product from your online store on one of the site pages or if you sell a single product, you can specify it in the new “default_product_id” parameter in the ecwid shortcode to make it opened by default.
157
  - **Speedup in the store navigation for your customers.** We improved Ecwid e-commerce sidebar widgets and menus in the storefront, they now work without page reload when a visitor is already on the store page. After the customer opens your store page, all further browsing will be super fast, including switching between products, opening categories, visiting recently viewed products etc.