Ecwid Ecommerce Shopping Cart - Version 1.8.1

Version Description

  • [!] Fixed meta title tag display issue on the main store page appeared with the version 1.8 : in some cases, the store page title tag was stripped. Now it should work OK.
Download this release

Release Info

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

Code changes from version 1.8 to 1.8.1

Files changed (2) hide show
  1. ecwid-shopping-cart.php +8 -6
  2. readme.txt +4 -1
ecwid-shopping-cart.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Ecwid Shopping Cart
4
  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
  Author: Ecwid Team
7
- Version: 1.8
8
  Author URI: http://www.ecwid.com?source=wporg
9
  */
10
 
@@ -97,10 +97,10 @@ function ecwid_override_option($name, $new_value = null)
97
  }
98
  }
99
 
100
- function ecwid_seo_compatibility_init()
101
  {
102
  if (!array_key_exists('_escaped_fragment_', $_GET) || !ecwid_page_has_productbrowser()) {
103
- return;
104
  }
105
 
106
  // Default wordpress canonical
@@ -120,6 +120,8 @@ function ecwid_seo_compatibility_init()
120
  $aioseop_options['aiosp_can'] = false;
121
  // Title for All in One SEO Pack
122
  remove_filter('wp_title', array($aiosp, 'wp_title'), 20);
 
 
123
  }
124
 
125
  function ecwid_seo_compatibility_restore()
@@ -246,7 +248,7 @@ function ecwid_seo_title($content) {
246
  $ecwid_seo_title= ecwid_get_product_and_category($params['category'], $params['id']);
247
  }
248
  elseif(empty($params['category'])){
249
- $ecwid_product = $api->get_product($params['id']);
250
  $ecwid_seo_title .=$ecwid_product['name'];
251
  if(is_array($ecwid_product['categories'])){
252
  foreach ($ecwid_product['categories'] as $ecwid_category){
@@ -261,7 +263,7 @@ function ecwid_seo_title($content) {
261
 
262
  elseif ($params['mode'] == 'category'){
263
  $api = ecwid_new_product_api();
264
- $ecwid_category = $api->get_category($params['id']);
265
  $ecwid_seo_title = $ecwid_category['name'];
266
  }
267
  }
@@ -272,7 +274,7 @@ function ecwid_seo_title($content) {
272
 
273
  } else {
274
  return $content;
275
- }
276
  }
277
 
278
  function ecwid_wrap_shortcode_content($content)
4
  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
  Author: Ecwid Team
7
+ Version: 1.8.1
8
  Author URI: http://www.ecwid.com?source=wporg
9
  */
10
 
97
  }
98
  }
99
 
100
+ function ecwid_seo_compatibility_init($title)
101
  {
102
  if (!array_key_exists('_escaped_fragment_', $_GET) || !ecwid_page_has_productbrowser()) {
103
+ return $title;
104
  }
105
 
106
  // Default wordpress canonical
120
  $aioseop_options['aiosp_can'] = false;
121
  // Title for All in One SEO Pack
122
  remove_filter('wp_title', array($aiosp, 'wp_title'), 20);
123
+
124
+ return $title;
125
  }
126
 
127
  function ecwid_seo_compatibility_restore()
248
  $ecwid_seo_title= ecwid_get_product_and_category($params['category'], $params['id']);
249
  }
250
  elseif(empty($params['category'])){
251
+ $ecwid_product = $api->get_product($params['id']);
252
  $ecwid_seo_title .=$ecwid_product['name'];
253
  if(is_array($ecwid_product['categories'])){
254
  foreach ($ecwid_product['categories'] as $ecwid_category){
263
 
264
  elseif ($params['mode'] == 'category'){
265
  $api = ecwid_new_product_api();
266
+ $ecwid_category = $api->get_category($params['id']);
267
  $ecwid_seo_title = $ecwid_category['name'];
268
  }
269
  }
274
 
275
  } else {
276
  return $content;
277
+ }
278
  }
279
 
280
  function ecwid_wrap_shortcode_content($content)
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Ecwid Team
3
  Tags: ecwid, shopping cart, ecommerce, e-commerce, paypal, google checkout, 2checkout, store, shop, product catalog, inventory
4
  Requires at least: 2.8
5
  Tested up to: 3.6
6
- Stable tag: 1.8
7
 
8
  Ecwid is a free full-featured shopping cart that can easily be added to any blog
9
  and takes less than 5 minutes to set up.
@@ -78,6 +78,9 @@ http://codex.wordpress.org/Managing_Plugins#Installing_Plugins
78
  - Knowledge Base: [http://kb.ecwid.com](http://kb.ecwid.com)
79
 
80
  == Changelog ==
 
 
 
81
  = 1.8 =
82
  - [+] Improved compatibility with popular SEO plugins (Yoast WordPress SEO, All in one SEO Pack and Platinum SEO pack) : now Ecwid prevents them from generating wrong title and canonical tags on the product pages.
83
  - [+] Ability to display separate categories on separate pages with custom shortcodes. Now, the plugin allows setting different default categories for different store pages. So if you have multiple store pages and want to display specific categories on them, you can set up a default category for each of them in the [ecwid\_productbrowser] shortcode like this: [ecwid\_productbrowser default\_category\_id="12345"] . On the other hand, if you have one store page, you can set the default category on the plugin settings page as usual.
3
  Tags: ecwid, shopping cart, ecommerce, e-commerce, paypal, google checkout, 2checkout, store, shop, product catalog, inventory
4
  Requires at least: 2.8
5
  Tested up to: 3.6
6
+ Stable tag: 1.8.1
7
 
8
  Ecwid is a free full-featured shopping cart that can easily be added to any blog
9
  and takes less than 5 minutes to set up.
78
  - Knowledge Base: [http://kb.ecwid.com](http://kb.ecwid.com)
79
 
80
  == Changelog ==
81
+ = 1.8.1 =
82
+ - [!] Fixed meta title tag display issue on the main store page appeared with the version 1.8 : in some cases, the store page title tag was stripped. Now it should work OK.
83
+
84
  = 1.8 =
85
  - [+] Improved compatibility with popular SEO plugins (Yoast WordPress SEO, All in one SEO Pack and Platinum SEO pack) : now Ecwid prevents them from generating wrong title and canonical tags on the product pages.
86
  - [+] Ability to display separate categories on separate pages with custom shortcodes. Now, the plugin allows setting different default categories for different store pages. So if you have multiple store pages and want to display specific categories on them, you can set up a default category for each of them in the [ecwid\_productbrowser] shortcode like this: [ecwid\_productbrowser default\_category\_id="12345"] . On the other hand, if you have one store page, you can set the default category on the plugin settings page as usual.