Ecwid Ecommerce Shopping Cart - Version 4.7.4

Version Description

  • WordPress 4.7 and Twenty Seventeen theme compatibility. The new WordPress version with the 2017 theme is coming soon. Ecwid shopping cart plugin is ready for the upcoming changes everything will work well. Feel free to upgrade your site to WordPress 4.7 as soon as it's released and try a new theme.
  • Minor fixes and improvements.
Download this release

Release Info

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

Code changes from version 4.7.3 to 4.7.4

css/frontend.css CHANGED
@@ -1,7 +1,7 @@
1
- html#ecwid_html body#ecwid_body .ecwid.ecwid-SingleProduct a ,
2
  .ecwid-SingleProduct a div.ecwid-title {
 
3
  text-decoration: none;
4
- color: #000000;
5
  }
6
 
7
  html#ecwid_html body#ecwid_body .ecwid-SearchPanel input {
@@ -9,10 +9,9 @@ html#ecwid_html body#ecwid_body .ecwid-SearchPanel input {
9
  }
10
 
11
  html#ecwid_html body#ecwid_body .ecwid-shopping-cart-categories #horizontal-menu,
12
- html#ecwid_html body#ecwid_body .ecwid-shopping-cart-categories .horizontal-menu
13
- {
14
- margin-top: 10px;
15
  margin-bottom: 10px;
 
16
  }
17
 
18
  .ecwid-shopping-cart-categories .horizontal-menu-item {
@@ -20,8 +19,8 @@ html#ecwid_html body#ecwid_body .ecwid-shopping-cart-categories .horizontal-menu
20
  }
21
 
22
  html#ecwid_html body#ecwid_body .ecwid-productsList ul li .ecwid-productsList-name {
23
- font-size: inherit;
24
  color: inherit;
 
25
  }
26
 
27
  html#ecwid_html body#ecwid_body .ecwid tr:hover td {
@@ -34,4 +33,30 @@ html#ecwid_html body#ecwid_body .ecwid table {
34
 
35
  .ecwid-SingleProduct-v2 {
36
  box-sizing: content-box;
37
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ html#ecwid_html body#ecwid_body .ecwid.ecwid-SingleProduct a,
2
  .ecwid-SingleProduct a div.ecwid-title {
3
+ color: #000;
4
  text-decoration: none;
 
5
  }
6
 
7
  html#ecwid_html body#ecwid_body .ecwid-SearchPanel input {
9
  }
10
 
11
  html#ecwid_html body#ecwid_body .ecwid-shopping-cart-categories #horizontal-menu,
12
+ html#ecwid_html body#ecwid_body .ecwid-shopping-cart-categories .horizontal-menu {
 
 
13
  margin-bottom: 10px;
14
+ margin-top: 10px;
15
  }
16
 
17
  .ecwid-shopping-cart-categories .horizontal-menu-item {
19
  }
20
 
21
  html#ecwid_html body#ecwid_body .ecwid-productsList ul li .ecwid-productsList-name {
 
22
  color: inherit;
23
+ font-size: inherit;
24
  }
25
 
26
  html#ecwid_html body#ecwid_body .ecwid tr:hover td {
33
 
34
  .ecwid-SingleProduct-v2 {
35
  box-sizing: content-box;
36
+ }
37
+
38
+ .ecwid .ecwid-productBrowser input {
39
+ display: inline-block;
40
+ }
41
+
42
+ .ecwid .ecwid-productBrowser label {
43
+ vertical-align: middle;
44
+ }
45
+
46
+ .ecwid .ecwid-productBrowser select,
47
+ .ecwid .ecwid-productBrowser input {
48
+ background-color: #fff;
49
+ color: #333;
50
+ }
51
+
52
+ /* fix old search widget */
53
+ .ecwid-shopping-cart-search .ecwid-SearchPanel .ecwid-SearchPanel-field {
54
+ display: inline-block;
55
+ }
56
+ .ecwid-shopping-cart-search .ecwid-SearchPanel .ecwid-SearchPanel-field {
57
+ font-size: 14px;
58
+ }
59
+ .ecwid-shopping-cart-search .ecwid-SearchPanel .ecwid-SearchPanel-button {
60
+ font-size: 14px;
61
+ font-weight: 400;
62
+ }
css/themes/2017.css ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ .colors-dark .ecwid-productsList ul li a,
2
+ #widgets .ecwid-productsList ul li a
3
+ {
4
+ background: transparent;
5
+ }
6
+
7
+ html#ecwid_html body#ecwid_body .ecwid-recently-viewed-products li a:hover {
8
+ -webkit-box-shadow: none;
9
+ -moz-box-shadow: none;
10
+ box-shadow: none;
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 Team
8
- Version: 4.7.3
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
@@ -62,7 +62,7 @@ if ( is_admin() ){
62
  add_action('wp_ajax_ecwid_create_store', 'ecwid_create_store');
63
  add_filter('plugin_action_links_' . ECWID_PLUGIN_BASENAME, 'ecwid_plugin_actions');
64
  add_action('admin_head', 'ecwid_ie8_fonts_inclusion');
65
- add_action('save_post', 'ecwid_save_post');
66
  add_action('init', 'ecwid_apply_theme', 0);
67
  add_action('get_footer', 'ecwid_admin_get_footer');
68
  add_action('admin_post_ecwid_connect', 'ecwid_admin_post_connect');
@@ -311,18 +311,33 @@ function ecwid_add_chameleon() {
311
  $colors = 'auto';
312
  }
313
 
314
- $chameleon = json_encode(array(
315
- 'colors' => $colors,
316
- 'font' => 'auto'
317
- ));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
318
 
319
  echo <<<HTML
320
  <script type="text/javascript">
321
- window.ec = {
322
- config: {
323
- chameleon: $chameleon
324
- }
325
- }
326
  </script>
327
  HTML;
328
 
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: 4.7.4
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
62
  add_action('wp_ajax_ecwid_create_store', 'ecwid_create_store');
63
  add_filter('plugin_action_links_' . ECWID_PLUGIN_BASENAME, 'ecwid_plugin_actions');
64
  add_action('admin_head', 'ecwid_ie8_fonts_inclusion');
65
+ add_action('save_post', 'ecwid_save_post');
66
  add_action('init', 'ecwid_apply_theme', 0);
67
  add_action('get_footer', 'ecwid_admin_get_footer');
68
  add_action('admin_post_ecwid_connect', 'ecwid_admin_post_connect');
311
  $colors = 'auto';
312
  }
313
 
314
+ $colors = json_encode($colors);
315
+ $font = '"auto"';
316
+
317
+ $chameleon = apply_filters( 'ecwid_chameleon_settings', array('colors' => $colors, 'font' => $font));
318
+
319
+ if (!is_array($chameleon)) {
320
+ $chameleon = array(
321
+ 'colors' => $colors,
322
+ 'font' => $font
323
+ );
324
+ }
325
+
326
+ if (!isset($chameleon['colors'])) {
327
+ $chameleon['colors'] = json_encode($colors);
328
+ }
329
+
330
+ if (!isset($chameleon['font'])) {
331
+ $chameleon['font'] = $font;
332
+ }
333
 
334
  echo <<<HTML
335
  <script type="text/javascript">
336
+ window.ec = window.ec || Object();
337
+ window.ec.config = window.ec.config || Object();
338
+ window.ec.config.chameleon = window.ec.config.chameleon || Object();
339
+ window.ec.config.chameleon.font = $chameleon[font];
340
+ window.ec.config.chameleon.colors = $chameleon[colors];
341
  </script>
342
  HTML;
343
 
includes/class-ecwid-message-manager.php CHANGED
@@ -58,15 +58,15 @@ TXT
58
  $is_old_search = ecwid_is_old_search_widget_used();
59
  $is_old_categories = ecwid_is_old_cats_widget_used();
60
 
61
- $main_message = __( 'Updated %s widgets are available for your Ecwid store. They are more mobile friendly and look better. Please enable them on the plugin settings page and check how they work in your store. The new widgets will be enabled automatically for all users in one of the upcoming plugin versions. ', 'ecwid-shopping-cart' );
62
 
63
  $widgets = '';
64
  if ($is_old_search && $is_old_categories) {
65
- $widgets = _x( 'Search and Categories', 'upgrade widgets_message', 'ecwid-shopping-cart' );
66
  } else if ( $is_old_search ) {
67
- $widgets = _x( 'Search', 'upgrade widgets_message', 'ecwid-shopping-cart' );
68
  } else if ( $is_old_categories ) {
69
- $widgets = _x( 'Categories', 'upgrade widgets_message', 'ecwid-shopping-cart' );
70
  }
71
 
72
  return sprintf($main_message, $widgets);
58
  $is_old_search = ecwid_is_old_search_widget_used();
59
  $is_old_categories = ecwid_is_old_cats_widget_used();
60
 
61
+ $main_message = __( 'Updated %s widgets are available for your Ecwid store. They are more mobile friendly and look better. Please enable them on the plugin settings page and check how they work in your store. The new widgets will be enabled automatically for all users in one of the upcoming plugin versions.', 'ecwid-shopping-cart' );
62
 
63
  $widgets = '';
64
  if ($is_old_search && $is_old_categories) {
65
+ $widgets = _x( 'Search and Categories', 'upgrade widgets message', 'ecwid-shopping-cart' );
66
  } else if ( $is_old_search ) {
67
+ $widgets = _x( 'Search', 'upgrade widgets message', 'ecwid-shopping-cart' );
68
  } else if ( $is_old_categories ) {
69
+ $widgets = _x( 'Categories', 'upgrade widgets message', 'ecwid-shopping-cart' );
70
  }
71
 
72
  return sprintf($main_message, $widgets);
includes/themes.php CHANGED
@@ -67,7 +67,8 @@ function ecwid_apply_theme($theme_name = null)
67
  'central',
68
  'mfupdate',
69
  'trend',
70
- 'Boundless'
 
71
  );
72
 
73
  $custom_themes = apply_filters( 'ecwid_custom_themes', $custom_themes );
67
  'central',
68
  'mfupdate',
69
  'trend',
70
+ 'Boundless',
71
+ 'twentyseventeen'
72
  );
73
 
74
  $custom_themes = apply_filters( 'ecwid_custom_themes', $custom_themes );
includes/themes/class-ecwid-theme-trend.php CHANGED
@@ -47,7 +47,7 @@ HTML;
47
  window.ecwid_script_defer = true;
48
  window.ecwid_dynamic_widgets = true;
49
 
50
- if (typeof Ecwid != 'undefined') Ecwid.destroy();
51
 
52
  if (typeof ecwid_shortcodes != 'undefined') {
53
  window._xnext_initialization_scripts = ecwid_shortcodes;
47
  window.ecwid_script_defer = true;
48
  window.ecwid_dynamic_widgets = true;
49
 
50
+ if (typeof Ecwid != 'undefined' && Ecwid.destroy) Ecwid.destroy();
51
 
52
  if (typeof ecwid_shortcodes != 'undefined') {
53
  window._xnext_initialization_scripts = ecwid_shortcodes;
includes/themes/class-ecwid-theme-twentyseventeen.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
4
+
5
+ class Ecwid_Theme_2017 extends Ecwid_Theme_Base
6
+ {
7
+ protected $name = 'Twenty Seventeen';
8
+
9
+ public function __construct()
10
+ {
11
+ parent::__construct();
12
+ wp_enqueue_style( 'ecwid-theme', ECWID_PLUGIN_URL . 'css/themes/2017.css', array('twentyseventeen-style'), get_option('ecwid_plugin_version') );
13
+ add_action( 'ecwid_plugin_installed', array( $this, 'on_ecwid_plugin_installed' ) );
14
+ add_action( 'ecwid_chameleon_settings', array( $this, 'chameleon_settings' ) );
15
+ }
16
+
17
+ public function chameleon_settings( $chameleon ) {
18
+ if ( get_theme_mod( 'colorscheme', 'light' ) == 'dark' && $chameleon['colors'] == '"auto"') {
19
+ $chameleon['colors'] = json_encode(
20
+ array(
21
+ 'color-background' => '#222',
22
+ 'color-foreground' => '#fff',
23
+ 'color-link' => '#fff',
24
+ 'color-button' => '#888',
25
+ 'color-price' => '#ddd'
26
+ )
27
+ );
28
+ }
29
+
30
+ return $chameleon;
31
+ }
32
+
33
+ public function on_ecwid_plugin_installed()
34
+ {
35
+ $widgets = get_option('sidebars_widgets');
36
+
37
+ if ( strpos( implode( ' ', $widgets['sidebar-1'] ), 'ecwidstorelink' ) === false ) {
38
+
39
+ array_unshift( $widgets['sidebar-1'], 'ecwidstorelink-2' );
40
+ wp_set_sidebars_widgets( $widgets );
41
+
42
+ $options = get_option( 'widget_ecwidstorelink' );
43
+
44
+ if (!$options) {
45
+ $options = array(
46
+ 2 => array(
47
+ 'label' => __( 'Shop', 'ecwid-shopping-cart' )
48
+ ),
49
+ '_multiwidget' => 1
50
+ );
51
+ } else {
52
+ $options[2] = array(
53
+ 'label' => __( 'Shop', 'ecwid-shopping-cart' )
54
+ );
55
+ }
56
+
57
+ update_option( 'widget_ecwidstorelink', $options );
58
+ }
59
+ }
60
+ }
61
+
62
+ $ecwid_current_theme = new Ecwid_Theme_2017();
js/recently-viewed.js CHANGED
@@ -43,15 +43,14 @@ jQuery.widget('ecwid.recentlyViewedProducts', jQuery.ecwid.productsList, {
43
 
44
  if (typeof this.products[product.id] == 'undefined') {
45
  this.addProduct(product);
 
 
 
46
  } else {
47
  this.sort.splice(this.sort.indexOf(product.id), 1);
48
  this._addToSort(product.id);
49
  }
50
 
51
- if (this.is_api_available) {
52
- this._updateFromServer(product.id);
53
- }
54
-
55
  this._render();
56
  },
57
 
@@ -80,4 +79,3 @@ jQuery.widget('ecwid.recentlyViewedProducts', jQuery.ecwid.productsList, {
80
  return sort.reverse().slice(0, this.option('max')).reverse();
81
  }
82
  });
83
-
43
 
44
  if (typeof this.products[product.id] == 'undefined') {
45
  this.addProduct(product);
46
+ if (this.is_api_available) {
47
+ this._updateFromServer(product.id);
48
+ }
49
  } else {
50
  this.sort.splice(this.sort.indexOf(product.id), 1);
51
  this._addToSort(product.id);
52
  }
53
 
 
 
 
 
54
  this._render();
55
  },
56
 
79
  return sort.reverse().slice(0, this.option('max')).reverse();
80
  }
81
  });
 
languages/ecwid-shopping-cart-ru_RU.mo CHANGED
Binary file
languages/ecwid-shopping-cart-ru_RU.po CHANGED
@@ -723,9 +723,13 @@ msgctxt "upgrade widgets message"
723
  msgid "Categories"
724
  msgstr "Категорий"
725
 
 
726
  msgid "Search and Categories"
727
  msgstr "Поиска и Категорий"
728
 
 
 
 
729
  msgid "https://www.ecwid.com/forums"
730
  msgstr "https://www.ecwid.com/forums/forumdisplay.php?f=10"
731
 
723
  msgid "Categories"
724
  msgstr "Категорий"
725
 
726
+ msgctxt "upgrade widgets message"
727
  msgid "Search and Categories"
728
  msgstr "Поиска и Категорий"
729
 
730
+ msgid "Open Ecwid store settings"
731
+ msgstr "Открыть настройки плагина Ecwid"
732
+
733
  msgid "https://www.ecwid.com/forums"
734
  msgstr "https://www.ecwid.com/forums/forumdisplay.php?f=10"
735
 
readme.txt CHANGED
@@ -2,13 +2,13 @@
2
  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.6
6
- Stable tag: 4.7.3
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
 
10
  == Description ==
11
- Ecwid Ecommerce Shopping Cart is a powerful, secure and easy-to-use online store solution that gives you a full-functioned shop on your WordPress website. Join over *1 million* sellers in *175* countries and sell globally with over *40* international payment options, real-time shipping integrations and support of *45* languages.
12
 
13
 
14
  = Automatic Shipping and Taxes =
@@ -149,9 +149,12 @@ 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
  = 4.7.3 =
153
  - **Improvements for the new Ecwid’s single product widget.** Now it's possible to use the "show_price_on_button=0" and “show_border=0” parameters in the shortcode to disable the price on buy now button and widget border respectively. If you want to hide the widget border, for example, the resulting code will like this: [ecwid_product id="12345" version=2 show_border=0]. Do not forget to replace 12345 in this example with the actual product ID.
154
-
155
  - Fixed a bug with the floating shopping cart: the floating cart widget didn't appear on some rare Wordpress themes, we fixed that. Now it should work fine.
156
 
157
  = 4.7.2 =
2
  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.7
6
+ Stable tag: 4.7.4
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
 
10
  == Description ==
11
+ Ecwid Ecommerce Shopping Cart is a powerful, secure and easy-to-use online store solution that gives you a full-functioned shop on your WordPress website. Join over *1 million* sellers in *175* countries and sell globally with over *40* international payment options, real-time shipping integrations and support of *45* languages.
12
 
13
 
14
  = Automatic Shipping and Taxes =
149
  * [Ecwid eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
150
 
151
  == Changelog ==
152
+ = 4.7.4 =
153
+ - **WordPress 4.7 and Twenty Seventeen theme compatibility.** The new WordPress version with the 2017 theme is coming soon. Ecwid shopping cart plugin is ready for the upcoming changes – everything will work well. Feel free to upgrade your site to WordPress 4.7 as soon as it's released and try a new theme.
154
+ - Minor fixes and improvements.
155
+
156
  = 4.7.3 =
157
  - **Improvements for the new Ecwid’s single product widget.** Now it's possible to use the "show_price_on_button=0" and “show_border=0” parameters in the shortcode to disable the price on buy now button and widget border respectively. If you want to hide the widget border, for example, the resulting code will like this: [ecwid_product id="12345" version=2 show_border=0]. Do not forget to replace 12345 in this example with the actual product ID.
 
158
  - Fixed a bug with the floating shopping cart: the floating cart widget didn't appear on some rare Wordpress themes, we fixed that. Now it should work fine.
159
 
160
  = 4.7.2 =
templates/advanced-settings.php CHANGED
@@ -141,7 +141,7 @@
141
  </div>
142
  </div>
143
 
144
- <?php if (ecwid_migrations_is_original_plugin_version_older_than('4.1.3.1') || get_option('ecwid_use_new_horizontal_categories') != 'Y'): ?>
145
  <hr />
146
 
147
  <div class="pure-control-group checkbox">
141
  </div>
142
  </div>
143
 
144
+ <?php if (ecwid_migrations_is_original_plugin_version_older_than('4.1.3.1') || get_option('ecwid_use_new_search') != 'Y'): ?>
145
  <hr />
146
 
147
  <div class="pure-control-group checkbox">