Version Description
- Fixed an issue in the new integrated search functionality causing javascript errors on site pages where no store widgets are installed. Feel free to enable and try the new search feature on the plugin settings (Ecwid Store -> Advanced)
- Improvement for the Single Sign On. If you have Single Sign On (SSO) enabled in the plugin settings and your customer do not have name specified in their profile, the store account will use their nickname as the firstname. This will make store more friendly for your new buyers. (edited)
Download this release
Release Info
Developer | Ecwid |
Plugin | Ecwid Ecommerce Shopping Cart |
Version | 4.9.1 |
Comparing to | |
See all releases |
Code changes from version 4.9 to 4.9.1
- ecwid-shopping-cart.php +8 -3
- js/product.js +11 -9
- lib/ecwid_api_v3.php +4 -0
- readme.txt +5 -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: 4.9
|
9 |
Author URI: http://www.ecwid.com?source=wporg
|
10 |
*/
|
11 |
|
@@ -1869,7 +1869,6 @@ function ecwid_create_store() {
|
|
1869 |
|
1870 |
} else {
|
1871 |
|
1872 |
-
|
1873 |
header( 'HTTP/1.1 ' . $result['response']['code'] . ' ' . $result['response']['message'] );
|
1874 |
}
|
1875 |
}
|
@@ -2586,12 +2585,18 @@ JS;
|
|
2586 |
if ($current_user->ID) {
|
2587 |
$meta = get_user_meta($current_user->ID);
|
2588 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2589 |
$user_data = array(
|
2590 |
'userId' => "{$current_user->ID}",
|
2591 |
'profile' => array(
|
2592 |
'email' => $current_user->user_email,
|
2593 |
'billingPerson' => array(
|
2594 |
-
'name' => $
|
2595 |
)
|
2596 |
)
|
2597 |
);
|
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: 4.9.1
|
9 |
Author URI: http://www.ecwid.com?source=wporg
|
10 |
*/
|
11 |
|
1869 |
|
1870 |
} else {
|
1871 |
|
|
|
1872 |
header( 'HTTP/1.1 ' . $result['response']['code'] . ' ' . $result['response']['message'] );
|
1873 |
}
|
1874 |
}
|
2585 |
if ($current_user->ID) {
|
2586 |
$meta = get_user_meta($current_user->ID);
|
2587 |
|
2588 |
+
$name = $meta['first_name'][0] . ' ' . $meta['last_name'][0];
|
2589 |
+
|
2590 |
+
if ($name == ' ') {
|
2591 |
+
$name = $meta['nickname'][0];
|
2592 |
+
}
|
2593 |
+
|
2594 |
$user_data = array(
|
2595 |
'userId' => "{$current_user->ID}",
|
2596 |
'profile' => array(
|
2597 |
'email' => $current_user->user_email,
|
2598 |
'billingPerson' => array(
|
2599 |
+
'name' => $name
|
2600 |
)
|
2601 |
)
|
2602 |
);
|
js/product.js
CHANGED
@@ -1,18 +1,20 @@
|
|
1 |
jQuery(document).ready(function() {
|
2 |
-
Ecwid
|
3 |
-
|
|
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
$canonical = jQuery('link[rel=canonical]');
|
10 |
if ($canonical.length == 0) {
|
11 |
$canonical = jQuery('<link rel="canonical">').appendTo('head');
|
12 |
}
|
13 |
$canonical.attr('href', result);
|
14 |
}
|
15 |
-
|
16 |
-
|
17 |
-
|
|
|
18 |
});
|
1 |
jQuery(document).ready(function() {
|
2 |
+
if (typeof Ecwid != 'undefined') {
|
3 |
+
Ecwid.OnPageLoaded.add(function (page) {
|
4 |
+
if (page.type == 'PRODUCT') {
|
5 |
|
6 |
+
jQuery.getJSON(
|
7 |
+
ecwidProduct.ajaxurl,
|
8 |
+
{'action': 'ecwid_get_post_link', 'product_id': page.productId},
|
9 |
+
function (result) {
|
10 |
$canonical = jQuery('link[rel=canonical]');
|
11 |
if ($canonical.length == 0) {
|
12 |
$canonical = jQuery('<link rel="canonical">').appendTo('head');
|
13 |
}
|
14 |
$canonical.attr('href', result);
|
15 |
}
|
16 |
+
);
|
17 |
+
}
|
18 |
+
});
|
19 |
+
}
|
20 |
});
|
lib/ecwid_api_v3.php
CHANGED
@@ -224,6 +224,10 @@ class Ecwid_Api_V3
|
|
224 |
Ecwid_Http::POLICY_RETURN_VERBOSE
|
225 |
));
|
226 |
|
|
|
|
|
|
|
|
|
227 |
$result = $request->do_request();
|
228 |
|
229 |
return @$result['code'] == 200;
|
224 |
Ecwid_Http::POLICY_RETURN_VERBOSE
|
225 |
));
|
226 |
|
227 |
+
if (!$request) {
|
228 |
+
return false;
|
229 |
+
}
|
230 |
+
|
231 |
$result = $request->do_request();
|
232 |
|
233 |
return @$result['code'] == 200;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Ecwid
|
|
3 |
Tags: ecommerce, downloadable products, Facebook ecommerce, online store, paypal, product catalog, shop, shopping cart, store
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.7
|
6 |
-
Stable tag: 4.9
|
7 |
|
8 |
Powerful, easy to use ecommerce shopping cart. Bank level PCI DSS Level 1 security. iPhone & Android apps. Superb support. Free plan available.
|
9 |
|
@@ -149,6 +149,10 @@ You can use Ecwid’s built-in import tools to copy your store products from any
|
|
149 |
* [Ecwid eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
|
150 |
|
151 |
== Changelog ==
|
|
|
|
|
|
|
|
|
152 |
= 4.9 =
|
153 |
- **Integration with Wordpress search**. This new feature will make your ecommerce site search find store products among other site pages and posts. So, when your customer searches for something on your site, they will see both site content and store products in the search results and will be able to navigate directly to the product pages from there. Please enable it on the Ecwid/Advanced settings page in your Wordpress backend and do not forget to click "Synchronize products" link. The feature is now in beta stage and we are actively improving it. So if you face any trouble with it, please let us know.
|
154 |
|
3 |
Tags: ecommerce, downloadable products, Facebook ecommerce, online store, paypal, product catalog, shop, shopping cart, store
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 4.9.1
|
7 |
|
8 |
Powerful, easy to use ecommerce shopping cart. Bank level PCI DSS Level 1 security. iPhone & Android apps. Superb support. Free plan available.
|
9 |
|
149 |
* [Ecwid eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
|
150 |
|
151 |
== Changelog ==
|
152 |
+
= 4.9.1 =
|
153 |
+
- **Fixed an issue in the new integrated search functionality** causing javascript errors on site pages where no store widgets are installed. Feel free to enable and try the new search feature on the plugin settings (Ecwid Store -> Advanced)
|
154 |
+
- **Improvement for the Single Sign On.** If you have Single Sign On (SSO) enabled in the plugin settings and your customer do not have name specified in their profile, the store account will use their nickname as the firstname. This will make store more friendly for your new buyers. (edited)
|
155 |
+
|
156 |
= 4.9 =
|
157 |
- **Integration with Wordpress search**. This new feature will make your ecommerce site search find store products among other site pages and posts. So, when your customer searches for something on your site, they will see both site content and store products in the search results and will be able to navigate directly to the product pages from there. Please enable it on the Ecwid/Advanced settings page in your Wordpress backend and do not forget to click "Synchronize products" link. The feature is now in beta stage and we are actively improving it. So if you face any trouble with it, please let us know.
|
158 |
|