Ecwid Ecommerce Shopping Cart - Version 4.2

Version Description

  • New Search Widget. We released a new search widget thats vastly improved over the previous one. You can enable it on the "Ecwid -> Advanced" settings page in you Wordpress backend. The new search widget is fully adaptive, automatically fits in its parent section, and looks great with any sites theme. It also fits your sidebar even if it's very narrow, so feel free to add product search to your site sidebar in the "Appearance -> Widgets" section of your site admin.
  • Fixed a bug in the categories menu on mobile devices. You might notice that the product categories menu disappeared on your site when it's opened on a mobile device with narrow screen. It's now fixed the categories menu looks great on any screen size.
  • Bug fixes and improvements for the Recently Viewed Products widget.
Download this release

Release Info

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

Code changes from version 4.1.3 to 4.2

css/admin.css CHANGED
@@ -192,10 +192,15 @@ body[class*="_page_ecwid"] .ecwid-message {
192
 
193
  #available-widgets .widget-top.ecwid-widget-highlighted {
194
  background: #1d7ac4;
195
- color: white;
196
  font-weight: normal;
197
  }
198
 
 
 
 
 
 
 
199
  .widgets-php #available-widgets .ecwid-widget .widget-top .widget-title h4,
200
  .widgets-php #available-widgets .ecwid-widget .widget-top .widget-title h3
201
  {
192
 
193
  #available-widgets .widget-top.ecwid-widget-highlighted {
194
  background: #1d7ac4;
 
195
  font-weight: normal;
196
  }
197
 
198
+
199
+ #available-widgets .widget-top.ecwid-widget-highlighted,
200
+ #available-widgets .widget-top.ecwid-widget-highlighted h3 {
201
+ color: white;
202
+ }
203
+
204
  .widgets-php #available-widgets .ecwid-widget .widget-top .widget-title h4,
205
  .widgets-php #available-widgets .ecwid-widget .widget-top .widget-title h3
206
  {
css/frontend.css CHANGED
@@ -1,7 +1,3 @@
1
- html#ecwid_html body#ecwid_body div#mini-cart-attached-to-categories.ecwid-cart-narrow-screen, div.ecwid-categories-horizontal.ecwid-categories-narrow-screen {
2
- display: none;
3
- }
4
-
5
  html#ecwid_html body#ecwid_body .ecwid.ecwid-SingleProduct a ,
6
  .ecwid-SingleProduct a div.ecwid-title {
7
  text-decoration: none;
 
 
 
 
1
  html#ecwid_html body#ecwid_body .ecwid.ecwid-SingleProduct a ,
2
  .ecwid-SingleProduct a div.ecwid-title {
3
  text-decoration: none;
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.1.3
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
@@ -430,6 +430,7 @@ function ecwid_check_version()
430
  update_option('ecwid_use_chameleon', true);
431
 
432
  add_option('ecwid_use_new_horizontal_categories', 'Y');
 
433
  } elseif ($upgrade) {
434
 
435
  ecwid_plugin_add_oauth();
@@ -441,6 +442,7 @@ function ecwid_check_version()
441
  add_option('ecwid_chameleon_links', '');
442
 
443
  add_option('ecwid_use_new_horizontal_categories', '');
 
444
  }
445
 
446
  if (1 || $fresh_install || $upgrade) {
@@ -972,10 +974,10 @@ function ecwid_content_started($content)
972
 
973
  function ecwid_wrap_shortcode_content($content, $name, $attrs)
974
  {
975
- return "<!-- Ecwid shopping cart plugin v 4.1.3 --><!-- noptimize -->"
976
  . ecwid_get_scriptjs_code(@$attrs['lang'])
977
  . "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
978
- . "<!-- /noptimize --><!-- END Ecwid Shopping Cart v 4.1.3 -->";
979
  }
980
 
981
  function ecwid_get_scriptjs_code($force_lang = null) {
@@ -1051,6 +1053,14 @@ EOT;
1051
  return $result;
1052
  }
1053
 
 
 
 
 
 
 
 
 
1054
  function ecwid_searchbox_shortcode($attributes) {
1055
 
1056
  $params = shortcode_atts(
@@ -1064,8 +1074,9 @@ function ecwid_searchbox_shortcode($attributes) {
1064
 
1065
  $result = '';
1066
  if (!empty($ecwid_show_search_box)) {
 
1067
  $result = <<<EOT
1068
- <script data-cfasync="false" type="text/javascript"> xSearchPanel("style="); </script>
1069
  EOT;
1070
  }
1071
 
@@ -1378,7 +1389,8 @@ function ecwid_ajax_get_product_info() {
1378
  add_filter('autoptimize_filter_js_exclude','ecwid_override_jsexclude',10,1);
1379
  function ecwid_override_jsexclude($exclude)
1380
  {
1381
- return $exclude . ', xSearchPanel("style=")';
 
1382
  }
1383
 
1384
  function ecwid_store_activate() {
@@ -1860,6 +1872,7 @@ function ecwid_settings_api_init() {
1860
  register_setting( 'ecwid_options_page', 'ecwid_enable_advanced_theme_layout' );
1861
  register_setting( 'ecwid_options_page', 'ecwid_use_chameleon' );
1862
  register_setting( 'ecwid_options_page', 'ecwid_use_new_horizontal_categories' );
 
1863
  break;
1864
  }
1865
 
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.2
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
430
  update_option('ecwid_use_chameleon', true);
431
 
432
  add_option('ecwid_use_new_horizontal_categories', 'Y');
433
+ add_option('ecwid_use_new_search', 'Y');
434
  } elseif ($upgrade) {
435
 
436
  ecwid_plugin_add_oauth();
442
  add_option('ecwid_chameleon_links', '');
443
 
444
  add_option('ecwid_use_new_horizontal_categories', '');
445
+ add_option('ecwid_use_new_search', '');
446
  }
447
 
448
  if (1 || $fresh_install || $upgrade) {
974
 
975
  function ecwid_wrap_shortcode_content($content, $name, $attrs)
976
  {
977
+ return "<!-- Ecwid shopping cart plugin v 4.2 --><!-- noptimize -->"
978
  . ecwid_get_scriptjs_code(@$attrs['lang'])
979
  . "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
980
+ . "<!-- /noptimize --><!-- END Ecwid Shopping Cart v 4.2 -->";
981
  }
982
 
983
  function ecwid_get_scriptjs_code($force_lang = null) {
1053
  return $result;
1054
  }
1055
 
1056
+ function ecwid_get_search_js_code() {
1057
+ if (get_option('ecwid_use_new_search', false)) {
1058
+ return 'xSearch("style=");';
1059
+ } else {
1060
+ return 'xSearchPanel("style=")';
1061
+ }
1062
+ }
1063
+
1064
  function ecwid_searchbox_shortcode($attributes) {
1065
 
1066
  $params = shortcode_atts(
1074
 
1075
  $result = '';
1076
  if (!empty($ecwid_show_search_box)) {
1077
+ $code = ecwid_get_search_js_code();
1078
  $result = <<<EOT
1079
+ <script data-cfasync="false" type="text/javascript"> $code </script>
1080
  EOT;
1081
  }
1082
 
1389
  add_filter('autoptimize_filter_js_exclude','ecwid_override_jsexclude',10,1);
1390
  function ecwid_override_jsexclude($exclude)
1391
  {
1392
+ $code = ecwid_get_search_js_code();
1393
+ return $exclude . ", $code";
1394
  }
1395
 
1396
  function ecwid_store_activate() {
1872
  register_setting( 'ecwid_options_page', 'ecwid_enable_advanced_theme_layout' );
1873
  register_setting( 'ecwid_options_page', 'ecwid_use_chameleon' );
1874
  register_setting( 'ecwid_options_page', 'ecwid_use_new_horizontal_categories' );
1875
+ register_setting( 'ecwid_options_page', 'ecwid_use_new_search' );
1876
  break;
1877
  }
1878
 
includes/class-ecwid-kissmetrics.php CHANGED
@@ -35,7 +35,7 @@ class Ecwid_Kissmetrics {
35
 
36
  public function enqueue_script() {
37
  wp_enqueue_script('ecwid-kissmetrics', 'https://scripts.kissmetrics.com/' . self::API_KEY . '.2.js');
38
- wp_enqueue_script('ecwid-kissmetrics-events', ECWID_PLUGIN_URL . 'js/kissmetrics.js', array( 'ecwid-kissmetrics' ) );
39
 
40
 
41
  $this->_enqueue_property('Storefront URL', ecwid_get_store_page_url());
35
 
36
  public function enqueue_script() {
37
  wp_enqueue_script('ecwid-kissmetrics', 'https://scripts.kissmetrics.com/' . self::API_KEY . '.2.js');
38
+ wp_enqueue_script('ecwid-kissmetrics-events', ECWID_PLUGIN_URL . 'js/kissmetrics.js', array( 'ecwid-kissmetrics' ), get_option('ecwid_plugin_version') );
39
 
40
 
41
  $this->_enqueue_property('Storefront URL', ecwid_get_store_page_url());
includes/widgets/class-ecwid-widget-search.php CHANGED
@@ -20,7 +20,9 @@ class Ecwid_Widget_Search extends WP_Widget {
20
 
21
  echo ecwid_get_scriptjs_code();
22
  echo ecwid_get_product_browser_url_script();
23
- echo '<script data-cfasync="false" type="text/javascript"> xSearchPanel("style="); </script>';
 
 
24
 
25
  echo '<!-- /noptimize -->';
26
  echo '</div>';
20
 
21
  echo ecwid_get_scriptjs_code();
22
  echo ecwid_get_product_browser_url_script();
23
+
24
+ $code = ecwid_get_search_js_code();
25
+ echo '<script data-cfasync="false" type="text/javascript"> ' . $code . ' </script>';
26
 
27
  echo '<!-- /noptimize -->';
28
  echo '</div>';
js/recently-viewed.js CHANGED
@@ -13,7 +13,7 @@ jQuery.widget('ecwid.recentlyViewedProducts', jQuery.ecwid.productsList, {
13
  Ecwid.OnPageLoaded.add(
14
  function(page) {
15
 
16
- if (page.type == 'PRODUCT') {
17
  var product = {
18
  id: page.productId.toString(),
19
  name: page.name
@@ -30,7 +30,7 @@ jQuery.widget('ecwid.recentlyViewedProducts', jQuery.ecwid.productsList, {
30
  },
31
 
32
  addViewedProduct: function(product) {
33
- product.image = jQuery('.ecwid-productBrowser-details-thumbnail .gwt-Image').attr('src');
34
  product.link = window.location.href;
35
  product.name = jQuery('.ecwid-productBrowser-head').text();
36
  if (jQuery('.ecwid-productBrowser-price .ecwid-productBrowser-price-value').length > 0) {
13
  Ecwid.OnPageLoaded.add(
14
  function(page) {
15
 
16
+ if (page.type == 'PRODUCT' && jQuery('.ecwid-productBrowser-details').length > 0) {
17
  var product = {
18
  id: page.productId.toString(),
19
  name: page.name
30
  },
31
 
32
  addViewedProduct: function(product) {
33
+ product.image = jQuery('.ecwid-productBrowser-gallery-image .gwt-Image').attr('src');
34
  product.link = window.location.href;
35
  product.name = jQuery('.ecwid-productBrowser-head').text();
36
  if (jQuery('.ecwid-productBrowser-price .ecwid-productBrowser-price-value').length > 0) {
languages/ecwid-shopping-cart-ru_RU.mo CHANGED
Binary file
languages/ecwid-shopping-cart-ru_RU.po CHANGED
@@ -569,4 +569,10 @@ msgid "Creating store"
569
  msgstr "Создание магазина"
570
 
571
  msgid "Manage Store on iPhone, iPad or Android"
572
- msgstr "Управляйте магазином с iPhone, iPad, Android"
 
 
 
 
 
 
569
  msgstr "Создание магазина"
570
 
571
  msgid "Manage Store on iPhone, iPad or Android"
572
+ msgstr "Управляйте магазином с iPhone, iPad, Android"
573
+
574
+ msgid "Enable the new search widget"
575
+ msgstr "Включить новый виджет поиска"
576
+
577
+ msgid "The new search widget better adapts to your site and looks nicer. You can add the search bar to your site either in the <a %s>store page editor</a> or in the Appearance -> Widgets section."
578
+ msgstr "Новый виджет поиска лучше адаптируется к сайту и лучше выглядит. Добавить виджет поиска по товарам на сайт можно <a %s>в настройках страницы магазина</a> или в настройках внешнего вида сайта (меню <a %s>Виджеты</a>)."
readme.txt CHANGED
@@ -1,54 +1,54 @@
1
- === Ecwid Shopping Cart ===
2
  Contributors: ecwid
3
  Tags: ecwid, shopping cart, ecommerce, paypal, e-commerce, online store, store, shop, cart, digital goods, downloadable products, product catalog, facebook
4
  Requires at least: 3.5
5
  Tested up to: 4.5
6
- Stable tag: 4.1.3
7
 
8
  Powerful, easy to use shopping cart. Bank level PCI DSS Level 1 security. Sell on the go iPhone & Android app. Superb support. Free plan available.
9
 
10
  == Description ==
11
- Ecwid is a powerful, secure and easy-to-use shopping cart solution that allows you to sell on your WordPress website. Join over *900,000* sellers in *175* countries and sell globally with over *40* international payment options, real-time shipping integrations and support of *45* languages.
12
 
13
  = PCI DSS validated Level 1 Service Provider =
14
 
15
- Ecwid is PCI DSS Level 1 certified, which is the gold standard for e-commerce solutions worldwide. This means that when selling online with Ecwid, you won’t have any problems with the bank you do business with. With 40+ payment options and secure HTTPS checkout your Ecwid store is PCI DSS compliant from the beginning.
16
 
17
- = Free Support =
18
 
19
- Friendly and knowledgeable support experts available 24/5 so you can get immediate help when you need it. Free email support and community forums. Unlimited chat and phone support available in premium plans.
20
 
21
 
22
  = Merchant Mobile Apps =
23
 
24
- Ecwid provides free mobile applications for iOS and Android to manage your store and sell on the go. Scan products, track inventory, manage sales and accept payments using your mobile device as a POS station. Everything is automatically synchronized with your Wordpress store.
25
 
26
  = Unlimited Storage, Automatic Backups and Seamless Upgrades =
27
 
28
- With Ecwid, your store data is fully hosted on our secure servers. Regardless of the hosting service you use, your Ecwid store includes:
29
 
30
  * unlimited storage
31
  * regular backups
32
  * seamless upgrades and security updates
33
 
34
- So, you don't need to worry about software updates, security patches and server maintenance - we do that for you. Your online store gets all the new features and bug fixes automatically.
35
 
36
- = Facebook Storefront =
37
 
38
- Add your online store to Facebook and sell to millions of Facebook users. No addons needed. Ecwid will automatically synchronize your products, customers, orders and inventory between your WordPress and Facebook storefronts. Ecwid is the **#1 e-commerce app on Facebook**. Join!
39
 
40
  = Sell Everywhere =
41
 
42
- With Ecwid, you can include your online shop on multiple websites, blogs, social sites and marketplaces like *Google Shopping* and *eBay* and sell simultaneously everywhere. Add your store to as many sites as you want, manage it from one place.
43
 
44
  = Mobile Responsive Design =
45
 
46
- Ecwid works great on any Wordpress site, especially those running on mobile-optimized themes. Your 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](http://www.ecwid.com/demo?source=wporg-plugin-site)
47
 
48
 
49
- = Free Plan Available =
50
 
51
- The Free plan is always available with no hidden setup charges or transaction fees. Get your online store up and running at zero cost. As your business grows, Ecwid will grow with you. When the time is right, consider upgrading to one of our premium plans to get more robust ecommerce features. See also: [Ecwid plan and pricing](http://www.ecwid.com/pricing?source=wporg-plugin-site)
52
 
53
 
54
  = See Ecwid In Action =
@@ -104,6 +104,11 @@ http://codex.wordpress.org/Managing_Plugins#Installing_Plugins
104
  * [Ecwid site](http://www.ecwid.com/?source=wporg-plugin-site "Ecwid Site")
105
 
106
  == Changelog ==
 
 
 
 
 
107
  = 4.1.3 =
108
  - Improvements for the plugin Dashboard page layout and a few minor fixes.
109
 
1
+ === Ecwid Ecommerce Shopping Cart ===
2
  Contributors: ecwid
3
  Tags: ecwid, shopping cart, ecommerce, paypal, e-commerce, online store, store, shop, cart, digital goods, downloadable products, product catalog, facebook
4
  Requires at least: 3.5
5
  Tested up to: 4.5
6
+ Stable tag: 4.2
7
 
8
  Powerful, easy to use shopping cart. Bank level PCI DSS Level 1 security. Sell on the go iPhone & Android app. 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 online store on your WordPress website. Join over *900,000* sellers in *175* countries and sell globally with over *40* international payment options, real-time shipping integrations and support of *45* languages.
12
 
13
  = PCI DSS validated Level 1 Service Provider =
14
 
15
+ Ecwid Ecommerce Shopping Cart is PCI DSS Level 1 certified, which is the gold standard for e-commerce solutions worldwide. This means that when selling online with the Ecwid ecommerce plugin, you won’t have any problems with the bank you do business with. With 40+ payment options and secure HTTPS checkout, your Ecwid shopping cart is PCI DSS compliant from the beginning.
16
 
17
+ = Free Ecommerce Support =
18
 
19
+ Friendly and knowledgeable ecommerce support experts available 24/5 so you can get immediate help when you need it. Free email support and ecommerce community forums. Unlimited chat and phone support available in premium plans.
20
 
21
 
22
  = Merchant Mobile Apps =
23
 
24
+ Ecwid Ecommerce Shopping Cart provides free mobile applications for iOS and Android to manage your ecommerce store and sell on the go. Scan products, track inventory, manage sales and accept payments using your mobile device as a POS station. Your ecommerce data is automatically synchronized with your Wordpress shopping cart, Facebook store and other online storefronts.
25
 
26
  = Unlimited Storage, Automatic Backups and Seamless Upgrades =
27
 
28
+ With the Ecwid Ecommerce Shopping Cart, your online store data is fully hosted on our secure servers. Regardless of the WordPress hosting service you use, your Ecwid online store includes:
29
 
30
  * unlimited storage
31
  * regular backups
32
  * seamless upgrades and security updates
33
 
34
+ So you don't need to worry about ecommerce software updates, security patches and server maintenance we do that for you. Your online store gets all the new ecommerce features and bug fixes automatically.
35
 
36
+ = Facebook Ecommerce =
37
 
38
+ Add your online store to Facebook and sell to millions of Facebook users. No addons needed. Ecwid Ecommerce Shopping Cart will automatically synchronize your products, customers, orders and inventory between your WordPress and Facebook storefronts. Ecwid is the **#1 e-commerce app on Facebook**. Join!
39
 
40
  = Sell Everywhere =
41
 
42
+ With the Ecwid Ecommerce Shopping Cart, you can include your online shop on multiple websites, blogs, social sites and ecommerce marketplaces like *Google Shopping* and *eBay* and sell simultaneously everywhere. Add your online store to as many sites as you want, manage it from one place.
43
 
44
  = Mobile Responsive Design =
45
 
46
+ Ecwid Ecommerce Shopping Cart 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](http://www.ecwid.com/demo?source=wporg-plugin-site)
47
 
48
 
49
+ = Your Favorite Free Plugin =
50
 
51
+ Ecwid Ecommerce Shopping Cart offers a free plan that’s always available with no hidden setup charges or transaction fees. Get your online store up and running at zero cost. As your online shop grows, Ecwid grows with you. When the time is right, consider upgrading to one of our premium plans to get more robust ecommerce features and preferred support. See also: [Ecwid plan and pricing](http://www.ecwid.com/pricing?source=wporg-plugin-site)
52
 
53
 
54
  = See Ecwid In Action =
104
  * [Ecwid site](http://www.ecwid.com/?source=wporg-plugin-site "Ecwid Site")
105
 
106
  == Changelog ==
107
+ = 4.2 =
108
+ - **New Search Widget.** We released a new search widget that’s vastly improved over the previous one. You can enable it on the "Ecwid -> Advanced" settings page in you Wordpress backend. The new search widget is fully adaptive, automatically fits in its parent section, and looks great with any site’s theme. It also fits your sidebar even if it's very narrow, so feel free to add product search to your site sidebar in the "Appearance -> Widgets" section of your site admin.
109
+ - **Fixed a bug in the categories menu on mobile devices.** You might notice that the product categories menu disappeared on your site when it's opened on a mobile device with narrow screen. It's now fixed – the categories menu looks great on any screen size.
110
+ - Bug fixes and improvements for the Recently Viewed Products widget.
111
+
112
  = 4.1.3 =
113
  - Improvements for the plugin Dashboard page layout and a few minor fixes.
114
 
templates/advanced-settings.php CHANGED
@@ -120,6 +120,34 @@
120
  </div>
121
  </div>
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  </fieldset>
124
 
125
  <fieldset>
120
  </div>
121
  </div>
122
 
123
+ <hr <?php echo ecwid_migrations_is_original_plugin_version_older_than('4.1.3.1') ? '' : ' hidden'; ?> />
124
+
125
+ <div class="pure-control-group checkbox<?php echo ecwid_migrations_is_original_plugin_version_older_than('4.1.3.1') ? '' : ' hidden'; ?>">
126
+ <div class="label">
127
+ <label for="ecwid_use_new_search">
128
+
129
+ <input
130
+ id="ecwid_use_new_search"
131
+ name="ecwid_use_new_search"
132
+ type="checkbox"
133
+ <?php if (get_option('ecwid_use_new_search') == 'Y'): ?>
134
+ checked="checked"
135
+ <?php endif; ?>
136
+ value="Y"
137
+ />
138
+ <?php _e('Enable the new search widget', 'ecwid-shopping-cart'); ?>
139
+ </label>
140
+
141
+ <div class="note">
142
+ <?php echo sprintf(
143
+ __('The new search widget better adapts to your site and looks nicer. You can add the search bar to your site either in the <a %s>store page editor</a> or in the <a %s>Appearance -> Widgets</a> section.', 'ecwid-shopping-cart'),
144
+ 'href="post.php?post=' . ecwid_get_current_store_page_id() . '&action=edit&show-ecwid=true"',
145
+ 'href=widgets.php?from-ecwid=true'
146
+ ); ?>
147
+ </div>
148
+ </div>
149
+ </div>
150
+
151
  </fieldset>
152
 
153
  <fieldset>