Ecwid Ecommerce Shopping Cart - Version 6.8.11

Version Description

  • Dec 30, 2019 =
  • Fixed a PHP error message (Class 'Ecwid_Import_Page' not found) for PHP versions older 5.5. If your ecommerce site is running on an outdated PHP version, this update might fix a error message for you. Please update your PHP as soon as possible (or ask your hoster to do that for you) its much more secure to use the latest versions of software on your server.
Download this release

Release Info

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

Code changes from version 6.8.10 to 6.8.11

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 Ecommerce
8
- Version: 6.8.10
9
  Author URI: https://ecwid.to/ecwid-site
10
  */
11
 
@@ -2025,12 +2025,14 @@ function ecwid_register_admin_styles($hook_suffix) {
2025
  wp_enqueue_script('ecwid-connect-js', ECWID_PLUGIN_URL . 'js/dashboard.js', array(), get_option('ecwid_plugin_version'));
2026
  }
2027
 
2028
- $pages_with_ecwid_app_ui = array(
2029
- Ecwid_Import_Page::PAGE_SLUG_WOO,
2030
- );
2031
- if( in_array( $_GET['page'], $pages_with_ecwid_app_ui ) ) {
2032
- wp_enqueue_style('ecwid-app-ui', 'https://djqizrxa6f10j.cloudfront.net/ecwid-sdk/css/1.3.7/ecwid-app-ui.css', array(), get_option('ecwid_plugin_version'));
2033
- wp_enqueue_script('ecwid-app-ui', 'https://djqizrxa6f10j.cloudfront.net/ecwid-sdk/css/1.3.6/ecwid-app-ui.min.js', array(), get_option('ecwid_plugin_version'), 'in_footer');
 
 
2034
  }
2035
  }
2036
  }
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.8.11
9
  Author URI: https://ecwid.to/ecwid-site
10
  */
11
 
2025
  wp_enqueue_script('ecwid-connect-js', ECWID_PLUGIN_URL . 'js/dashboard.js', array(), get_option('ecwid_plugin_version'));
2026
  }
2027
 
2028
+ if (version_compare( phpversion(), '5.6', '>=' ) ) {
2029
+ $pages_with_ecwid_app_ui = array(
2030
+ Ecwid_Import_Page::PAGE_SLUG_WOO,
2031
+ );
2032
+ if( in_array( $_GET['page'], $pages_with_ecwid_app_ui ) ) {
2033
+ wp_enqueue_style('ecwid-app-ui', 'https://djqizrxa6f10j.cloudfront.net/ecwid-sdk/css/1.3.7/ecwid-app-ui.css', array(), get_option('ecwid_plugin_version'));
2034
+ wp_enqueue_script('ecwid-app-ui', 'https://djqizrxa6f10j.cloudfront.net/ecwid-sdk/css/1.3.6/ecwid-app-ui.min.js', array(), get_option('ecwid_plugin_version'), 'in_footer');
2035
+ }
2036
  }
2037
  }
2038
  }
js/product.js DELETED
@@ -1,22 +0,0 @@
1
- jQuery(document).ready(function() {
2
- if (typeof Ecwid != 'undefined') {
3
- Ecwid.OnPageLoaded.add(function (page) {
4
- if (page.type == 'PRODUCT') {
5
-
6
- jQuery.getJSON(
7
- ecwidProduct.ajaxurl,
8
- {'action': 'ecwid_get_post_link', 'product_id': page.productId},
9
- function (result) {
10
- $canonical = jQuery('link[rel=canonical]');
11
- if ($canonical.length == 0) {
12
- $canonical = jQuery('<link rel="canonical">').appendTo('head');
13
- }
14
- if (result) {
15
- $canonical.attr('href', result);
16
- }
17
- }
18
- );
19
- }
20
- });
21
- }
22
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Ecwid
3
  Tags: ecommerce, e-commerce, storefront, online store, sell
4
  Requires at least: 3.7
5
  Tested up to: 5.3
6
- Stable tag: 6.8.10
7
 
8
  Powerful, easy to use ecommerce shopping cart. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
9
 
@@ -156,6 +156,9 @@ You can use Ecwid’s built-in import tools to copy your store products from any
156
  * [Ecwid Help Center](http://help.ecwid.com/?source=wporg-plugin-site "Ecwid Help")
157
 
158
  == Changelog ==
 
 
 
159
  = 6.8.10 - Dec 26, 2019 =
160
  - **Several fixes and improvements for the "Import from WooCommerce" tool.** The import tool now works faster and has a neat interface.
161
  - **Improved compatibility with popular WordPress cache plugins**. The Ecwid ecommerce plugin now works better on sites with WP Super Cache, Autoptimize and WP-Rocket. If you have one of those plugins installed and noticed any issue, it should be fixed now. If you still see a problem, please let us know.
3
  Tags: ecommerce, e-commerce, storefront, online store, sell
4
  Requires at least: 3.7
5
  Tested up to: 5.3
6
+ Stable tag: 6.8.11
7
 
8
  Powerful, easy to use ecommerce shopping cart. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
9
 
156
  * [Ecwid Help Center](http://help.ecwid.com/?source=wporg-plugin-site "Ecwid Help")
157
 
158
  == Changelog ==
159
+ = 6.8.11 - Dec 30, 2019 =
160
+ - Fixed a PHP error message (“Class 'Ecwid_Import_Page' not found“) for PHP versions older 5.5. If your ecommerce site is running on an outdated PHP version, this update might fix a error message for you. Please update your PHP as soon as possible (or ask your hoster to do that for you) — it’s much more secure to use the latest versions of software on your server.
161
+
162
  = 6.8.10 - Dec 26, 2019 =
163
  - **Several fixes and improvements for the "Import from WooCommerce" tool.** The import tool now works faster and has a neat interface.
164
  - **Improved compatibility with popular WordPress cache plugins**. The Ecwid ecommerce plugin now works better on sites with WP Super Cache, Autoptimize and WP-Rocket. If you have one of those plugins installed and noticed any issue, it should be fixed now. If you still see a problem, please let us know.
templates/importer/woo-complete.tpl.php DELETED
@@ -1,28 +0,0 @@
1
- <h2><?php _e( 'Import complete.', 'ecwid-shopping-cart' ); ?></h2>
2
-
3
- <p class="plan-limit-message">
4
- <?php echo sprintf( __ ( 'Not all products have been copied to %1$s because you reached the product count limit on your pricing plan in %1$s. If you want to import more products, please consider <a %2$s>upgrading your %1$s plan</a>.', 'ecwid-shopping-cart' ), Ecwid_Config::get_brand(), 'href="' . $this->_get_billing_page_url() .'"' ); ?>
5
- </p>
6
-
7
- <ul>
8
- <li>
9
- <?php echo sprintf( __( 'Imported products: %s', 'ecwid-shopping-cart' ), '<span id="import-results-products"></span>' ); ?>
10
- </li>
11
- <?php if ( ecwid_is_paid_account() ): ?>
12
- <li>
13
- <?php echo sprintf( __( 'Imported categories: %s', 'ecwid-shopping-cart' ), '<span id="import-results-categories"></span>' ); ?>
14
- </li>
15
- </ul>
16
- <?php endif; ?>
17
-
18
- <p>
19
- <a class="button button-primary" href="admin.php?page=<?php echo Ecwid_Admin::ADMIN_SLUG; ?>-admin-products">
20
- <?php echo sprintf( __('Go to your %s Products', 'ecwid-shopping-cart' ), Ecwid_Config::get_brand() ); ?>
21
- </a>
22
- </p>
23
-
24
- <div class="errors">
25
- <?php _e( 'Some of the items could not be imported.', 'ecwid-shopping-cart' ); ?> <a class="btn-details"><?php _e( 'Details...', 'ecwid-shopping-cart' ); ?></a>
26
- <div class="details" id="fancy-errors"></div>
27
- <pre class="details"></pre>
28
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
templates/importer/woo-in-progress.tpl.php DELETED
@@ -1,15 +0,0 @@
1
- <div class="progress-indicator">
2
- <div class="icon">
3
- <?php ecwid_embed_svg('update'); ?>
4
- </div>
5
- <div class="inline-note">
6
- <?php _e( 'copying products and categories', 'ecwid-shopping-cart' ); ?>
7
- </div>
8
- </div>
9
- <div class="progress-message">
10
- <?php echo sprintf(
11
- __( 'Importing %s of %s items', 'ecwid-shopping-cart' ),
12
- '<span id="import-progress-current">0</span>',
13
- '<span id="import-progress-total">' . (Ecwid_Importer::count_woo_products() + Ecwid_Importer::count_woo_categories()) . '</span>' );
14
- ?>
15
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
templates/importer/woo-initial.tpl.php DELETED
@@ -1 +0,0 @@
1
- <button class="button button-primary" id="ecwid-importer-woo-go"><?php _e( 'Import', 'ecwid-shopping-cart' ); ?></button>
 
templates/landing_old.php DELETED
@@ -1,167 +0,0 @@
1
- <script type='text/javascript'>//<![CDATA[
2
- document.body.className += ' ecwid-no-padding';
3
- //]]>
4
- </script>
5
- <div class="ecwid-landing <?php echo $register ? 'register' : 'connect'; echo $connection_error ? ' conn-error': ''; ?>">
6
- <div class="ecwid-thank">
7
- <h1 class="on-register">
8
- <span><?php _e('Plugin is installed successfully!', 'ecwid-shopping-cart'); ?></span>
9
- <?php _e('There are just a few steps left to start selling<br /> on your WordPress site', 'ecwid-shopping-cart'); ?>
10
- </h1>
11
- <h1 class="on-connect">
12
- <span><?php _e('Plugin is installed successfully!', 'ecwid-shopping-cart'); ?></span>
13
- <?php _e('There are few little steps left to start selling<br /> on your WordPress site', 'ecwid-shopping-cart'); ?>
14
- </h1>
15
- <div class="ecwid-thank-steps">
16
- <div class="ecwid-thank-step ecwid-thank-step-one<?php echo $register ?'' : ' active'; ?>">
17
- <div class="ecwid-thank-step-image"><img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/ecwid.svg" class="none-active"><img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/ecwid-active.svg" class="active"></div>
18
- <div class="ecwid-thank-step-description">
19
- <h2><?php _e('Register', 'ecwid-shopping-cart'); ?></h2>
20
- <p><?php _e('Create a free Ecwid account to manage your store and inventory.<br /> No credit card required', 'ecwid-shopping-cart'); ?></p>
21
- </div>
22
- </div>
23
- <div class="ecwid-thank-step ecwid-thank-step-two">
24
- <div class="ecwid-thank-step-image"><img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/plug.svg" class="none-active"><img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/plug-active.svg" class="active"></div>
25
- <div class="ecwid-thank-step-description">
26
- <h2>
27
- <?php _e('Connect', 'ecwid-shopping-cart'); ?>
28
- </h2>
29
- <p class="on-register"><?php _e('Add your Ecwid store to your site <nobr>in two clicks</nobr>', 'ecwid-shopping-cart'); ?></p>
30
- <p class="on-connect"><?php _e('Connect your Ecwid store to this site <nobr>in two clicks</nobr>', 'ecwid-shopping-cart'); ?></p>
31
- </div>
32
- </div>
33
- <div class="ecwid-thank-step ecwid-thank-step-three">
34
- <div class="ecwid-thank-step-image">
35
- <img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/dollar.svg" class="none-active">
36
- <img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/dollar-active.svg" class="active">
37
- </div>
38
- <div class="ecwid-thank-step-description">
39
- <h2><?php _e('Start selling', 'ecwid-shopping-cart'); ?></h2>
40
- <p><?php _e('Your storefront is ready', 'ecwid-shopping-cart'); ?></p>
41
- </div>
42
- </div>
43
- </div>
44
- <div class="ecwid-button">
45
- <a target="_blank" href="<?php echo esc_attr(ecwid_get_register_link()); ?>" class="button button--blue on-register" onclick="javascript:switch_to_connect();">
46
- <?php _e('Create Ecwid store', 'ecwid-shopping-cart'); ?>
47
- </a>
48
- <a class="button button--green on-connect" href="admin-post.php?action=ec_connect">
49
- <?php _e('Connect your store', 'ecwid-shopping-cart'); ?>
50
- </a>
51
- <div class="button-description-mobile on-register">
52
- <?php _e('Free registration, No credit card required', 'ecwid-shopping-cart'); ?>
53
- </div>
54
- <div class="button-description-mobile on-error ecwid-connection-error">
55
- <?php _e( 'Connection error: please click the button again and give permissions for this plugin<br /> to show your Ecwid store on this site.', 'ecwid-shopping-cart' ); ?>
56
- </div>
57
- <div class="button-description-mobile on-connect on-no-error">
58
- <?php _e('You will be asked to log in to your Ecwid Control Panel<br />and give permissions to show your store on this site', 'ecwid-shopping-cart'); ?>
59
- </div>
60
- <div class="ecwid-button-description on-register">
61
- <?php _e('Already have Ecwid account?', 'ecwid-shopping-cart'); ?>
62
- <a href="admin-post.php?action=ec_connect"><?php _e('Connect your store to Wordpress site', 'ecwid-shopping-cart'); ?></a>
63
- </div>
64
- <div class="ecwid-button-description on-connect">
65
- <?php _e('Don\'t have an Ecwid account?', 'ecwid-shopping-cart'); ?>
66
- <a target="_blank" href="<?php echo esc_attr(ecwid_get_register_link()); ?>" onclick="javascript:switch_to_connect();"><?php _e('Register at Ecwid for free', 'ecwid-shopping-cart'); ?></a>
67
- </div>
68
- <div class="button-description-mobile on-register">
69
- <?php _e('You will be asked to log in to your Ecwid Control Panel<br />and give permissions to show your store on this site', 'ecwid-shopping-cart'); ?>
70
- </div>
71
- <div class="button-description-mobile on-connect">
72
- <?php _e('No credit card required', 'ecwid-shopping-cart'); ?>
73
- </div>
74
- <div class="button-description-mobile">
75
- <h3><?php _e('Get ready to sell online', 'ecwid-shopping-cart'); ?></h3>
76
- </div>
77
- </div>
78
- <div class="ecwid-thank-background">
79
- <div class="ecwid-thank-background-tablet"><img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/tablet-iphone.png"></div>
80
- </div>
81
- </div>
82
- <div class="ecwid-description">
83
- <div class="ecwid-description-inner">
84
- <div class="ecwid-description-image"><img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/ecwid-description-image.jpg"></div>
85
- <div class="ecwid-description-text">
86
- <h2><?php _e('Sell Everywhere<br>with your Ecwid store', 'ecwid-shopping-cart'); ?></h2>
87
- <p><?php _e('Start selling on your WordPress site. Then mirror your shop on your Facebook page, blog and marketplaces like Google Shopping, Yahoo and Shopping.com.', 'ecwid-shopping-cart'); ?></p>
88
- <p><?php _e('Use Ecwid\'s mobile-POS to swipe credit cards and sell on the go. Your orders and inventory are always synchronized with your online store.', 'ecwid-shopping-cart'); ?></p>
89
- </div>
90
- </div>
91
- </div>
92
- <div class="ecwid-features">
93
- <div class="ecwid-features-inner">
94
- <h2><?php _e('Features', 'ecwid-shopping-cart'); ?></h2>
95
- <div class="ecwid-features-top">
96
- <div class="ecwid-features-top-item">
97
- <div class="ecwid-features-top-item-image">
98
- <img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/wordpress.svg">
99
- </div>
100
- <div class="ecwid-features-top-item-text">
101
- <h3><?php _e('Compatible with your theme', 'ecwid-shopping-cart'); ?></h3>
102
- <p><?php echo sprintf(__('Ecwid is compatible with your<br>“%s” WordPress theme<br>out of the box.', 'ecwid-shopping-cart'), ecwid_get_theme_name()); ?></p>
103
- </div>
104
- </div>
105
- <div class="ecwid-features-top-item">
106
- <div class="ecwid-features-top-item-image">
107
- <img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/gift.svg" class="gift">
108
- </div>
109
- <div class="ecwid-features-top-item-text">
110
- <h3><?php _e('Free and always up to date', 'ecwid-shopping-cart'); ?></h3>
111
- <p><?php _e('Free plan always available with tons of features<br>at no additional cost. Updates are seamless, automatic<br>and free of charge.', 'ecwid-shopping-cart'); ?></p>
112
- </div>
113
- </div>
114
- </div>
115
- <div class="ecwid-features-bottom">
116
- <div class="ecwid-features-bottom-item">
117
- <div class="ecwid-features-bottom-item-image">
118
- <img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/responsive-grow.svg">
119
- </div>
120
- <div class="ecwid-features-bottom-item-text">
121
- <h3><?php _e('Responsive design', 'ecwid-shopping-cart'); ?></h3>
122
- <p><?php _e('Your store looks perfect<br />on all devices', 'ecwid-shopping-cart'); ?></p>
123
- </div>
124
- </div>
125
- <div class="ecwid-features-bottom-item">
126
- <div class="ecwid-features-bottom-item-image">
127
- <img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/secure-pci.svg" class="secure">
128
- </div>
129
- <div class="ecwid-features-bottom-item-text">
130
- <h3><?php _e('PCI DSS Certified', 'ecwid-shopping-cart'); ?></h3>
131
- <p><?php _e('Secure checkout with over 40<br />payment options', 'ecwid-shopping-cart'); ?></p>
132
- </div>
133
- </div>
134
- <div class="ecwid-features-bottom-item">
135
- <div class="ecwid-features-bottom-item-image">
136
- <img src="<?php echo ECWID_PLUGIN_URL; ?>images/landing/global.svg">
137
- </div>
138
- <div class="ecwid-features-bottom-item-text">
139
- <h3><?php _e('Global Reach', 'ecwid-shopping-cart'); ?></h3>
140
- <p><?php _e('More than 800,000 merchants in 175 countries', 'ecwid-shopping-cart'); ?></p>
141
- </div>
142
- </div>
143
- </div>
144
- </div>
145
- </div>
146
- <div class="ecwid-start">
147
- <h2><?php _e('Start selling <br>on your WordPress <nobr>site for free</nobr>', 'ecwid-shopping-cart'); ?>
148
- </h2>
149
- <div class="ecwid-button">
150
- <a target="_blank" href="<?php echo esc_attr(ecwid_get_register_link()); ?>" class="button button--blue on-register" onclick="javascript:switch_to_connect();>
151
- <?php _e('Get Started, Create Ecwid Account', 'ecwid-shopping-cart'); ?>
152
- </a>
153
- <a class="button button--green on-connect" href="admin-post.php?action=ec_connect">
154
- <?php _e('Connect your store', 'ecwid-shopping-cart'); ?>
155
- </a>
156
- <div class="ecwid-button-description on-register">
157
- <?php _e('Already have Ecwid account?', 'ecwid-shopping-cart'); ?>
158
- <a href="admin-post.php?action=ec_connect""><?php _e('Connect your store to this site', 'ecwid-shopping-cart'); ?></a>
159
- </div>
160
- <div class="ecwid-button-description on-connect">
161
- <?php _e('Don\'t have an Ecwid account?', 'ecwid-shopping-cart'); ?>
162
- <a target="_blank" href="<?php echo esc_attr(ecwid_get_register_link()); ?>" onclick="javascript:switch_to_connect();"><?php _e('Register at Ecwid for free', 'ecwid-shopping-cart'); ?></a>
163
- </div>
164
-
165
- </div>
166
- </div>
167
- </div>