Version Description
- The new search widget is now enabled for every site. We released the new search widget in the version 4.2 it is mobile friendly and looks great with any wordpress ecommerce theme. We made it possible to turn on/off the new widget temporarily to make sure every site would have time to try it before its enabled for everyone. Now its enabled. If you have it enabled previously, nothing will change for you your search widget is already updated. If you have the old search widget displayed on your site, this update will replace it with the new one. Please let us know if you have any trouble with the new widget.
- Fixed a minor issue with displaying store control panel on the Ecwid Dashboard page in Wordpress admin backend. The control panel previously might be displayed with a horizontal scrolling. We fixed that it should look fine now.
- Layout fixes for the ZeroGravity Wordpress theme.
Download this release
Release Info
Developer | Ecwid |
Plugin | Ecwid Ecommerce Shopping Cart |
Version | 4.9.4 |
Comparing to | |
See all releases |
Code changes from version 4.9.3 to 4.9.4
- css/admin.css +2 -1
- css/product-popup.css +1 -1
- css/themes/zerogravity.css +9 -0
- ecwid-shopping-cart.php +4 -33
- includes/class-ecwid-message-manager.php +6 -15
- includes/class-ecwid-products.php +7 -1
- includes/themes.php +2 -1
- languages/ecwid-shopping-cart-ru_RU.mo +0 -0
- languages/ecwid-shopping-cart-ru_RU.po +7 -15
- lib/ecwid_api_v3.php +9 -0
- readme.txt +6 -1
- templates/advanced-settings.php +3 -30
- templates/debug.php +11 -0
- templates/sync.php +5 -3
css/admin.css
CHANGED
@@ -360,7 +360,8 @@ body[class*="_page_ecwid"] .ecwid-message {
|
|
360 |
}
|
361 |
|
362 |
#ecwid-frame {
|
363 |
-
border: 1px solid #e5e5e5;
|
|
|
364 |
max-width: 1440px;
|
365 |
}
|
366 |
|
360 |
}
|
361 |
|
362 |
#ecwid-frame {
|
363 |
+
border-top: 1px solid #e5e5e5;
|
364 |
+
border-bottom: 1px solid #e5e5e5;
|
365 |
max-width: 1440px;
|
366 |
}
|
367 |
|
css/product-popup.css
CHANGED
@@ -5993,4 +5993,4 @@ body, html {
|
|
5993 |
width: 50px;
|
5994 |
height: 50px;
|
5995 |
}
|
5996 |
-
}
|
5993 |
width: 50px;
|
5994 |
height: 50px;
|
5995 |
}
|
5996 |
+
}
|
css/themes/zerogravity.css
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
html#ecwid_html body#ecwid_body th,
|
2 |
+
html#ecwid_html body#ecwid_body td {
|
3 |
+
padding-left: 0 !important;
|
4 |
+
}
|
5 |
+
|
6 |
+
html#ecwid_html body#ecwid_body .ecwid-description-table th,
|
7 |
+
html#ecwid_html body#ecwid_body .ecwid-description-table td {
|
8 |
+
padding-left: 10px !important;
|
9 |
+
}
|
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 |
|
@@ -501,7 +501,6 @@ function ecwid_check_version()
|
|
501 |
update_option('ecwid_use_chameleon', true);
|
502 |
|
503 |
add_option('ecwid_use_new_horizontal_categories', 'Y');
|
504 |
-
add_option('ecwid_use_new_search', 'Y');
|
505 |
|
506 |
} elseif ($upgrade) {
|
507 |
|
@@ -510,7 +509,6 @@ function ecwid_check_version()
|
|
510 |
update_option('ecwid_plugin_version', $current_version);
|
511 |
|
512 |
add_option('ecwid_use_new_horizontal_categories', '');
|
513 |
-
add_option('ecwid_use_new_search', '');
|
514 |
}
|
515 |
|
516 |
if ($fresh_install || $upgrade || @$_GET['ecwid_reinit']) {
|
@@ -535,6 +533,8 @@ function ecwid_check_version()
|
|
535 |
add_option('ecwid_chameleon_colors_link', '');
|
536 |
add_option('ecwid_chameleon_colors_button', '');
|
537 |
add_option('ecwid_chameleon_colors_price', '');
|
|
|
|
|
538 |
}
|
539 |
}
|
540 |
|
@@ -1492,34 +1492,6 @@ function ecwid_uninstall() {
|
|
1492 |
delete_option("ecwid_use_chameleon");
|
1493 |
}
|
1494 |
|
1495 |
-
function ecwid_is_old_search_widget_used()
|
1496 |
-
{
|
1497 |
-
if (get_option('ecwid_use_new_search')) {
|
1498 |
-
return false;
|
1499 |
-
}
|
1500 |
-
|
1501 |
-
if (Ecwid_Widget_Search::is_active_widget()) {
|
1502 |
-
return true;
|
1503 |
-
}
|
1504 |
-
|
1505 |
-
$widgets = ecwid_get_store_shortcode_widgets();
|
1506 |
-
if ($widgets && in_array('search', $widgets)) {
|
1507 |
-
return true;
|
1508 |
-
}
|
1509 |
-
|
1510 |
-
$post = get_post(ecwid_get_current_store_page_id());
|
1511 |
-
if ($post && !is_wp_error($post)) {
|
1512 |
-
|
1513 |
-
$shortcodes = ecwid_find_shortcodes( $post->post_content, 'ecwid_search' );
|
1514 |
-
|
1515 |
-
if ( $shortcodes ) {
|
1516 |
-
return TRUE;
|
1517 |
-
}
|
1518 |
-
}
|
1519 |
-
|
1520 |
-
return false;
|
1521 |
-
}
|
1522 |
-
|
1523 |
function ecwid_is_old_cats_widget_used()
|
1524 |
{
|
1525 |
if (get_option('ecwid_use_new_horizontal_categories')) {
|
@@ -1544,7 +1516,7 @@ function ecwid_is_old_cats_widget_used()
|
|
1544 |
|
1545 |
function ecwid_get_store_shortcode_widgets()
|
1546 |
{
|
1547 |
-
if (get_option('ecwid_use_new_horizontal_categories')
|
1548 |
|
1549 |
$page_contents = get_post(ecwid_get_current_store_page_id())->post_content;
|
1550 |
$shortcodes = ecwid_find_shortcodes($page_contents, 'ecwid');
|
@@ -1779,7 +1751,6 @@ function ecwid_settings_api_init() {
|
|
1779 |
register_setting( 'ecwid_options_page', 'ecwid_sso_secret_key' );
|
1780 |
register_setting( 'ecwid_options_page', 'ecwid_use_chameleon' );
|
1781 |
register_setting( 'ecwid_options_page', 'ecwid_use_new_horizontal_categories' );
|
1782 |
-
register_setting( 'ecwid_options_page', 'ecwid_use_new_search' );
|
1783 |
register_setting( 'ecwid_options_page', 'ecwid_is_sso_enabled' );
|
1784 |
break;
|
1785 |
}
|
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.4
|
9 |
Author URI: http://www.ecwid.com?source=wporg
|
10 |
*/
|
11 |
|
501 |
update_option('ecwid_use_chameleon', true);
|
502 |
|
503 |
add_option('ecwid_use_new_horizontal_categories', 'Y');
|
|
|
504 |
|
505 |
} elseif ($upgrade) {
|
506 |
|
509 |
update_option('ecwid_plugin_version', $current_version);
|
510 |
|
511 |
add_option('ecwid_use_new_horizontal_categories', '');
|
|
|
512 |
}
|
513 |
|
514 |
if ($fresh_install || $upgrade || @$_GET['ecwid_reinit']) {
|
533 |
add_option('ecwid_chameleon_colors_link', '');
|
534 |
add_option('ecwid_chameleon_colors_button', '');
|
535 |
add_option('ecwid_chameleon_colors_price', '');
|
536 |
+
|
537 |
+
update_option('ecwid_use_new_search', 'Y');
|
538 |
}
|
539 |
}
|
540 |
|
1492 |
delete_option("ecwid_use_chameleon");
|
1493 |
}
|
1494 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1495 |
function ecwid_is_old_cats_widget_used()
|
1496 |
{
|
1497 |
if (get_option('ecwid_use_new_horizontal_categories')) {
|
1516 |
|
1517 |
function ecwid_get_store_shortcode_widgets()
|
1518 |
{
|
1519 |
+
if (get_option('ecwid_use_new_horizontal_categories')) return false;
|
1520 |
|
1521 |
$page_contents = get_post(ecwid_get_current_store_page_id())->post_content;
|
1522 |
$shortcodes = ecwid_find_shortcodes($page_contents, 'ecwid');
|
1751 |
register_setting( 'ecwid_options_page', 'ecwid_sso_secret_key' );
|
1752 |
register_setting( 'ecwid_options_page', 'ecwid_use_chameleon' );
|
1753 |
register_setting( 'ecwid_options_page', 'ecwid_use_new_horizontal_categories' );
|
|
|
1754 |
register_setting( 'ecwid_options_page', 'ecwid_is_sso_enabled' );
|
1755 |
break;
|
1756 |
}
|
includes/class-ecwid-message-manager.php
CHANGED
@@ -54,20 +54,11 @@ TXT
|
|
54 |
return $message;
|
55 |
}
|
56 |
|
57 |
-
public static function
|
58 |
-
$is_old_search = ecwid_is_old_search_widget_used();
|
59 |
-
$is_old_categories = ecwid_is_old_cats_widget_used();
|
60 |
|
61 |
$main_message = __( 'Updated %s widgets are available for your Ecwid store. They are more mobile friendly and look better. Please enable them on the plugin settings page and check how they work in your store. The new widgets will be enabled automatically for all users in one of the upcoming plugin versions.', 'ecwid-shopping-cart' );
|
62 |
|
63 |
-
$widgets = '';
|
64 |
-
if ($is_old_search && $is_old_categories) {
|
65 |
-
$widgets = _x( 'Search and Categories', 'upgrade widgets message', 'ecwid-shopping-cart' );
|
66 |
-
} else if ( $is_old_search ) {
|
67 |
-
$widgets = _x( 'Search', 'upgrade widgets message', 'ecwid-shopping-cart' );
|
68 |
-
} else if ( $is_old_categories ) {
|
69 |
-
$widgets = _x( 'Categories', 'upgrade widgets message', 'ecwid-shopping-cart' );
|
70 |
-
}
|
71 |
|
72 |
return sprintf($main_message, $widgets);
|
73 |
}
|
@@ -258,8 +249,8 @@ TXT
|
|
258 |
'hideable' => true
|
259 |
),
|
260 |
|
261 |
-
'
|
262 |
-
'message' => Ecwid_Message_Manager::
|
263 |
'hideable' => true,
|
264 |
'primary_title' => __ ( 'Open Ecwid store settings', 'ecwid-shopping-cart' ),
|
265 |
'primary_url' => 'admin.php?page=ecwid-advanced'
|
@@ -319,8 +310,8 @@ TXT
|
|
319 |
|
320 |
return $result;
|
321 |
|
322 |
-
case "
|
323 |
-
return ecwid_is_old_cats_widget_used()
|
324 |
|
325 |
case "install_ecwid_theme":
|
326 |
return false;
|
54 |
return $message;
|
55 |
}
|
56 |
|
57 |
+
public static function get_upgrade_cats_message() {
|
|
|
|
|
58 |
|
59 |
$main_message = __( 'Updated %s widgets are available for your Ecwid store. They are more mobile friendly and look better. Please enable them on the plugin settings page and check how they work in your store. The new widgets will be enabled automatically for all users in one of the upcoming plugin versions.', 'ecwid-shopping-cart' );
|
60 |
|
61 |
+
$widgets = _x( 'Categories', 'upgrade widgets message', 'ecwid-shopping-cart' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
return sprintf($main_message, $widgets);
|
64 |
}
|
249 |
'hideable' => true
|
250 |
),
|
251 |
|
252 |
+
'upgrade_cats' => array(
|
253 |
+
'message' => Ecwid_Message_Manager::get_upgrade_cats_message(),
|
254 |
'hideable' => true,
|
255 |
'primary_title' => __ ( 'Open Ecwid store settings', 'ecwid-shopping-cart' ),
|
256 |
'primary_url' => 'admin.php?page=ecwid-advanced'
|
310 |
|
311 |
return $result;
|
312 |
|
313 |
+
case "upgrade_cats":
|
314 |
+
return ecwid_is_old_cats_widget_used();
|
315 |
|
316 |
case "install_ecwid_theme":
|
317 |
return false;
|
includes/class-ecwid-products.php
CHANGED
@@ -183,7 +183,7 @@ class Ecwid_Products {
|
|
183 |
|
184 |
|
185 |
public static function is_enabled() {
|
186 |
-
return get_option( self::OPTION_ENABLED, false );
|
187 |
}
|
188 |
|
189 |
public static function enable() {
|
@@ -196,6 +196,10 @@ class Ecwid_Products {
|
|
196 |
update_option( self::OPTION_ENABLED, false );
|
197 |
}
|
198 |
|
|
|
|
|
|
|
|
|
199 |
public static function reset_sync_date() {
|
200 |
Ecwid_Products_Sync_Status::reset_dates();
|
201 |
}
|
@@ -237,6 +241,8 @@ class Ecwid_Products {
|
|
237 |
|
238 |
public function estimate_sync() {
|
239 |
|
|
|
|
|
240 |
$updated = $this->_api->search_products( array(
|
241 |
'updatedFrom' => $this->_status->get_updated_from(),
|
242 |
'limit' => 1,
|
183 |
|
184 |
|
185 |
public static function is_enabled() {
|
186 |
+
return self::is_feature_available() && get_option( self::OPTION_ENABLED, false );
|
187 |
}
|
188 |
|
189 |
public static function enable() {
|
196 |
update_option( self::OPTION_ENABLED, false );
|
197 |
}
|
198 |
|
199 |
+
public static function is_feature_available() {
|
200 |
+
return Ecwid_Api_V3::get_token() != false;
|
201 |
+
}
|
202 |
+
|
203 |
public static function reset_sync_date() {
|
204 |
Ecwid_Products_Sync_Status::reset_dates();
|
205 |
}
|
241 |
|
242 |
public function estimate_sync() {
|
243 |
|
244 |
+
if ( !Ecwid_Api_V3::get_token() ) return array('last_update' => 0);
|
245 |
+
|
246 |
$updated = $this->_api->search_products( array(
|
247 |
'updatedFrom' => $this->_status->get_updated_from(),
|
248 |
'limit' => 1,
|
includes/themes.php
CHANGED
@@ -54,7 +54,8 @@ function ecwid_apply_theme($theme_name = null)
|
|
54 |
'storefront' => array( 'css' ),
|
55 |
'salient' => array( 'css-no-parent'),
|
56 |
'flora' => array( 'js' ),
|
57 |
-
'thevoux-wp' => array( 'js' )
|
|
|
58 |
);
|
59 |
$generic_themes = apply_filters('ecwid_generic_themes', $generic_themes);
|
60 |
|
54 |
'storefront' => array( 'css' ),
|
55 |
'salient' => array( 'css-no-parent'),
|
56 |
'flora' => array( 'js' ),
|
57 |
+
'thevoux-wp' => array( 'js' ),
|
58 |
+
'zerogravity' => array( 'css' )
|
59 |
);
|
60 |
$generic_themes = apply_filters('ecwid_generic_themes', $generic_themes);
|
61 |
|
languages/ecwid-shopping-cart-ru_RU.mo
CHANGED
Binary file
|
languages/ecwid-shopping-cart-ru_RU.po
CHANGED
@@ -559,12 +559,6 @@ msgstr "Создание магазина"
|
|
559 |
msgid "Manage Store on iPhone, iPad or Android"
|
560 |
msgstr "Управляйте магазином с iPhone, iPad, Android"
|
561 |
|
562 |
-
msgid "Enable the new search widget"
|
563 |
-
msgstr "Включить новый виджет поиска"
|
564 |
-
|
565 |
-
msgid "The new search widget better adapts to your site and looks nicer. You can add the search bar to your site either in the <a %s>store page editor</a> or in the Appearance -> Widgets section."
|
566 |
-
msgstr "Новый виджет поиска лучше адаптируется к сайту и лучше выглядит. Добавить виджет поиска по товарам на сайт можно <a %s>в настройках страницы магазина</a> или в настройках внешнего вида сайта (меню <a %s>Виджеты</a>)."
|
567 |
-
|
568 |
msgid "Help"
|
569 |
msgstr "Помощь"
|
570 |
|
@@ -715,18 +709,10 @@ msgstr "Чтобы покупатели смогли регистрироват
|
|
715 |
msgid "Updated %s widgets are available for your Ecwid store. They are more mobile friendly and look better. Please enable them on the plugin settings page and check how they work in your store. The new widgets will be enabled automatically for all users in one of the upcoming plugin versions."
|
716 |
msgstr "Блоки %s в вашем Эквид-магазине обновлены – теперь они выглядят приятнее и лучше работают на мобильных. Пожалуйста, включите новый вид блоков поиска и категорий на странице настроек плагина. В одном следующих обновлений плагина они будут включены автоматически для всех пользователей."
|
717 |
|
718 |
-
msgctxt "upgrade widgets message"
|
719 |
-
msgid "Search"
|
720 |
-
msgstr "Поиска"
|
721 |
-
|
722 |
msgctxt "upgrade widgets message"
|
723 |
msgid "Categories"
|
724 |
msgstr "Категорий"
|
725 |
|
726 |
-
msgctxt "upgrade widgets message"
|
727 |
-
msgid "Search and Categories"
|
728 |
-
msgstr "Поиска и Категорий"
|
729 |
-
|
730 |
msgid "Open Ecwid store settings"
|
731 |
msgstr "Открыть настройки плагина Ecwid"
|
732 |
|
@@ -851,4 +837,10 @@ msgid "We're synchronizing your products. This may take a few minutes. Please do
|
|
851 |
msgstr "Товары загружаются. Это может занять несколько минут. Пожалуйста, не перезагружайте страницу."
|
852 |
|
853 |
msgid "Products synchronized: %s out of %s"
|
854 |
-
msgstr "Загружено товаров: %s из %s"
|
|
|
|
|
|
|
|
|
|
|
|
559 |
msgid "Manage Store on iPhone, iPad or Android"
|
560 |
msgstr "Управляйте магазином с iPhone, iPad, Android"
|
561 |
|
|
|
|
|
|
|
|
|
|
|
|
|
562 |
msgid "Help"
|
563 |
msgstr "Помощь"
|
564 |
|
709 |
msgid "Updated %s widgets are available for your Ecwid store. They are more mobile friendly and look better. Please enable them on the plugin settings page and check how they work in your store. The new widgets will be enabled automatically for all users in one of the upcoming plugin versions."
|
710 |
msgstr "Блоки %s в вашем Эквид-магазине обновлены – теперь они выглядят приятнее и лучше работают на мобильных. Пожалуйста, включите новый вид блоков поиска и категорий на странице настроек плагина. В одном следующих обновлений плагина они будут включены автоматически для всех пользователей."
|
711 |
|
|
|
|
|
|
|
|
|
712 |
msgctxt "upgrade widgets message"
|
713 |
msgid "Categories"
|
714 |
msgstr "Категорий"
|
715 |
|
|
|
|
|
|
|
|
|
716 |
msgid "Open Ecwid store settings"
|
717 |
msgstr "Открыть настройки плагина Ecwid"
|
718 |
|
837 |
msgstr "Товары загружаются. Это может занять несколько минут. Пожалуйста, не перезагружайте страницу."
|
838 |
|
839 |
msgid "Products synchronized: %s out of %s"
|
840 |
+
msgstr "Загружено товаров: %s из %s"
|
841 |
+
|
842 |
+
msgid "To enable this feature, the plugin needs a permission to read your store product information."
|
843 |
+
msgstr "Чтобы включить интеграцию с поиском, нужно дать плагину доступ до данных товаров в магазине."
|
844 |
+
|
845 |
+
msgid "Provide access."
|
846 |
+
msgstr "Перейдите по этой ссылке, чтобы предоставить доступ."
|
lib/ecwid_api_v3.php
CHANGED
@@ -311,6 +311,15 @@ class Ecwid_Api_V3
|
|
311 |
)
|
312 |
),
|
313 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
$request_params = array(
|
315 |
'appClientId',
|
316 |
'appSecretKey',
|
311 |
)
|
312 |
),
|
313 |
);
|
314 |
+
|
315 |
+
$ref = apply_filters( 'ecwid_get_new_store_ref_id', '' );
|
316 |
+
|
317 |
+
if ($ref) {
|
318 |
+
$params['affiliatePartner']['ambassador'] = array(
|
319 |
+
'ref' => $ref
|
320 |
+
);
|
321 |
+
}
|
322 |
+
|
323 |
$request_params = array(
|
324 |
'appClientId',
|
325 |
'appSecretKey',
|
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,11 @@ 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.3 =
|
153 |
- **Fixed an issue with erroneous “Restore backup” messages in the editor in Wordpress admin backend.** One of the recent changes in our plugin made the WordPress editor display messages like “The backup of this post in your browser is different from the version below.” In fact, the messages did not mean there was a change that had not been not saved. The restore backup messages are normally hidden by Wordpress, but one of our CSS changes (editor page layout tweaks) made them appear. All your data is safe and the warning messages were displayed by mistake. We fixed them now and they should not appear anymore.
|
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.4
|
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.4 =
|
153 |
+
- **The new search widget is now enabled for every site.** We released the new search widget in the version 4.2 — it is mobile friendly and looks great with any wordpress ecommerce theme. We made it possible to turn on/off the new widget temporarily to make sure every site would have time to try it before it’s enabled for everyone. Now it’s enabled. If you have it enabled previously, nothing will change for you — your search widget is already updated. If you have the old search widget displayed on your site, this update will replace it with the new one. Please let us know if you have any trouble with the new widget.
|
154 |
+
- **Fixed a minor issue with displaying store control panel on the Ecwid Dashboard page in Wordpress admin backend**. The control panel previously might be displayed with a horizontal scrolling. We fixed that — it should look fine now.
|
155 |
+
- Layout fixes for the ZeroGravity Wordpress theme.
|
156 |
+
|
157 |
= 4.9.3 =
|
158 |
- **Fixed an issue with erroneous “Restore backup” messages in the editor in Wordpress admin backend.** One of the recent changes in our plugin made the WordPress editor display messages like “The backup of this post in your browser is different from the version below.” In fact, the messages did not mean there was a change that had not been not saved. The restore backup messages are normally hidden by Wordpress, but one of our CSS changes (editor page layout tweaks) made them appear. All your data is safe and the warning messages were displayed by mistake. We fixed them now and they should not appear anymore.
|
159 |
|
templates/advanced-settings.php
CHANGED
@@ -141,36 +141,6 @@
|
|
141 |
</div>
|
142 |
</div>
|
143 |
|
144 |
-
<?php if (ecwid_migrations_is_original_plugin_version_older_than('4.1.3.1') || get_option('ecwid_use_new_search') != 'Y'): ?>
|
145 |
-
<hr />
|
146 |
-
|
147 |
-
<div class="pure-control-group checkbox">
|
148 |
-
<div class="label">
|
149 |
-
<label for="ecwid_use_new_search">
|
150 |
-
|
151 |
-
<input
|
152 |
-
id="ecwid_use_new_search"
|
153 |
-
name="ecwid_use_new_search"
|
154 |
-
type="checkbox"
|
155 |
-
<?php if (get_option('ecwid_use_new_search') == 'Y'): ?>
|
156 |
-
checked="checked"
|
157 |
-
<?php endif; ?>
|
158 |
-
value="Y"
|
159 |
-
/>
|
160 |
-
<?php _e('Enable the new search widget', 'ecwid-shopping-cart'); ?>
|
161 |
-
</label>
|
162 |
-
|
163 |
-
<div class="note">
|
164 |
-
<?php echo sprintf(
|
165 |
-
__('The new search widget better adapts to your site and looks nicer. You can add the search bar to your site either in the <a %s>store page editor</a> or in the <a %s>Appearance -> Widgets</a> section.', 'ecwid-shopping-cart'),
|
166 |
-
'href="post.php?post=' . ecwid_get_current_store_page_id() . '&action=edit&show-ecwid=true"',
|
167 |
-
'href=widgets.php?from-ecwid=true'
|
168 |
-
); ?>
|
169 |
-
</div>
|
170 |
-
</div>
|
171 |
-
</div>
|
172 |
-
<?php endif; ?>
|
173 |
-
|
174 |
<hr />
|
175 |
|
176 |
<div class="pure-control-group checkbox">
|
@@ -185,6 +155,9 @@
|
|
185 |
checked="checked"
|
186 |
<?php endif; ?>
|
187 |
value="Y"
|
|
|
|
|
|
|
188 |
/>
|
189 |
<?php _e('Integration with search on your site <sup>beta</sup>', 'ecwid-shopping-cart'); ?>
|
190 |
</label>
|
141 |
</div>
|
142 |
</div>
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
<hr />
|
145 |
|
146 |
<div class="pure-control-group checkbox">
|
155 |
checked="checked"
|
156 |
<?php endif; ?>
|
157 |
value="Y"
|
158 |
+
<?php if ( !Ecwid_Products::is_feature_available() ): ?>
|
159 |
+
disabled="disabled"
|
160 |
+
<?php endif; ?>
|
161 |
/>
|
162 |
<?php _e('Integration with search on your site <sup>beta</sup>', 'ecwid-shopping-cart'); ?>
|
163 |
</label>
|
templates/debug.php
CHANGED
@@ -63,6 +63,17 @@
|
|
63 |
<?php endforeach; ?>
|
64 |
</div>
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
<h2>Options</h2>
|
67 |
|
68 |
<div>
|
63 |
<?php endforeach; ?>
|
64 |
</div>
|
65 |
|
66 |
+
<h2>Misc</h2>
|
67 |
+
<div>
|
68 |
+
<div class="section">
|
69 |
+
<div>Theme identification</div>
|
70 |
+
<div><?php echo ecwid_get_theme_identification(); ?></div>
|
71 |
+
</div>
|
72 |
+
<div class="section">
|
73 |
+
<div>Affiliate Ref ID</div>
|
74 |
+
<div><?php echo apply_filters( 'ecwid_get_new_store_ref_id', '' ); ?></div>
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
<h2>Options</h2>
|
78 |
|
79 |
<div>
|
templates/sync.php
CHANGED
@@ -156,11 +156,12 @@ jQuery('#sync-button-slow').click(function() {
|
|
156 |
});
|
157 |
</script>
|
158 |
|
159 |
-
<?php
|
160 |
<div>
|
161 |
-
|
|
|
162 |
</div>
|
163 |
-
<?php
|
164 |
|
165 |
<div class="sync-block" id="sync-button">
|
166 |
<a id="sync-button"><?php _e('Synchronize products', 'ecwid-shopping-cart'); ?></a>
|
@@ -195,5 +196,6 @@ jQuery('#sync-button-slow').click(function() {
|
|
195 |
<?php endif; ?>
|
196 |
</span>
|
197 |
</div>
|
|
|
198 |
|
199 |
</div>
|
156 |
});
|
157 |
</script>
|
158 |
|
159 |
+
<?php if ( !Ecwid_Api_V3::get_token() ): ?>
|
160 |
<div>
|
161 |
+
<?php _e( 'To enable this feature, the plugin needs a permission to read your store product information.', 'ecwid-shopping-cart' ); ?>
|
162 |
+
<a href="<?php echo get_reconnect_link(); ?>"><?php _e( 'Provide access.', 'ecwid-shopping-cart' ); ?></a>
|
163 |
</div>
|
164 |
+
<?php else: ?>
|
165 |
|
166 |
<div class="sync-block" id="sync-button">
|
167 |
<a id="sync-button"><?php _e('Synchronize products', 'ecwid-shopping-cart'); ?></a>
|
196 |
<?php endif; ?>
|
197 |
</span>
|
198 |
</div>
|
199 |
+
<?php endif; ?>
|
200 |
|
201 |
</div>
|