Skip to content

Commit 19a64cf

Browse files
authored
Merge pull request #346 from Ecwid/dev
Dev
2 parents 3fcb536 + 129c328 commit 19a64cf

27 files changed

Lines changed: 1618 additions & 35 deletions

CHANGELOG.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
== Changelog ==
2+
= 7.0.4 - Jul 15, 2025 =
3+
- Improved compatibility with the Jetpack plugin to ensure storefront scripts load correctly when 'Defer Non-Essential JavaScript' is enabled.
4+
- Applied minor fixes and general improvements for better performance and stability.
5+
26
= 7.0.3 - Jun 24, 2025 =
37
- Internal improvements and minor fixes for Gutenberg ecommerce blocks.
48

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,25 @@ With Ecwid, you can include your ecommerce shop on multiple websites, blogs, soc
3737

3838
### Mobile Responsive Design
3939

40-
Ecwid works great on any Wordpress site, especially those running on mobile-optimized themes. Your online store looks perfect on smartphones and automatically adapts to your customer’s screen size: laptops, tablets, smart TVs or smart watches. Check out this [demo](https://ecwid.to/ecwid-demo-store)
40+
Ecwid works great on any Wordpress site, especially those running on mobile-optimized themes. Your online store looks perfect on smartphones and automatically adapts to your customer’s screen size: laptops, tablets, smart TVs or smart watches. Check out this [demo](https://go.lightspeedhq.com/ecwid-demo-store)
4141

4242
### Hundreds of extensions and powerful API
4343

4444
There is a lot of in-house and third party extensions built on the Ecwid Ecommerce APIs. You can find a ready made plugin extending features of your online storefront the way you want or build a custom addon yourself. The existing family of third party plugins include tax automation apps like TaxJar, fulfilment services like ShipStation, customer support tools like LiveChat and many others.
4545

4646
### Plans start at just $5/mo
4747

48-
Start selling ealisy with no big investment. As your online shop grows, Ecwid grows with you. When the time is right, consider upgrading your store to one of our premium plans to get more robust features and preferred support. See also: [Ecwid plan and pricing](https://ecwid.to/ecwid-pricing)
48+
Start selling ealisy with no big investment. As your online shop grows, Ecwid grows with you. When the time is right, consider upgrading your store to one of our premium plans to get more robust features and preferred support. See also: [Ecwid plan and pricing](https://go.lightspeedhq.com/ecwid-pricing)
4949

5050
### See Ecwid In Action
5151

52-
* [Demo Store](https://ecwid.to/ecwid-demo-store "Ecwid demo")
53-
* [Ecwid Ecommerce Control panel](https://ecwid.to/ecwid-store-control-panel "Ecwid Control Panel") (you will be able to create an Ecwid account)
54-
* [Showcase](https://ecwid.to/ecwid-wp-site)
52+
* [Demo Store](https://go.lightspeedhq.com/ecwid-demo-store "Ecwid demo")
53+
* [Ecwid Ecommerce Control panel](https://go.lightspeedhq.com/ecwid-store-control-panel "Ecwid Control Panel") (you will be able to create an Ecwid account)
54+
* [Showcase](https://go.lightspeedhq.com/ecwid-wp-site)
5555

5656
### Ecwid Site
5757

58-
* [www.ecwid.com](https://ecwid.to/ecwid-wp-site "Ecwid site")
58+
* [www.ecwid.com](https://go.lightspeedhq.com/ecwid-wp-site "Ecwid site")
5959

6060

6161
## Installation

ecwid-shopping-cart.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Description: Ecwid by Lightspeed is a full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
66
Text Domain: ecwid-shopping-cart
77
Author: Ecwid Ecommerce
8-
Version: 7.0.3
9-
Author URI: https://ecwid.to/ecwid-site
8+
Version: 7.0.4
9+
Author URI: https://go.lightspeedhq.com/ecwid-site
1010
License: GPLv2 or later
1111
*/
1212

@@ -1222,11 +1222,11 @@ function ecwid_get_scriptjs_code( $force_lang = null ) {
12221222
$store_id = get_ecwid_store_id();
12231223
$params = ecwid_get_scriptjs_params();
12241224

1225-
$code .= '<script data-cfasync="false" type="text/javascript" src="https://' . Ecwid_Config::get_scriptjs_domain() . '/script.js?' . $store_id . $params . '"></script>'; //phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript
1225+
$code .= '<script data-cfasync="false" data-no-optimize="1" src="https://' . Ecwid_Config::get_scriptjs_domain() . '/script.js?' . $store_id . $params . '"></script>'; //phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript
12261226
}
12271227

12281228
$code .= ecwid_sso();
1229-
$code .= '<script type="text/javascript">if (typeof jQuery !== undefined && jQuery.mobile) { jQuery.mobile.hashListeningEnabled = false; jQuery.mobile.pushStateEnabled=false; }</script><!--/noptimize-->';
1229+
$code .= '<script data-cfasync="false" data-no-optimize="1">if (typeof jQuery !== undefined && jQuery.mobile) { jQuery.mobile.hashListeningEnabled = false; jQuery.mobile.pushStateEnabled=false; }</script><!--/noptimize-->';
12301230

12311231
return apply_filters( 'ecwid_scriptjs_code', $code );
12321232
}

includes/class-ecwid-ajax-defer-renderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function render_shortcode( $shortcode ) {
9494

9595
public function add_shortcodes( $content ) {
9696
$ecwid_store_id = get_ecwid_store_id();
97-
$before = '<script>var ecwid_shortcodes = [];</script>';
97+
$before = '<script data-cfasync="false" data-no-optimize="1">var ecwid_shortcodes = [];</script>';
9898

9999
$scriptjs_domain = esc_attr( Ecwid_Config::get_scriptjs_domain() );
100100

@@ -104,7 +104,7 @@ public function add_shortcodes( $content ) {
104104
$script_src = "https://$scriptjs_domain/script.js?$ecwid_store_id&data_platform=wporg&lang=$lang";
105105
ob_start();
106106
?>
107-
<script>
107+
<script data-cfasync="false" data-no-optimize="1">
108108
window.ecwid_script_defer = true;
109109
window.ecwid_dynamic_widgets = true;
110110

includes/class-ecwid-floating-minicart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function display() {
9393
data-icon='<?php echo esc_attr( $icon ); ?>'
9494
></div>
9595

96-
<script>
96+
<script data-cfasync="false" data-no-optimize="1">
9797
if (typeof Ecwid != 'undefined'){
9898
Ecwid.init();
9999
}

includes/gutenberg/class-ecwid-gutenberg-block-cart-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function render_callback( $params ) {
3131

3232
ob_start();
3333
?>
34-
<script>
34+
<script data-cfasync="false" data-no-optimize="1">
3535
Ecwid.OnAPILoaded.add(function() {
3636
Ecwid.OnPageLoad.add(function(page) {
3737
if ("CATEGORY" == page.type && 0 == page.categoryId && !page.hasPrevious) {

includes/gutenberg/class-ecwid-gutenberg-block-filters-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function render_callback( $params ) {
5050
public static function get_script_for_open_filters_page() {
5151
ob_start();
5252
?>
53-
<script>
53+
<script data-cfasync="false" data-no-optimize="1">
5454
Ecwid.OnAPILoaded.add(function() {
5555
Ecwid.OnPageLoad.add(function(page) {
5656
if ("CATEGORY" == page.type && 0 == page.categoryId && !page.hasPrevious) {

includes/gutenberg/class-ecwid-gutenberg-block-minicart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function render_callback( $params ) {
4040
></div>
4141

4242
<!--noptimize-->
43-
<script>
43+
<script data-cfasync="false" data-no-optimize="1">
4444
if (typeof Ecwid != 'undefined'){
4545
Ecwid.init();
4646
}

includes/shortcodes/class-ecwid-shortcode-productbrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public function get_js_for_open_page( $page = '' ) {
335335

336336
ob_start();
337337
?>
338-
<script>
338+
<script data-cfasync="false" data-no-optimize="1">
339339
Ecwid.OnAPILoaded.add(function() {
340340
Ecwid.OnPageLoad.add(function(page) {
341341
if ("CATEGORY" == page.type && 0 == page.categoryId && !page.hasPrevious) {

includes/widgets/nsf-minicart.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
></div>
1313

1414
<!--noptimize-->
15-
<script>
15+
<script data-cfasync="false" data-no-optimize="1">
1616
if (typeof Ecwid != 'undefined') {
1717
Ecwid.init();
1818
}

0 commit comments

Comments
 (0)