Ecwid Ecommerce Shopping Cart - Version 3.4.2

Version Description

  • Fixed option to enable the new categories widget released in the v.3.4 .
Download this release

Release Info

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

Code changes from version 3.4.1 to 3.4.2

Files changed (3) hide show
  1. ecwid-shopping-cart.php +16 -10
  2. fonts/ecwid-logo.eot +0 -0
  3. readme.txt +4 -1
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: 3.4.1
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
@@ -417,12 +417,6 @@ function ecwid_check_version()
417
  $current_version = $plugin_data['Version'];
418
  $stored_version = get_option('ecwid_plugin_version', null);
419
 
420
-
421
- $migration_since_version = get_option('ecwid_plugin_migration_since_version', null);
422
- if (is_null($migration_since_version)) {
423
- update_option('ecwid_plugin_migration_since_version', $current_version);
424
- }
425
-
426
  $fresh_install = !$stored_version;
427
  $upgrade = $stored_version && version_compare($current_version, $stored_version) > 0;
428
 
@@ -447,6 +441,19 @@ function ecwid_check_version()
447
 
448
  add_option('ecwid_use_new_horizontal_categories', '');
449
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
450
  }
451
 
452
  function ecwid_migrations_is_original_plugin_version_older_than($version)
@@ -846,10 +853,10 @@ function ecwid_content_started($content)
846
 
847
  function ecwid_wrap_shortcode_content($content, $name, $attrs)
848
  {
849
- return "<!-- Ecwid shopping cart plugin v 3.4.1 --><!-- noptimize -->"
850
  . ecwid_get_scriptjs_code(@$attrs['lang'])
851
  . "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
852
- . "<!-- /noptimize --><!-- END Ecwid Shopping Cart v 3.4.1 -->";
853
  }
854
 
855
  function ecwid_get_scriptjs_code($force_lang = null) {
@@ -1377,7 +1384,6 @@ function ecwid_uninstall() {
1377
  delete_option('ecwid_api_check_time');
1378
  delete_option('ecwid_show_vote_message');
1379
  delete_option("ecwid_sso_secret_key");
1380
- delete_option("ecwid_installation_date");
1381
  delete_option('ecwid_hide_appearance_menu');
1382
  delete_option("ecwid_advanced_theme_layout");
1383
 
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: 3.4.2
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
417
  $current_version = $plugin_data['Version'];
418
  $stored_version = get_option('ecwid_plugin_version', null);
419
 
 
 
 
 
 
 
420
  $fresh_install = !$stored_version;
421
  $upgrade = $stored_version && version_compare($current_version, $stored_version) > 0;
422
 
441
 
442
  add_option('ecwid_use_new_horizontal_categories', '');
443
  }
444
+
445
+ $migration_since_version = get_option('ecwid_plugin_migration_since_version', null);
446
+
447
+ if ($migration_since_version == '3.4' || $migration_since_version == '3.4.1' || is_null($migration_since_version)) {
448
+
449
+ $install_date = get_option('ecwid_installation_date');
450
+ if ($install_date < strtotime("18 September 2015")) {
451
+ update_option('ecwid_plugin_migration_since_version', '0');
452
+ } elseif (is_null($migration_since_version)) {
453
+ update_option('ecwid_plugin_migration_since_version', $current_version);
454
+ }
455
+ }
456
+
457
  }
458
 
459
  function ecwid_migrations_is_original_plugin_version_older_than($version)
853
 
854
  function ecwid_wrap_shortcode_content($content, $name, $attrs)
855
  {
856
+ return "<!-- Ecwid shopping cart plugin v 3.4.2 --><!-- noptimize -->"
857
  . ecwid_get_scriptjs_code(@$attrs['lang'])
858
  . "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
859
+ . "<!-- /noptimize --><!-- END Ecwid Shopping Cart v 3.4.2 -->";
860
  }
861
 
862
  function ecwid_get_scriptjs_code($force_lang = null) {
1384
  delete_option('ecwid_api_check_time');
1385
  delete_option('ecwid_show_vote_message');
1386
  delete_option("ecwid_sso_secret_key");
 
1387
  delete_option('ecwid_hide_appearance_menu');
1388
  delete_option("ecwid_advanced_theme_layout");
1389
 
fonts/ecwid-logo.eot DELETED
Binary file
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ecwid
3
  Tags: ecwid, shopping cart, ecommerce, wordpress ecommerce, wp e-commerce, paypal, e-commerce, online store, store, shop, cart, online shop, shopping, digital goods, downloadable products, product catalog, ecomerce, products, facebook, f-commerce
4
  Requires at least: 2.8
5
  Tested up to: 4.3
6
- Stable tag: 3.4.1
7
 
8
  Ecwid is a full-featured shopping cart that can be added to any Wordpress site in less than 5 minutes. Start using Ecwid for free today.
9
 
@@ -107,6 +107,9 @@ http://codex.wordpress.org/Managing_Plugins#Installing_Plugins
107
  * [Ecwid site](http://www.ecwid.com/?source=wporg-plugin-site "Ecwid Site")
108
 
109
  == Changelog ==
 
 
 
110
  = 3.4.1 =
111
  - Minor fix for the "Twenty Sixteen” Wordpress theme
112
 
3
  Tags: ecwid, shopping cart, ecommerce, wordpress ecommerce, wp e-commerce, paypal, e-commerce, online store, store, shop, cart, online shop, shopping, digital goods, downloadable products, product catalog, ecomerce, products, facebook, f-commerce
4
  Requires at least: 2.8
5
  Tested up to: 4.3
6
+ Stable tag: 3.4.2
7
 
8
  Ecwid is a full-featured shopping cart that can be added to any Wordpress site in less than 5 minutes. Start using Ecwid for free today.
9
 
107
  * [Ecwid site](http://www.ecwid.com/?source=wporg-plugin-site "Ecwid Site")
108
 
109
  == Changelog ==
110
+ = 3.4.2 =
111
+ - Fixed option to enable the new categories widget released in the v.3.4 .
112
+
113
  = 3.4.1 =
114
  - Minor fix for the "Twenty Sixteen” Wordpress theme
115