Skip to content
Merged

Dev #371

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
== Changelog ==
= 7.0.10 - Oct 1, 2026 =
- Security improvements. Ecwid ecommerce shopping cart plugin update recommended.
- Verified compatibility with WordPress 7.1.

= 7.0.9 - Aug 8, 2026 =
- **WordPress 7.0 compatibility.** The new WordPress version is released. 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 7.0.
- **Plugin code improvements for better security. Ecwid ecommerce shopping cart plugin update recommended.** Thanks to Alexander Jurkschat for responsibly reporting the issue.
Expand Down Expand Up @@ -1170,4 +1174,4 @@ We wish you happy holidays and all the best in the New Year! Sincerely yours, Ec
- [!] Minor bugfixes

= 0.1 =
- [+] Initial version of Ecwid Ecommerce Shopping Cart plugin
- [+] Initial version of Ecwid Ecommerce Shopping Cart plugin
4 changes: 2 additions & 2 deletions includes/shortcodes/class-ecwid-shortcode-product.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public function render_placeholder() {
foreach ( $items as $item ) {
if ( array_key_exists( $item, $display_items ) ) {
if ( $item == 'title' ) {
$display_items[ $item ] = str_replace( '$name', $product->name, $display_items[ $item ] );
$display_items[ $item ] = str_replace( '$name', esc_attr( $product->name ), $display_items[ $item ] );
}

if ( $item == 'price' ) {
$display_items[ $item ] = str_replace( '$price', $price, $display_items[ $item ] );
$display_items[ $item ] = str_replace( '$price', esc_attr( $price ), $display_items[ $item ] );
}

if ( $this->_params['link'] == 'yes' && in_array( $item, array( 'title', 'picture' ) ) ) {
Expand Down
34 changes: 18 additions & 16 deletions includes/widgets/class-ecwid-widget-random-product.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,24 @@ protected function _render_widget_content( $args, $instance ) {
}

$name = esc_attr( $product->name );
$url = $product->link;
$widget_id = 'ec-store-widget-random-' . $product->id;

$content = "<div class='ecwid ecwid-random-product ecwid-SingleProduct-v2 ecwid-SingleProduct-v2-bordered ecwid-SingleProduct-v2-centered ecwid-Product ecwid-Product-$product->id' itemscope itemtype='http://schema.org/Product' data-single-product-id='$product->id'>
<div id='$widget_id'>
<a href='$url' data-ecwid-page='product' data-ecwid-product-id='$product->id'><div itemprop='image'></div></a>
<a href='$url' data-ecwid-page='product' data-ecwid-product-id='$product->id'><div class='ecwid-title' itemprop='name' content='$name'></div></a>
<a href='$url' data-ecwid-page='product' data-ecwid-product-id='$product->id'>
<div itemtype='http://schema.org/Offer' itemscope itemprop='offers'>
<div class='ecwid-productBrowser-price ecwid-price' itemprop='price' content='$product->defaultDisplayedPrice' data-spw-price-location='button'>
<div itemprop='priceCurrency'></div>
</div>
</div>
</a>
</div>
</div>";
$url = esc_url( $product->link );
$price = esc_attr( $product->defaultDisplayedPrice );
$product_id = absint( $product->id );
$widget_id = 'ec-store-widget-random-' . $product_id;

$content = "<div class='ecwid ecwid-random-product ecwid-SingleProduct-v2 ecwid-SingleProduct-v2-bordered ecwid-SingleProduct-v2-centered ecwid-Product ecwid-Product-$product_id' itemscope itemtype='http://schema.org/Product' data-single-product-id='$product_id'>
<div id='$widget_id'>
<a href='$url' data-ecwid-page='product' data-ecwid-product-id='$product_id'><div itemprop='image'></div></a>
<a href='$url' data-ecwid-page='product' data-ecwid-product-id='$product_id'><div class='ecwid-title' itemprop='name' content='$name'></div></a>
<a href='$url' data-ecwid-page='product' data-ecwid-product-id='$product_id'>
<div itemtype='http://schema.org/Offer' itemscope itemprop='offers'>
<div class='ecwid-productBrowser-price ecwid-price' itemprop='price' content='$price' data-spw-price-location='button'>
<div itemprop='priceCurrency'></div>
</div>
</div>
</a>
</div>
</div>";

$content .= Ec_Store_Defer_Init::print_js_widget( 'xProduct', $widget_id );

Expand Down
14 changes: 9 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Tags: ecommerce, e-commerce, storefront, shopping cart, online store
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 4.4
Tested up to: 7.0
Stable tag: 7.0.9
Tested up to: 7.1
Stable tag: 7.0.10

Powerful, easy to use ecommerce shopping cart for WordPress. Sell on Facebook and Instagram. iPhone & Android apps. Superb support.

Expand Down Expand Up @@ -151,8 +151,12 @@ 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 ==
= 7.0.9 - Aug 8, 2026 =
== Changelog ==
= 7.0.10 - Oct 1, 2026 =
- Security improvements. Ecwid ecommerce shopping cart plugin update recommended.
- Verified compatibility with WordPress 7.1.

= 7.0.9 - Aug 8, 2026 =
- **WordPress 7.0 compatibility.** The new WordPress version is released. 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 7.0.
- **Plugin code improvements for better security. Ecwid ecommerce shopping cart plugin update recommended.** Thanks to Alexander Jurkschat for responsibly reporting the issue.

Expand Down Expand Up @@ -1323,4 +1327,4 @@ We wish you happy holidays and all the best in the New Year! Sincerely yours, Ec
- [!] Minor bugfixes

= 0.1 =
- [+] Initial version of Ecwid Ecommerce Shopping Cart plugin
- [+] Initial version of Ecwid Ecommerce Shopping Cart plugin
Loading