Version Description
Apr 15, 2020 =
Improvements for the integration with the All in 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.
Minor changes in the plugin code to comply with the WordPress plugin marketplace recommendations.
See full changelog
Download this release
Release Info
Developer | Ecwid |
Plugin | Ecwid Ecommerce Shopping Cart |
Version | 6.9.4 |
Comparing to | |
See all releases |
Code changes from version 6.9.3 to 6.9.4
- ecwid-shopping-cart.php +1 -1
- includes/class-ecwid-config.php +2 -2
- includes/class-ecwid-store-page.php +15 -0
- includes/integrations/class-ecwid-integration-aiosp.php +6 -2
- includes/integrations/class-ecwid-integration-rank-math.php +1 -1
- includes/shortcodes/class-ecwid-shortcode-productbrowser.php +3 -1
- lib/ecwid_api_v3.php +2 -2
- readme.txt +6 -5
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.4
|
9 |
Author URI: https://ecwid.to/ecwid-site
|
10 |
License: GPLv2 or later
|
11 |
*/
|
includes/class-ecwid-config.php
CHANGED
@@ -60,12 +60,12 @@ class Ecwid_Config {
|
|
60 |
}
|
61 |
|
62 |
public static function get_oauth_appid() {
|
63 |
-
return EcwidPlatform::get( self::OAUTH_APPID, Ecwid_Api_V3::
|
64 |
}
|
65 |
|
66 |
public static function get_oauth_appsecret() {
|
67 |
|
68 |
-
return EcwidPlatform::get( self::OAUTH_APPSECRET, Ecwid_Api_V3::
|
69 |
}
|
70 |
|
71 |
public static function get_store_id() {
|
60 |
}
|
61 |
|
62 |
public static function get_oauth_appid() {
|
63 |
+
return EcwidPlatform::get( self::OAUTH_APPID, Ecwid_Api_V3::APP_ID );
|
64 |
}
|
65 |
|
66 |
public static function get_oauth_appsecret() {
|
67 |
|
68 |
+
return EcwidPlatform::get( self::OAUTH_APPSECRET, Ecwid_Api_V3::APP_PUBLIC_KEY );
|
69 |
}
|
70 |
|
71 |
public static function get_store_id() {
|
includes/class-ecwid-store-page.php
CHANGED
@@ -204,6 +204,21 @@ class Ecwid_Store_Page {
|
|
204 |
return in_array( $page_id, $pages );
|
205 |
}
|
206 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
public static function add_store_page( $page_id = 0 ) {
|
208 |
|
209 |
$pages = self::get_store_pages_array();
|
204 |
return in_array( $page_id, $pages );
|
205 |
}
|
206 |
|
207 |
+
public static function is_store_page_with_default_category() {
|
208 |
+
|
209 |
+
if( !self::is_store_page() ) {
|
210 |
+
return false;
|
211 |
+
}
|
212 |
+
|
213 |
+
$store_page_params = self::get_store_page_params();
|
214 |
+
|
215 |
+
if ( isset( $store_page_params['default_category_id'] ) && $store_page_params['default_category_id'] > 0 ) {
|
216 |
+
return true;
|
217 |
+
}
|
218 |
+
|
219 |
+
return false;
|
220 |
+
}
|
221 |
+
|
222 |
public static function add_store_page( $page_id = 0 ) {
|
223 |
|
224 |
$pages = self::get_store_pages_array();
|
includes/integrations/class-ecwid-integration-aiosp.php
CHANGED
@@ -36,13 +36,17 @@ class Ecwid_Integration_All_In_One_SEO_Pack
|
|
36 |
// Disable titles, descriptions and canonical link on ecwid _escaped_fragment_ pages
|
37 |
public function disable_seo_if_needed()
|
38 |
{
|
39 |
-
if (!
|
40 |
return;
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
43 |
$is_escaped_fragment = array_key_exists('_escaped_fragment_', $_GET);
|
44 |
$is_seo_links_store_page = Ecwid_Seo_Links::is_enabled() && Ecwid_Seo_Links::is_product_browser_url();
|
45 |
-
|
46 |
if ( !$is_escaped_fragment && !$is_seo_links_store_page ) {
|
47 |
return;
|
48 |
}
|
36 |
// Disable titles, descriptions and canonical link on ecwid _escaped_fragment_ pages
|
37 |
public function disable_seo_if_needed()
|
38 |
{
|
39 |
+
if ( !Ecwid_Store_Page::is_store_page() ) {
|
40 |
return;
|
41 |
}
|
42 |
|
43 |
+
if ( Ecwid_Store_Page::is_store_page_with_default_category() ) {
|
44 |
+
add_filter( 'aioseop_canonical_url', '__return_null' );
|
45 |
+
}
|
46 |
+
|
47 |
$is_escaped_fragment = array_key_exists('_escaped_fragment_', $_GET);
|
48 |
$is_seo_links_store_page = Ecwid_Seo_Links::is_enabled() && Ecwid_Seo_Links::is_product_browser_url();
|
49 |
+
|
50 |
if ( !$is_escaped_fragment && !$is_seo_links_store_page ) {
|
51 |
return;
|
52 |
}
|
includes/integrations/class-ecwid-integration-rank-math.php
CHANGED
@@ -52,7 +52,7 @@ class Ecwid_Integration_Rank_Math
|
|
52 |
}
|
53 |
|
54 |
public function sitemap_index() {
|
55 |
-
$now = date('c', time())
|
56 |
$sitemap_url = RankMath\Sitemap\Router::get_base_url( 'ecwid-sitemap.xml' );
|
57 |
|
58 |
return <<<XML
|
52 |
}
|
53 |
|
54 |
public function sitemap_index() {
|
55 |
+
$now = date('c', time());
|
56 |
$sitemap_url = RankMath\Sitemap\Router::get_base_url( 'ecwid-sitemap.xml' );
|
57 |
|
58 |
return <<<XML
|
includes/shortcodes/class-ecwid-shortcode-productbrowser.php
CHANGED
@@ -49,7 +49,7 @@ class Ecwid_Shortcode_ProductBrowser extends Ecwid_Shortcode_Base {
|
|
49 |
if ( $ecwid_current_theme ) {
|
50 |
|
51 |
$code = <<<HTML
|
52 |
-
<script>
|
53 |
if( typeof document.documentElement.id == 'undefined' || document.documentElement.id === '' ) {
|
54 |
document.documentElement.id = 'ecwid_html';
|
55 |
}
|
@@ -86,7 +86,9 @@ HTML;
|
|
86 |
protected function _get_js_switch_dynamic( $static_container_id, $dynamic_container_id ) {
|
87 |
return <<<HTML
|
88 |
<script data-cfasync="false" type="text/javascript">
|
|
|
89 |
window.ec.storefront.staticPages = window.ec.storefront.staticPages || Object();
|
|
|
90 |
ec.storefront.staticPages.staticStorefrontEnabled = true;
|
91 |
ec.storefront.staticPages.staticContainerID = '$static_container_id';
|
92 |
ec.storefront.staticPages.dynamicContainerID = '$dynamic_container_id';
|
49 |
if ( $ecwid_current_theme ) {
|
50 |
|
51 |
$code = <<<HTML
|
52 |
+
<script data-cfasync="false" >
|
53 |
if( typeof document.documentElement.id == 'undefined' || document.documentElement.id === '' ) {
|
54 |
document.documentElement.id = 'ecwid_html';
|
55 |
}
|
86 |
protected function _get_js_switch_dynamic( $static_container_id, $dynamic_container_id ) {
|
87 |
return <<<HTML
|
88 |
<script data-cfasync="false" type="text/javascript">
|
89 |
+
window.ec.storefront = window.ec.storefront || {};
|
90 |
window.ec.storefront.staticPages = window.ec.storefront.staticPages || Object();
|
91 |
+
|
92 |
ec.storefront.staticPages.staticStorefrontEnabled = true;
|
93 |
ec.storefront.staticPages.staticContainerID = '$static_container_id';
|
94 |
ec.storefront.staticPages.dynamicContainerID = '$dynamic_container_id';
|
lib/ecwid_api_v3.php
CHANGED
@@ -4,8 +4,8 @@ require_once dirname(__FILE__) . '/ecwid_platform.php';
|
|
4 |
|
5 |
class Ecwid_Api_V3
|
6 |
{
|
7 |
-
const
|
8 |
-
const
|
9 |
|
10 |
const TOKEN_OPTION_NAME = 'ecwid_oauth_token';
|
11 |
|
4 |
|
5 |
class Ecwid_Api_V3
|
6 |
{
|
7 |
+
const APP_ID = 'RD4o2KQimiGUrFZc';
|
8 |
+
const APP_PUBLIC_KEY = 'jEPVdcA3KbzKVrG8FZDgNnsY3wKHDTF8';
|
9 |
|
10 |
const TOKEN_OPTION_NAME = 'ecwid_oauth_token';
|
11 |
|
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 |
|
@@ -153,9 +153,10 @@ You can use Ecwid’s built-in import tools to copy your store products from any
|
|
153 |
* [Ecwid Help Center](http://help.ecwid.com "Ecwid Help")
|
154 |
|
155 |
== Changelog ==
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
-
|
|
|
160 |
|
161 |
[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.4
|
7 |
|
8 |
Powerful, easy to use ecommerce shopping cart. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
|
9 |
|
153 |
* [Ecwid Help Center](http://help.ecwid.com "Ecwid Help")
|
154 |
|
155 |
== Changelog ==
|
156 |
+
|
157 |
+
= 6.9.4 - Apr 15, 2020 =
|
158 |
+
|
159 |
+
- Improvements for the integration with the All in 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.
|
160 |
+
- Minor changes in the plugin code to comply with the WordPress plugin marketplace recommendations.
|
161 |
|
162 |
[See full changelog](https://raw.githubusercontent.com/Ecwid/ecwid-wordpress-plugin/master/CHANGELOG.txt)
|