Version Description
- May 19, 2020 =
- Improvements for the integration with the Yoast SEO plugin. There was a minor SEO issue with duplicates of the canonical tag on ecommerce store pages. The issue has been fixed and everything should work fine now.
- After the last release, the Storefront menu item did not display in the plugin settings in the WP admin. That didnt affect the store functionality, all the storefront settings and data stayed intact. We fixed the Storefront menu item you can navigate to the WordPress admin > Ecwid > Storefront and manage your store appearance as usual.
See full changelog
Download this release
Release Info
Developer | Ecwid |
Plugin | Ecwid Ecommerce Shopping Cart |
Version | 6.9.7 |
Comparing to | |
See all releases |
Code changes from version 6.9.6 to 6.9.7
ecwid-shopping-cart.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ecwid.com?partner=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 Ecommerce
|
8 |
-
Version: 6.9.
|
9 |
Author URI: https://ecwid.to/ecwid-site
|
10 |
License: GPLv2 or later
|
11 |
*/
|
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 Ecommerce
|
8 |
+
Version: 6.9.7
|
9 |
Author URI: https://ecwid.to/ecwid-site
|
10 |
License: GPLv2 or later
|
11 |
*/
|
includes/class-ecwid-admin.php
CHANGED
@@ -300,21 +300,23 @@ class Ecwid_Admin {
|
|
300 |
}
|
301 |
|
302 |
$slugs = array();
|
303 |
-
|
304 |
$result = array();
|
305 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
foreach ( $menu as $item ) {
|
307 |
|
308 |
$menu_item = array();
|
309 |
|
310 |
-
if( $item['type'] == 'menuItem' && $item['path'] == '
|
311 |
-
|
312 |
-
'title' => __('Storefront', 'ecwid-shopping-cart'),
|
313 |
-
'slug' => Ecwid_Admin_Storefront_Page::ADMIN_SLUG,
|
314 |
-
'url' => 'admin.php?page=' . Ecwid_Admin_Storefront_Page::ADMIN_SLUG
|
315 |
-
);
|
316 |
-
|
317 |
$result[] = $menu_storefront;
|
|
|
318 |
}
|
319 |
|
320 |
if( $this->maybe_hide_menu_item( $item ) ) {
|
@@ -352,6 +354,10 @@ class Ecwid_Admin {
|
|
352 |
|
353 |
$result[] = $menu_item;
|
354 |
}
|
|
|
|
|
|
|
|
|
355 |
|
356 |
return $result;
|
357 |
}
|
300 |
}
|
301 |
|
302 |
$slugs = array();
|
|
|
303 |
$result = array();
|
304 |
|
305 |
+
$is_storefront_menu_item_added = false;
|
306 |
+
$menu_storefront = array(
|
307 |
+
'title' => __('Storefront', 'ecwid-shopping-cart'),
|
308 |
+
'slug' => Ecwid_Admin_Storefront_Page::ADMIN_SLUG,
|
309 |
+
'url' => 'admin.php?page=' . Ecwid_Admin_Storefront_Page::ADMIN_SLUG
|
310 |
+
);
|
311 |
+
|
312 |
foreach ( $menu as $item ) {
|
313 |
|
314 |
$menu_item = array();
|
315 |
|
316 |
+
if( $item['type'] == 'menuItem' && $item['path'] == 'payments' ) {
|
317 |
+
|
|
|
|
|
|
|
|
|
|
|
318 |
$result[] = $menu_storefront;
|
319 |
+
$is_storefront_menu_item_added = true;
|
320 |
}
|
321 |
|
322 |
if( $this->maybe_hide_menu_item( $item ) ) {
|
354 |
|
355 |
$result[] = $menu_item;
|
356 |
}
|
357 |
+
|
358 |
+
if( !$is_storefront_menu_item_added ) {
|
359 |
+
$result[] = $menu_storefront;
|
360 |
+
}
|
361 |
|
362 |
return $result;
|
363 |
}
|
includes/integrations/class-ecwid-integration-wpseo.php
CHANGED
@@ -99,6 +99,8 @@ class Ecwid_Integration_WordPress_SEO_By_Yoast
|
|
99 |
// Disable titles, descriptions and canonical link on ecwid _escaped_fragment_ pages
|
100 |
public function disable_seo_on_escaped_fragment()
|
101 |
{
|
|
|
|
|
102 |
$is_store_page = Ecwid_Store_Page::is_store_page();
|
103 |
$is_escaped_fragment = array_key_exists('_escaped_fragment_', $_GET);
|
104 |
$is_seo_pb_url = Ecwid_Seo_Links::is_product_browser_url();
|
@@ -120,6 +122,22 @@ class Ecwid_Integration_WordPress_SEO_By_Yoast
|
|
120 |
remove_action( 'wpseo_head', array( $wpseo_front, 'metadesc' ), 10 );
|
121 |
}
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
public function disable_rewrite_titles()
|
124 |
{
|
125 |
global $wpseo_front;
|
99 |
// Disable titles, descriptions and canonical link on ecwid _escaped_fragment_ pages
|
100 |
public function disable_seo_on_escaped_fragment()
|
101 |
{
|
102 |
+
add_filter( 'wpseo_canonical', array($this, 'clear_canonical') );
|
103 |
+
|
104 |
$is_store_page = Ecwid_Store_Page::is_store_page();
|
105 |
$is_escaped_fragment = array_key_exists('_escaped_fragment_', $_GET);
|
106 |
$is_seo_pb_url = Ecwid_Seo_Links::is_product_browser_url();
|
122 |
remove_action( 'wpseo_head', array( $wpseo_front, 'metadesc' ), 10 );
|
123 |
}
|
124 |
|
125 |
+
public function clear_canonical( $canonical ) {
|
126 |
+
|
127 |
+
if ( Ecwid_Store_Page::is_store_page() ) {
|
128 |
+
$html_catalog_params = Ecwid_Seo_Links::maybe_extract_html_catalog_params();
|
129 |
+
$is_home_page = empty( $html_catalog_params );
|
130 |
+
|
131 |
+
$is_store_page_with_default_category = Ecwid_Store_Page::is_store_page_with_default_category();
|
132 |
+
|
133 |
+
if( !$is_home_page || $is_store_page_with_default_category ) {
|
134 |
+
return false;
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
return $canonical;
|
139 |
+
}
|
140 |
+
|
141 |
public function disable_rewrite_titles()
|
142 |
{
|
143 |
global $wpseo_front;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Ecwid
|
|
3 |
Tags: ecommerce, e-commerce, storefront, online store, sell
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 5.4
|
6 |
-
Stable tag: 6.9.
|
7 |
|
8 |
Powerful, easy to use ecommerce shopping cart. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
|
9 |
|
@@ -154,11 +154,8 @@ You can use Ecwid’s built-in import tools to copy your store products from any
|
|
154 |
|
155 |
== Changelog ==
|
156 |
|
157 |
-
= 6.9.
|
158 |
-
|
159 |
-
-
|
160 |
-
- Better warning messages for the site administrator about the hosting connection issues. Some hosting do not allow WordPress plugins connect external services and APIs in their code. That might be because of a hosting server misconfiguration or a tricky firewall setup. Good news is that the Ecwid plugin would work well even in such environment — you can add a store to your ecommerce site pages and sell. But some of the plugin feature would be disabled. For example, SEO tools wouldn't work and the embedded store control panel wouldn't show. We added extra warning messages and fallbacks to the plugin code to better handle such situations. If you face such a problem, we recommend contacting your hosting provider to make sure your server can connect the Ecwid API.
|
161 |
-
- Minor improvements for Twenty Twenty and NewShop themes.
|
162 |
-
- Minor fixes and improvements.
|
163 |
|
164 |
[See full changelog](https://raw.githubusercontent.com/Ecwid/ecwid-wordpress-plugin/master/CHANGELOG.txt)
|
3 |
Tags: ecommerce, e-commerce, storefront, online store, sell
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 5.4
|
6 |
+
Stable tag: 6.9.7
|
7 |
|
8 |
Powerful, easy to use ecommerce shopping cart. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
|
9 |
|
154 |
|
155 |
== Changelog ==
|
156 |
|
157 |
+
= 6.9.7 - May 19, 2020 =
|
158 |
+
- Improvements for the integration with the Yoast SEO plugin. There was a minor SEO issue with duplicates of the canonical tag on ecommerce store pages. The issue has been fixed and everything should work fine now.
|
159 |
+
- After the last release, the Storefront menu item did not display in the plugin settings in the WP admin. That didn’t affect the store functionality, all the storefront settings and data stayed intact. We fixed the Storefront menu item — you can navigate to the WordPress admin > Ecwid > Storefront and manage your store appearance as usual.
|
|
|
|
|
|
|
160 |
|
161 |
[See full changelog](https://raw.githubusercontent.com/Ecwid/ecwid-wordpress-plugin/master/CHANGELOG.txt)
|