Version Description
- Minor fixes for the new SEO friendly clean URLs feature.
Download this release
Release Info
Developer | Ecwid |
Plugin | Ecwid Ecommerce Shopping Cart |
Version | 5.0.4 |
Comparing to | |
See all releases |
Code changes from version 5.0.3 to 5.0.4
- ecwid-shopping-cart.php +2 -11
- includes/class-ecwid-seo-links.php +5 -5
- readme.txt +4 -1
- templates/advanced-settings.php +33 -36
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: 5.0.
|
9 |
Author URI: http://www.ecwid.com?source=wporg
|
10 |
*/
|
11 |
|
@@ -542,7 +542,7 @@ function ecwid_check_version()
|
|
542 |
|
543 |
if ($fresh_install || $upgrade || @$_GET['ecwid_reinit']) {
|
544 |
|
545 |
-
add_option( Ecwid_Seo_Links::OPTION_ENABLED,
|
546 |
|
547 |
if (ecwid_migrations_is_original_plugin_version_older_than('4.3')) {
|
548 |
add_option('ecwid_fetch_url_use_file_get_contents', '');
|
@@ -557,13 +557,6 @@ function ecwid_check_version()
|
|
557 |
add_option('ecwid_enable_sso');
|
558 |
}
|
559 |
|
560 |
-
if ( ecwid_migrations_is_original_plugin_version_older_than( '5' ) ) {
|
561 |
-
update_option( Ecwid_Seo_Links::OPTION_ENABLED, 0 );
|
562 |
-
} else {
|
563 |
-
Ecwid_Seo_Links::enable();
|
564 |
-
}
|
565 |
-
|
566 |
-
|
567 |
add_option( Ecwid_Products::OPTION_ENABLED, Ecwid_Products::is_enabled() );
|
568 |
|
569 |
add_option('ecwid_chameleon_colors_foreground', '');
|
@@ -2400,8 +2393,6 @@ add_action('admin_post_ecwid_sync_no_sse', 'ecwid_sync_products_no_sse');
|
|
2400 |
function ecwid_sync_products_no_sse() {
|
2401 |
$p = new Ecwid_Products();
|
2402 |
|
2403 |
-
error_log(var_export($_GET, true));
|
2404 |
-
|
2405 |
$p->set_sync_progress_callback('ecwid_slow_sync_progress');
|
2406 |
|
2407 |
$over = $p->sync(array(
|
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: 5.0.4
|
9 |
Author URI: http://www.ecwid.com?source=wporg
|
10 |
*/
|
11 |
|
542 |
|
543 |
if ($fresh_install || $upgrade || @$_GET['ecwid_reinit']) {
|
544 |
|
545 |
+
add_option( Ecwid_Seo_Links::OPTION_ENABLED, false );
|
546 |
|
547 |
if (ecwid_migrations_is_original_plugin_version_older_than('4.3')) {
|
548 |
add_option('ecwid_fetch_url_use_file_get_contents', '');
|
557 |
add_option('ecwid_enable_sso');
|
558 |
}
|
559 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
560 |
add_option( Ecwid_Products::OPTION_ENABLED, Ecwid_Products::is_enabled() );
|
561 |
|
562 |
add_option('ecwid_chameleon_colors_foreground', '');
|
2393 |
function ecwid_sync_products_no_sse() {
|
2394 |
$p = new Ecwid_Products();
|
2395 |
|
|
|
|
|
2396 |
$p->set_sync_progress_callback('ecwid_slow_sync_progress');
|
2397 |
|
2398 |
$over = $p->sync(array(
|
includes/class-ecwid-seo-links.php
CHANGED
@@ -24,8 +24,7 @@ class Ecwid_Seo_Links {
|
|
24 |
global $wp_query;
|
25 |
|
26 |
$page_id = $wp_query->get( 'page_id' );
|
27 |
-
|
28 |
-
if ( $page_id && ecwid_page_has_productbrowser( $page_id ) && strcasecmp($req . '/', $redir) == 0 ) {
|
29 |
return false;
|
30 |
}
|
31 |
|
@@ -34,9 +33,9 @@ class Ecwid_Seo_Links {
|
|
34 |
|
35 |
public function redirect_escaped_fragment() {
|
36 |
if ( ecwid_can_display_html_catalog() ) {
|
37 |
-
$params = ecwid_parse_escaped_fragment( $_GET['_escaped_fragment_'] );
|
38 |
|
39 |
-
if ( !isset( $params['mode'] ) ) {
|
40 |
return;
|
41 |
}
|
42 |
|
@@ -57,7 +56,7 @@ class Ecwid_Seo_Links {
|
|
57 |
global $wp_query;
|
58 |
$page_id = $wp_query->get( 'page_id' );
|
59 |
|
60 |
-
$has_store = ecwid_page_has_productbrowser( $page_id )
|
61 |
|
62 |
if ( !$has_store ) return;
|
63 |
|
@@ -80,6 +79,7 @@ JS;
|
|
80 |
if ( ecwid_page_has_productbrowser( $page_id ) ) {
|
81 |
$link = get_page_uri( $page_id );
|
82 |
|
|
|
83 |
$rules['^' . $link . '/.*'] = 'index.php?page_id=' . $page_id;
|
84 |
}
|
85 |
|
24 |
global $wp_query;
|
25 |
|
26 |
$page_id = $wp_query->get( 'page_id' );
|
27 |
+
if ( $page_id && ecwid_page_has_productbrowser( $page_id ) && strcasecmp( $req . '/', $redir ) == 0 ) {
|
|
|
28 |
return false;
|
29 |
}
|
30 |
|
33 |
|
34 |
public function redirect_escaped_fragment() {
|
35 |
if ( ecwid_can_display_html_catalog() ) {
|
36 |
+
$params = ecwid_parse_escaped_fragment( $_GET[ '_escaped_fragment_' ] );
|
37 |
|
38 |
+
if ( !isset( $params[ 'mode' ] ) ) {
|
39 |
return;
|
40 |
}
|
41 |
|
56 |
global $wp_query;
|
57 |
$page_id = $wp_query->get( 'page_id' );
|
58 |
|
59 |
+
$has_store = ecwid_page_has_productbrowser( $page_id );
|
60 |
|
61 |
if ( !$has_store ) return;
|
62 |
|
79 |
if ( ecwid_page_has_productbrowser( $page_id ) ) {
|
80 |
$link = get_page_uri( $page_id );
|
81 |
|
82 |
+
|
83 |
$rules['^' . $link . '/.*'] = 'index.php?page_id=' . $page_id;
|
84 |
}
|
85 |
|
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: 5.0.
|
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,9 @@ 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 |
= 5.0.3 =
|
153 |
- **SEO friendly clean URLs.** This is major new feature that we recommend everyone to enable. We made store pages URLs clean and SEO friendly. The new URLs do not contain hash sign ("#"), which makes your store better indexed by Google. There are less extra characters like '/', '~' or'!', so the page address looks cleaner. As previously, the new product and category pages URLs include product/category titles to make them easily readable both for Google and for your customers. Of course, no page refresh happens when the customer browses your store: the store pages with new URLs work without page reload, as it's been always worked in Ecwid. So, you have your quickly loading store pages with new SEO friendly URLs. To enable the new URLs, navigate to the Ecwid plugin Advanced settings and tick the "SEO friendly URLs" checkbox. Note: the old URLs format is supported as well, so all your existing links will continue to work fine.
|
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: 5.0.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 |
+
= 5.0.4 =
|
153 |
+
- Minor fixes for the new SEO friendly clean URLs feature.
|
154 |
+
|
155 |
= 5.0.3 =
|
156 |
- **SEO friendly clean URLs.** This is major new feature that we recommend everyone to enable. We made store pages URLs clean and SEO friendly. The new URLs do not contain hash sign ("#"), which makes your store better indexed by Google. There are less extra characters like '/', '~' or'!', so the page address looks cleaner. As previously, the new product and category pages URLs include product/category titles to make them easily readable both for Google and for your customers. Of course, no page refresh happens when the customer browses your store: the store pages with new URLs work without page reload, as it's been always worked in Ecwid. So, you have your quickly loading store pages with new SEO friendly URLs. To enable the new URLs, navigate to the Ecwid plugin Advanced settings and tick the "SEO friendly URLs" checkbox. Note: the old URLs format is supported as well, so all your existing links will continue to work fine.
|
157 |
|
templates/advanced-settings.php
CHANGED
@@ -8,46 +8,43 @@
|
|
8 |
<input type="hidden" name="settings_section" value="advanced" />
|
9 |
|
10 |
<fieldset>
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
<
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
<div class="note">
|
38 |
-
<?php printf( __( 'To enable clean URLs in your store, you will need to enable pretty permalinks in your WordPress site settings. Navigate to <a%s>Settings->Permalink</a> and enable the "Post name" permalink type.', 'ecwid-shopping-cart' ), ' href="' . admin_url( 'options-permalink.php' ) . '"'); ?>
|
39 |
-
</div>
|
40 |
-
<?php endif; ?>
|
41 |
-
|
42 |
-
|
43 |
-
<div class="note grayed-links">
|
44 |
-
<?php echo sprintf(__('Note: the new URLs will be automatically enabled for every store in one of upcoming updates so please make sure to check how the new URLs work in your store and <a %s>let us know</a> if you face any trouble with them', 'ecwid-shopping-cart'), ' target="_blank" href="' . __('https://support.ecwid.com/hc/en-us/requests/new', 'ecwid-shopping-cart') . '"'); ?>
|
45 |
</div>
|
|
|
|
|
|
|
|
|
|
|
46 |
</div>
|
47 |
</div>
|
|
|
48 |
|
49 |
-
|
50 |
-
<?php endif; ?>
|
51 |
|
52 |
<?php if (get_option('ecwid_hide_appearance_menu') != 'Y'): ?>
|
53 |
<div class="pure-control-group bottom-border">
|
8 |
<input type="hidden" name="settings_section" value="advanced" />
|
9 |
|
10 |
<fieldset>
|
11 |
+
<div class="pure-control-group checkbox">
|
12 |
+
<div class="label">
|
13 |
+
<label for="<?php echo Ecwid_Seo_Links::OPTION_ENABLED; ?>">
|
14 |
+
|
15 |
+
<input
|
16 |
+
id="<?php echo Ecwid_Seo_Links::OPTION_ENABLED; ?>"
|
17 |
+
name="<?php echo Ecwid_Seo_Links::OPTION_ENABLED; ?>"
|
18 |
+
type="checkbox"
|
19 |
+
<?php if ( Ecwid_Seo_Links::is_enabled() ): ?>
|
20 |
+
checked="checked"
|
21 |
+
<?php endif; ?>
|
22 |
+
value="Y"
|
23 |
+
<?php if ( !Ecwid_Seo_Links::is_feature_available() ): ?>
|
24 |
+
disabled="disabled"
|
25 |
+
<?php endif; ?>
|
26 |
+
/>
|
27 |
+
<?php _e('SEO friendly clean URLs', 'ecwid-shopping-cart'); ?>
|
28 |
+
</label>
|
29 |
+
|
30 |
+
<?php if ( Ecwid_Seo_Links::is_feature_available() ): ?>
|
31 |
+
<div class="note">
|
32 |
+
<?php _e( 'This enables new clean URLs format in your store. The new urls do not contain hash sign (\'#\'), so they look nicer and are better indexed by Google.', 'ecwid-shopping-cart' ); ?>
|
33 |
+
</div>
|
34 |
+
<?php else: ?>
|
35 |
+
<div class="note">
|
36 |
+
<?php printf( __( 'To enable clean URLs in your store, you will need to enable pretty permalinks in your WordPress site settings. Navigate to <a%s>Settings->Permalink</a> and enable the "Post name" permalink type.', 'ecwid-shopping-cart' ), ' href="' . admin_url( 'options-permalink.php' ) . '"'); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
</div>
|
38 |
+
<?php endif; ?>
|
39 |
+
|
40 |
+
|
41 |
+
<div class="note grayed-links">
|
42 |
+
<?php echo sprintf(__('Note: the new URLs will be automatically enabled for every store in one of upcoming updates so please make sure to check how the new URLs work in your store and <a %s>let us know</a> if you face any trouble with them', 'ecwid-shopping-cart'), ' target="_blank" href="' . __('https://support.ecwid.com/hc/en-us/requests/new', 'ecwid-shopping-cart') . '"'); ?>
|
43 |
</div>
|
44 |
</div>
|
45 |
+
</div>
|
46 |
|
47 |
+
<hr />
|
|
|
48 |
|
49 |
<?php if (get_option('ecwid_hide_appearance_menu') != 'Y'): ?>
|
50 |
<div class="pure-control-group bottom-border">
|