Skip to content

Commit

Permalink
Merge pull request #306 from Ecwid/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
meteor-ec authored Nov 7, 2024
2 parents 767a146 + d05aeb4 commit 5c3c596
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
== Changelog ==
= 6.12.22 - Nov 7, 2024 =
- **WordPress 6.7 and Twenty Twenty Five theme compatibility.** The new WordPress version will be released soon. The Ecwid ecommerce shopping cart plugin is ready for the new release — everything works well in your WordPress admin and storefront pages. Feel free to upgrade your site to WordPress 6.7 and try a new theme.
- Fixed issue with links of Product Small block when it contains non-latin characters.

= 6.12.21 - Oct 16, 2024 =
- Fixed issue with Single Sign On (SSO). Single Sign-On allows your customers to have a single login for both your WordPress site and your Ecwid store. If this feature is not working properly after latests release, please update your plugin.
- Internal improvements and optimizations.
Expand Down
2 changes: 1 addition & 1 deletion ecwid-shopping-cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Ecwid by Lightspeed 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.
Text Domain: ecwid-shopping-cart
Author: Ecwid Ecommerce
Version: 6.12.21
Version: 6.12.22
Author URI: https://ecwid.to/ecwid-site
License: GPLv2 or later
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/shortcodes/class-ecwid-shortcode-product.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function render_placeholder() {
$display_items[ $item ] = str_replace( '$name', $product->name, $display_items[ $item ] );
}

if ( $item == 'price' ) {
if ( $item == 'price' && ! empty( $product->price ) ) {
$display_items[ $item ] = str_replace( '$price', $product->price, $display_items[ $item ] );
}

Expand Down
8 changes: 7 additions & 1 deletion lib/ecwid_catalog_entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ public function get_seo_link( $baseUrl = '' ) {
$url .= '/';
}

$url .= $this->_linkify( $this->_data->name ) . '-' . $this->_link_prefix . $this->_data->id;
preg_match( '!([^\/]+-[p|c][0-9]+)$!', $this->_data->url, $slug );

if( ! empty( $slug[1] ) ) {
$url .= $slug[1];
} else {
$url .= $this->_linkify( $this->_data->name ) . '-' . $this->_link_prefix . $this->_data->id;
}

if ( ! empty( $query ) ) {
$url .= '/?' . $query;
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ You can use Ecwid’s built-in import tools to copy your store products from any
* [Ecwid Help Center](http://help.ecwid.com "Ecwid Help")

== Changelog ==
= 6.12.22 - Nov 7, 2024 =
- **WordPress 6.7 and Twenty Twenty Five theme compatibility.** The new WordPress version will be released soon. The Ecwid ecommerce shopping cart plugin is ready for the new release — everything works well in your WordPress admin and storefront pages. Feel free to upgrade your site to WordPress 6.7 and try a new theme.
- Fixed issue with links of Product Small block when it contains non-latin characters.

= 6.12.21 - Oct 16, 2024 =
- Fixed issue with Single Sign On (SSO). Single Sign-On allows your customers to have a single login for both your WordPress site and your Ecwid store. If this feature is not working properly after latests release, please update your plugin.
- Internal improvements and optimizations.
Expand Down

0 comments on commit 5c3c596

Please sign in to comment.