Ecwid Ecommerce Shopping Cart - Version 2.7.1

Version Description

  • Fixed a few issues with the store appearance settings that were discovered in the recently released update (v2.7)
Download this release

Release Info

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

Code changes from version 2.7 to 2.7.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: 2.7
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
@@ -33,6 +33,7 @@ add_shortcode('ecwid_productbrowser', 'ecwid_productbrowser_shortcode');
33
 
34
  if ( is_admin() ){
35
  add_action('admin_init', 'ecwid_settings_api_init');
 
36
  add_action('admin_notices', 'ecwid_show_admin_messages');
37
  add_action('admin_menu', 'ecwid_options_add_page');
38
  add_action('wp_dashboard_setup', 'ecwid_add_dashboard_widgets' );
@@ -282,6 +283,14 @@ function ecwid_minifier_compatibility()
282
  }
283
  }
284
 
 
 
 
 
 
 
 
 
285
  function ecwid_override_option($name, $new_value = null)
286
  {
287
  static $overridden = array();
@@ -646,10 +655,10 @@ function ecwid_content_started($content)
646
 
647
  function ecwid_wrap_shortcode_content($content, $name)
648
  {
649
- return "<!-- Ecwid shopping cart plugin v 2.7 -->"
650
  . ecwid_get_scriptjs_code()
651
  . "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
652
- . "<!-- END Ecwid Shopping Cart v 2.7 -->";
653
  }
654
 
655
  function ecwid_get_scriptjs_code($force_lang = null) {
@@ -693,7 +702,7 @@ function ecwid_minicart_shortcode($attributes) {
693
  );
694
 
695
  $layout = $params['layout'];
696
- if (!in_array($layout, array('', 'attachToCategories', 'floating', 'Mini', 'MiniAttachToProductBrowser'))) {
697
  $layout = 'attachToCategories';
698
  }
699
 
@@ -1054,7 +1063,7 @@ EOT;
1054
 
1055
  add_option("ecwid_installation_date", time());
1056
 
1057
- add_option('ecwid_show_appearance_menu', get_option('ecwid_store_id') == ECWID_DEMO_STORE_ID ? 'N' : 'Y', 'yes');
1058
  // Does not affect updates, automatically turned on for new users only
1059
  add_option("ecwid_advanced_theme_layout", get_option('ecwid_store_id') == ECWID_DEMO_STORE_ID ? 'Y' : 'N', 'yes');
1060
 
@@ -1153,7 +1162,7 @@ function ecwid_options_add_page() {
1153
  'ecwid_general_settings_do_page'
1154
  );
1155
 
1156
- if (get_option('ecwid_show_appearance_menu') == 'Y') {
1157
  add_submenu_page(
1158
  'ecwid',
1159
  __('Appearance settings', 'ecwid-shopping-cart'),
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: 2.7.1
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
33
 
34
  if ( is_admin() ){
35
  add_action('admin_init', 'ecwid_settings_api_init');
36
+ add_action('admin_init', 'ecwid_check_version');
37
  add_action('admin_notices', 'ecwid_show_admin_messages');
38
  add_action('admin_menu', 'ecwid_options_add_page');
39
  add_action('wp_dashboard_setup', 'ecwid_add_dashboard_widgets' );
283
  }
284
  }
285
 
286
+ function ecwid_check_version()
287
+ {
288
+ if (is_null(get_option('ecwid_plugin_version', null))) {
289
+ $plugin_data = get_plugin_data(__FILE__);
290
+ add_option('ecwid_plugin_version', $plugin_data['Version']);
291
+ }
292
+ }
293
+
294
  function ecwid_override_option($name, $new_value = null)
295
  {
296
  static $overridden = array();
655
 
656
  function ecwid_wrap_shortcode_content($content, $name)
657
  {
658
+ return "<!-- Ecwid shopping cart plugin v 2.7.1 -->"
659
  . ecwid_get_scriptjs_code()
660
  . "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
661
+ . "<!-- END Ecwid Shopping Cart v 2.7.1 -->";
662
  }
663
 
664
  function ecwid_get_scriptjs_code($force_lang = null) {
702
  );
703
 
704
  $layout = $params['layout'];
705
+ if (!in_array($layout, array('', 'attachToCategories', 'floating', 'Mini', 'MiniAttachToProductBrowser'), true)) {
706
  $layout = 'attachToCategories';
707
  }
708
 
1063
 
1064
  add_option("ecwid_installation_date", time());
1065
 
1066
+ add_option('ecwid_hide_appearance_menu', get_option('ecwid_store_id') == ECWID_DEMO_STORE_ID ? 'Y' : 'N', 'yes');
1067
  // Does not affect updates, automatically turned on for new users only
1068
  add_option("ecwid_advanced_theme_layout", get_option('ecwid_store_id') == ECWID_DEMO_STORE_ID ? 'Y' : 'N', 'yes');
1069
 
1162
  'ecwid_general_settings_do_page'
1163
  );
1164
 
1165
+ if (get_option('ecwid_hide_appearance_menu') != 'Y') {
1166
  add_submenu_page(
1167
  'ecwid',
1168
  __('Appearance settings', 'ecwid-shopping-cart'),
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.0
6
- Stable tag: 2.7
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
 
@@ -110,6 +110,9 @@ http://codex.wordpress.org/Managing_Plugins#Installing_Plugins
110
  * [Ecwid site](http://www.ecwid.com/?source=wporg-plugin-site "Ecwid Site")
111
 
112
  == Changelog ==
 
 
 
113
  = 2.7 =
114
  - **A brand new 'Add store' tool in WordPress editor toolbar.** Ecwid is now integrated with WordPress WYSIWYG editor: click the 'Add Store' button in the page editor toolbar, chose widgets to show, adjust the appearance and place your store on any page of your site. Now you can decide what store widgets to show and configure store appearance right in the page editor.
115
  - **New "[ecwid]" shortcode.** The new shortcode allows you to control every aspect of your store appearance by means of tweaking the shortcode parameters right in the store page code. Display/hide the search widget, choose the minicart layout you like, display different store categories on different site pages and so on. This shortcode serves the "Add Store" button mentioned above and almost every tweak is available in the new "Add Store" window so you don't have to edit any code in most cases. Still, an advanced Wordpress user may consider using shortcodes for more flexible and quick integration.
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.0
6
+ Stable tag: 2.7.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
 
110
  * [Ecwid site](http://www.ecwid.com/?source=wporg-plugin-site "Ecwid Site")
111
 
112
  == Changelog ==
113
+ = 2.7.1 =
114
+ - Fixed a few issues with the store appearance settings that were discovered in the recently released update (v2.7)
115
+
116
  = 2.7 =
117
  - **A brand new 'Add store' tool in WordPress editor toolbar.** Ecwid is now integrated with WordPress WYSIWYG editor: click the 'Add Store' button in the page editor toolbar, chose widgets to show, adjust the appearance and place your store on any page of your site. Now you can decide what store widgets to show and configure store appearance right in the page editor.
118
  - **New "[ecwid]" shortcode.** The new shortcode allows you to control every aspect of your store appearance by means of tweaking the shortcode parameters right in the store page code. Display/hide the search widget, choose the minicart layout you like, display different store categories on different site pages and so on. This shortcode serves the "Add Store" button mentioned above and almost every tweak is available in the new "Add Store" window so you don't have to edit any code in most cases. Still, an advanced Wordpress user may consider using shortcodes for more flexible and quick integration.
templates/advanced-settings.php CHANGED
@@ -8,7 +8,7 @@
8
 
9
  <fieldset>
10
 
11
- <?php if (get_option('ecwid_show_appearance_menu') == 'Y'): ?>
12
  <div class="pure-control-group bottom-border">
13
 
14
  <?php if (ecwid_is_paid_account()): ?>
8
 
9
  <fieldset>
10
 
11
+ <?php if (get_option('ecwid_hide_appearance_menu') != 'Y'): ?>
12
  <div class="pure-control-group bottom-border">
13
 
14
  <?php if (ecwid_is_paid_account()): ?>