Version Description
- Dec 7, 2022 =
- Several fixes and improvements for the recently released Speedup of storefront loading feature. In the coming week, we will gradually enable this feature for all of our users.
Download this release
Release Info
Developer | Ecwid |
Plugin | Ecwid Ecommerce Shopping Cart |
Version | 6.11.1 |
Comparing to | |
See all releases |
Code changes from version 6.11 to 6.11.1
ecwid-shopping-cart.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ecwid.com?partner=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 Ecommerce
|
8 |
-
Version: 6.11
|
9 |
Author URI: https://ecwid.to/ecwid-site
|
10 |
License: GPLv2 or later
|
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 Ecommerce
|
8 |
+
Version: 6.11.1
|
9 |
Author URI: https://ecwid.to/ecwid-site
|
10 |
License: GPLv2 or later
|
11 |
*/
|
includes/class-ec-store-defer-init.php
CHANGED
@@ -20,7 +20,7 @@ class Ec_Store_Defer_Init {
|
|
20 |
|
21 |
$default_value = self::OPTION_VALUE_DISABLED;
|
22 |
|
23 |
-
$is_needed_store_id = ! ecwid_is_demo_store() && get_ecwid_store_id() %
|
24 |
$is_auto = empty( get_option( self::OPTION_ENABLED ) );
|
25 |
|
26 |
if ( $is_needed_store_id && $is_auto ) {
|
20 |
|
21 |
$default_value = self::OPTION_VALUE_DISABLED;
|
22 |
|
23 |
+
$is_needed_store_id = ! ecwid_is_demo_store() && get_ecwid_store_id() % 2 === 0;
|
24 |
$is_auto = empty( get_option( self::OPTION_ENABLED ) );
|
25 |
|
26 |
if ( $is_needed_store_id && $is_auto ) {
|
includes/class-ecwid-static-page.php
CHANGED
@@ -198,6 +198,10 @@ class Ecwid_Static_Page {
|
|
198 |
if ( $fetched_data && isset( $fetched_data['data'] ) ) {
|
199 |
$fetched_data = json_decode( $fetched_data['data'] );
|
200 |
|
|
|
|
|
|
|
|
|
201 |
//phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
|
202 |
if ( ! empty( $dynamic_css ) ) {
|
203 |
$fetched_data->cssFiles = array( $dynamic_css );
|
198 |
if ( $fetched_data && isset( $fetched_data['data'] ) ) {
|
199 |
$fetched_data = json_decode( $fetched_data['data'] );
|
200 |
|
201 |
+
if ( empty( $fetched_data ) || ! is_object( $fetched_data ) ) {
|
202 |
+
return null;
|
203 |
+
}
|
204 |
+
|
205 |
//phpcs:disable WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
|
206 |
if ( ! empty( $dynamic_css ) ) {
|
207 |
$fetched_data->cssFiles = array( $dynamic_css );
|
includes/shortcodes/class-ecwid-shortcode-productbrowser.php
CHANGED
@@ -44,14 +44,16 @@ class Ecwid_Shortcode_ProductBrowser extends Ecwid_Shortcode_Base {
|
|
44 |
$code = '';
|
45 |
$code .= self::get_js_for_adding_html_id();
|
46 |
|
47 |
-
$classname
|
|
|
|
|
48 |
if ( Ecwid_Static_Page::is_enabled_static_home_page() ) {
|
49 |
add_filter( 'ecwid_hide_defer_load_script', '__return_true', 10000 );
|
50 |
$code .= self::get_js_for_switch_dynamic( 'static-ec-store-container', 'dynamic-ec-store-container' );
|
51 |
$classname = 'hide-ec-dynamic-placeholder';
|
52 |
} else {
|
53 |
-
|
54 |
-
$code
|
55 |
}
|
56 |
|
57 |
$code .= '<div id="static-ec-store-container">';
|
@@ -63,7 +65,7 @@ class Ecwid_Shortcode_ProductBrowser extends Ecwid_Shortcode_Base {
|
|
63 |
}
|
64 |
$code .= '</div>';
|
65 |
|
66 |
-
$code .= self::get_dynamic_html_code(
|
67 |
|
68 |
$code .= '<script data-cfasync="false" data-no-optimize="1" type="text/javascript">
|
69 |
if( typeof window.ec.storefront.staticPages != "undefined" && typeof window.ec.storefront.staticPages.forceDynamicLoadingIfRequired != "undefined" ) {
|
44 |
$code = '';
|
45 |
$code .= self::get_js_for_adding_html_id();
|
46 |
|
47 |
+
$classname = '';
|
48 |
+
$is_default_render = false;
|
49 |
+
|
50 |
if ( Ecwid_Static_Page::is_enabled_static_home_page() ) {
|
51 |
add_filter( 'ecwid_hide_defer_load_script', '__return_true', 10000 );
|
52 |
$code .= self::get_js_for_switch_dynamic( 'static-ec-store-container', 'dynamic-ec-store-container' );
|
53 |
$classname = 'hide-ec-dynamic-placeholder';
|
54 |
} else {
|
55 |
+
$is_default_render = true;
|
56 |
+
$code .= self::get_js_for_hide_static( '#static-ec-store-container' );
|
57 |
}
|
58 |
|
59 |
$code .= '<div id="static-ec-store-container">';
|
65 |
}
|
66 |
$code .= '</div>';
|
67 |
|
68 |
+
$code .= self::get_dynamic_html_code( $is_default_render, $classname );
|
69 |
|
70 |
$code .= '<script data-cfasync="false" data-no-optimize="1" type="text/javascript">
|
71 |
if( typeof window.ec.storefront.staticPages != "undefined" && typeof window.ec.storefront.staticPages.forceDynamicLoadingIfRequired != "undefined" ) {
|
js/static-page.js
CHANGED
@@ -185,7 +185,9 @@
|
|
185 |
return;
|
186 |
}
|
187 |
|
188 |
-
|
|
|
|
|
189 |
|
190 |
function setupAfterEcwidLoaded() {
|
191 |
|
185 |
return;
|
186 |
}
|
187 |
|
188 |
+
if (!autoSwitchStaticToDynamicWhenReady) {
|
189 |
+
addStaticPageHandlers();
|
190 |
+
}
|
191 |
|
192 |
function setupAfterEcwidLoaded() {
|
193 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Ecwid
|
|
3 |
Tags: ecommerce, e-commerce, storefront, shopping cart, online store
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 6.1
|
6 |
-
Stable tag: 6.11
|
7 |
|
8 |
Powerful, easy to use ecommerce shopping cart for WordPress. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
|
9 |
|
@@ -152,6 +152,9 @@ You can use Ecwid’s built-in import tools to copy your store products from any
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
155 |
= 6.11 - Nov 29, 2022 =
|
156 |
- **New cool feature — speedup of storefront loading.** We drastically improved the load speed of Ecwid stores published on WordPress. We optimized the resources loaded by the plugin to accelerate the loading of store pages and ecommerce widgets (shopping cart icon, product search, etc). The improvement greatly enhances the user experience and boosts your store SEO. You will now get better performance scores when checking your store pages in Google PageSpeed Insights. In the coming weeks, we will gradually enable this feature for all of our users.
|
157 |
|
3 |
Tags: ecommerce, e-commerce, storefront, shopping cart, online store
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 6.1
|
6 |
+
Stable tag: 6.11.1
|
7 |
|
8 |
Powerful, easy to use ecommerce shopping cart for WordPress. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
|
9 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 6.11.1 - Dec 7, 2022 =
|
156 |
+
- **Several fixes and improvements for the recently released “Speedup of storefront loading” feature.** In the coming week, we will gradually enable this feature for all of our users.
|
157 |
+
|
158 |
= 6.11 - Nov 29, 2022 =
|
159 |
- **New cool feature — speedup of storefront loading.** We drastically improved the load speed of Ecwid stores published on WordPress. We optimized the resources loaded by the plugin to accelerate the loading of store pages and ecommerce widgets (shopping cart icon, product search, etc). The improvement greatly enhances the user experience and boosts your store SEO. You will now get better performance scores when checking your store pages in Google PageSpeed Insights. In the coming weeks, we will gradually enable this feature for all of our users.
|
160 |
|