Version Description
- May 29, 2019 =
- Fixed compatibility with WordPress versions older 5.0
- Fixed a PHP error message ("Can't use function return value in write context ") for PHP versions older 5.5
- Minor fixes and improvements.
Download this release
Release Info
Developer | Ecwid |
Plugin | Ecwid Ecommerce Shopping Cart |
Version | 6.7.3 |
Comparing to | |
See all releases |
Code changes from version 6.7.2 to 6.7.3
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 Ecommerce
|
8 |
-
Version: 6.7.
|
9 |
Author URI: https://ecwid.to/ecwid-site
|
10 |
*/
|
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.7.3
|
9 |
Author URI: https://ecwid.to/ecwid-site
|
10 |
*/
|
11 |
|
includes/class-ecwid-static-page.php
CHANGED
@@ -91,6 +91,12 @@ class Ecwid_Static_Page {
|
|
91 |
|
92 |
protected static function _maybe_fetch_data()
|
93 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
$store_page_params = Ecwid_Store_Page::get_store_page_params();
|
95 |
$endpoint_params = false;
|
96 |
|
@@ -104,7 +110,7 @@ class Ecwid_Static_Page {
|
|
104 |
$accept_language = apply_filters( 'ecwid_lang', $_SERVER['HTTP_ACCEPT_LANGUAGE'] );
|
105 |
$params['lang'] = $accept_language;
|
106 |
|
107 |
-
foreach (
|
108 |
$name = $attribute['name'];
|
109 |
if ( @$attribute['is_storefront_api'] && isset( $store_page_params[$name] ) ) {
|
110 |
if ( @$attribute['type'] == 'boolean' ) {
|
@@ -251,7 +257,8 @@ class Ecwid_Static_Page {
|
|
251 |
|
252 |
public static function is_enabled_static_home_page()
|
253 |
{
|
254 |
-
$
|
|
|
255 |
if( !$is_home_page ) {
|
256 |
return false;
|
257 |
}
|
91 |
|
92 |
protected static function _maybe_fetch_data()
|
93 |
{
|
94 |
+
$version = get_bloginfo('version');
|
95 |
+
$pb_attribures = array();
|
96 |
+
if ( strpos( $version, '5.0' ) === 0 || version_compare( $version, '5.0' ) > 0 ) {
|
97 |
+
$pb_attribures = Ecwid_Product_Browser::get_attributes();
|
98 |
+
}
|
99 |
+
|
100 |
$store_page_params = Ecwid_Store_Page::get_store_page_params();
|
101 |
$endpoint_params = false;
|
102 |
|
110 |
$accept_language = apply_filters( 'ecwid_lang', $_SERVER['HTTP_ACCEPT_LANGUAGE'] );
|
111 |
$params['lang'] = $accept_language;
|
112 |
|
113 |
+
foreach ( $pb_attribures as $attribute ) {
|
114 |
$name = $attribute['name'];
|
115 |
if ( @$attribute['is_storefront_api'] && isset( $store_page_params[$name] ) ) {
|
116 |
if ( @$attribute['type'] == 'boolean' ) {
|
257 |
|
258 |
public static function is_enabled_static_home_page()
|
259 |
{
|
260 |
+
$html_catalog_params = Ecwid_Seo_Links::maybe_extract_html_catalog_params();
|
261 |
+
$is_home_page = empty( $html_catalog_params );
|
262 |
if( !$is_home_page ) {
|
263 |
return false;
|
264 |
}
|
includes/shortcodes/class-ecwid-shortcode-productbrowser.php
CHANGED
@@ -31,7 +31,9 @@ class Ecwid_Shortcode_ProductBrowser extends Ecwid_Shortcode_Base {
|
|
31 |
|
32 |
$default_render = parent::render();
|
33 |
|
34 |
-
|
|
|
|
|
35 |
return $default_render;
|
36 |
}
|
37 |
|
31 |
|
32 |
$default_render = parent::render();
|
33 |
|
34 |
+
$option_print_html_catalog = get_option('ecwid_print_html_catalog', 'Y');
|
35 |
+
|
36 |
+
if ( !Ecwid_Static_Page::is_data_available() || @$this->_params['noHTMLCatalog'] || empty( $option_print_html_catalog ) ) {
|
37 |
return $default_render;
|
38 |
}
|
39 |
|
js/frontend.js
CHANGED
@@ -39,8 +39,10 @@ jQuery(document).ready(function() {
|
|
39 |
ecwidShoppingCartMakeStoreLinksUseApiCall(jQuery("a[data-ecwid-page]"));
|
40 |
|
41 |
|
42 |
-
Ecwid
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
46 |
});
|
39 |
ecwidShoppingCartMakeStoreLinksUseApiCall(jQuery("a[data-ecwid-page]"));
|
40 |
|
41 |
|
42 |
+
if ( typeof Ecwid != 'undefined' ) {
|
43 |
+
Ecwid.OnAPILoaded.add(function() {
|
44 |
+
var font = window.ec.config.chameleonDefaults.font['font-family'] || '';
|
45 |
+
document.cookie = "ec_store_chameleon_font=" + font;
|
46 |
+
});
|
47 |
+
}
|
48 |
});
|
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.2
|
6 |
-
Stable tag: 6.7.
|
7 |
|
8 |
Powerful, easy to use ecommerce shopping cart. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
|
9 |
|
@@ -153,6 +153,11 @@ You can use Ecwid’s built-in import tools to copy your store products from any
|
|
153 |
* [Ecwid eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
|
154 |
|
155 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
156 |
= 6.7.2 - May 28, 2019 =
|
157 |
- **SEO improvement: new ld+json and improved [schema.org](https://schema.org/) markup on product pages**. Ecwid adds product ecommerce data to product pages in a SEO-friendly microdata format so that search engines can index your store pages and better display them in search results. In this update, we enhanced the structured products data on store pages to make it meet the latest Google recommendations. Also, the plugin now adds the same product data in ld+json format in your storefront, which is an alternative way to expose your e-commerce information to search engines. This should increase chances the Google bot will crawl and index your product catalog well.
|
158 |
- **Improved compatibility with WPML (part 3): hreflang tags for SEO**. WPML is a popular plugin to build multilingual sites. As we mentioned before, Ecwid now supports full-featured multilingual storefronts, too. In this update, we further improved WPML support in Ecwid. Now, if you have enabled the multilingual mode in your ecommerce store and are using WPML on your WordPress site, your shop pages will have links to the alternative language versions so that search engines will know which version to display to customer. Those alternative links are specified in hreflang tags in your storefront — special HTML elements aimed to link language versions of the same page between each other.
|
3 |
Tags: ecommerce, e-commerce, storefront, online store, sell
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 5.2
|
6 |
+
Stable tag: 6.7.3
|
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 eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
|
154 |
|
155 |
== Changelog ==
|
156 |
+
= 6.7.3 - May 29, 2019 =
|
157 |
+
- Fixed compatibility with WordPress versions older 5.0
|
158 |
+
- Fixed a PHP error message ("Can't use function return value in write context ") for PHP versions older 5.5
|
159 |
+
- Minor fixes and improvements.
|
160 |
+
|
161 |
= 6.7.2 - May 28, 2019 =
|
162 |
- **SEO improvement: new ld+json and improved [schema.org](https://schema.org/) markup on product pages**. Ecwid adds product ecommerce data to product pages in a SEO-friendly microdata format so that search engines can index your store pages and better display them in search results. In this update, we enhanced the structured products data on store pages to make it meet the latest Google recommendations. Also, the plugin now adds the same product data in ld+json format in your storefront, which is an alternative way to expose your e-commerce information to search engines. This should increase chances the Google bot will crawl and index your product catalog well.
|
163 |
- **Improved compatibility with WPML (part 3): hreflang tags for SEO**. WPML is a popular plugin to build multilingual sites. As we mentioned before, Ecwid now supports full-featured multilingual storefronts, too. In this update, we further improved WPML support in Ecwid. Now, if you have enabled the multilingual mode in your ecommerce store and are using WPML on your WordPress site, your shop pages will have links to the alternative language versions so that search engines will know which version to display to customer. Those alternative links are specified in hreflang tags in your storefront — special HTML elements aimed to link language versions of the same page between each other.
|