Title: Trusted Shops Easy Integration for WooCommerce
Author: vendidero
Published: <strong>September 5, 2022</strong>
Last modified: September 14, 2026

---

Search plugins

![](https://ps.w.org/trusted-shops-easy-integration-for-woocommerce/assets/banner-
772x250.png?rev=2780038)

![](https://ps.w.org/trusted-shops-easy-integration-for-woocommerce/assets/icon-
256x256.png?rev=2780038)

# Trusted Shops Easy Integration for WooCommerce

 By [vendidero](https://profiles.wordpress.org/vendidero/)

[Download](https://downloads.wordpress.org/plugin/trusted-shops-easy-integration-for-woocommerce.2.0.8.zip)

 * [Details](https://pcd.wordpress.org/plugins/trusted-shops-easy-integration-for-woocommerce/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/trusted-shops-easy-integration-for-woocommerce/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/trusted-shops-easy-integration-for-woocommerce/#installation)
 * [Development](https://pcd.wordpress.org/plugins/trusted-shops-easy-integration-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/trusted-shops-easy-integration-for-woocommerce/)

## Description

The well-known Trustmark, the Buyer Protection and the authentic reviews from Trusted
Shops have stood for trust for over 20 years. More than 30,000 online shops throughout
Europe use our Trust solutions for more traffic, higher sales and better conversion
rates.

Trusted Shops Easy Integration is the easiest and fastest way to convince visitors
of the trustworthiness of your online shop. The simple installation guarantees product
use in just 5 minutes and usually requires little to no prior technical knowledge.
With our extension you are always technically up to date and have no additional 
maintenance effort.

Your benefit: With just a few clicks, visitors to your online shop can see trust
elements such as the Trustbadge or other on-site widgets, can benefit from buyer
protection and are automatically asked for feedback after placing an order.

#### All features at a glance:

 * Show Trustbadge, integrate Buyer Protection & collect shop reviews
 * Present your collected reviews in an appealing and sales-boosting way
 * Collect and display Product Reviews
 * Configure multiple shops within the same plugin

Please note: To use the extension Trusted Shops Easy Integration, you need an existing
Trusted Shops membership. You can find out more about the products and benefits 
of Trusted Shops on our [website](https://business.trustedshops.com/) or by calling:
+44 23364 5906

### Overriding templates

Templates may be overridden in a (child-) theme. Overriding the `templates/widgets/
product-widget.php` template in your theme
 by placing the original file in the 
following directory: `my-child-theme/woocommerce/widgets/product-widget.php`.

### Product attributes

#### Brand

WooCommerce does by default not provide a global brand attribute/setting for products.
The `Package::get_product_brand()` method determines
 the brand for a certain product.
By default, the logic searches for an attribute stored within the product data matching
the keyword `Brand` (or a translated version of it). One might easily adjust the
brand attribute name by using the filter `ts_easy_integration_product_brand_attribute_name`.
E.g.:

    ```
    add_filter( 'ts_easy_integration_product_brand_attribute_name', function( $attribute_name, $product ) {
        // Maybe adjust the $attribute_name based on the WC_Product $product
        return $attribute_name;
    }, 10, 2 );
    ```

Additionally the filter `ts_easy_integration_product_brand` is provided which allows
filtering the actual brand per product.

    ```
    add_filter( 'ts_easy_integration_product_brand', function( $brand, $product ) {
        // Maybe adjust the $brand based on the WC_Product $product
        return $brand;
    }, 10, 2 );
    ```

#### GTIN, MPN, SKU

The plugin uses product identifiers, which might not be provided by the Woo core(
e.g. GTIN, MPN) for widgets, order exports and the Trustcard.
 GTIN and MPN fields
are provided through the WooCommerce edit product panel and stored as meta data,
using the `meta_key` `_ts_gtin` and `_ts_mpn`.

Similar to the brand attribute, `Package::get_product_gtin()`, `Package::get_product_mpn()`
and `Package::get_product_sku()` are used to retrieve the data.
 Filters exist to
adjust the attributes:

 * `ts_easy_integration_product_gtin`
 * `ts_easy_integration_product_mpn`
 * `ts_easy_integration_product_sku`

Example filter-usage to adjust the GTIN:

    ```
    add_filter( 'ts_easy_integration_product_gtin', function( $gtin, $product ) {
        // Maybe adjust the $gtin based on the WC_Product $product
        return $gtin;
    }, 10, 2 );<h3>Technical Insights</h3>More technical insights in the [Github Repository](https://github.com/vendidero/trusted-shops-easy-integration-for-woocommerce) readme.md
    ```

#### Minimal Requirements

 * WordPress 4.9 or newer
 * WooCommerce 3.9 (newest version recommended)
 * PHP Version 5.6 or newer

## Screenshots

[⌊Screenshot 1⌉⌊Screenshot 1⌉[

Screenshot 1

[⌊Screenshot 2⌉⌊Screenshot 2⌉[

Screenshot 2

[⌊Screenshot 3⌉⌊Screenshot 3⌉[

Screenshot 3

[⌊Screenshot 4⌉⌊Screenshot 4⌉[

Screenshot 4

[⌊Screenshot 5⌉⌊Screenshot 5⌉[

Screenshot 5

## Installation

Install this plugin via WP-Admin > Plugins and connect your site via WooCommerce
> Settings > Trusted Shops.

#### Shortcodes

    ```
    [ts_widget id="{widget_id}" product_identifier="{identifier}"]
    ```

Use this shortcode to embed a specific widget, e.g.: `[ts_widget id="wdg-d6dc1e38-
d43b-46aa-123e-232441"]`. Please mind that embedding product-specific widgets by
passing an identifier (e.g. sku, gtin, mpn) will only work on product-specific pages.

#### Hooks

All frontend-related hooks, e.g. to output Trustbadge, Trustcard and Widgets are
managed in `src/Hooks.php`. External assets (e.g. the TS widgets script) are lazy-
enqueued via the [WordPress script API](https://developer.wordpress.org/reference/functions/wp_enqueue_script/)
as soon as a widget is rendered.

For each widget position (e.g. `product_title`) a custom hooks is placed, e.g. `
ts_easy_integration_single_product_title_widgets`. This way users may easily customize
where/when to output widgets by attaching custom scripts to it or removing the default
logic to output the widget.

To render a widget, 2 templates exist:

 1. `templates/widgets/product-widget.php` is used for product-related widgets.
 2. `templates/widgets/service-widget.php` is used for service widgets.

## FAQ

### Do you need help with Trusted Shops Easy Integration?

[Learn](https://help.etrusted.com/hc/en-gb/articles/4905016318237-Using-Trusted-Shops-with-a-plugin)
how to use Trusted Shops with a Plugin.

### Where do I report security bugs found in this plugin?

Please report security bugs found in the source code of the plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/1b34d5e3-c05d-4a86-ac92-44e0225e04ac).
The Patchstack team will assist you with verification, CVE assignment, and notify
the developers of this plugin.

## Reviews

![](https://secure.gravatar.com/avatar/b86b538bb520de85fdcf3e658a0a93fbdf17ad7b021bcbecc16ef5bf13337185?
s=60&d=retro&r=g)

### 󠀁[Alles bestens](https://wordpress.org/support/topic/alles-bestens-23/)󠁿

 [petmac](https://profiles.wordpress.org/petmac/) June 15, 2023 1 reply

Nach der Installation war noch ein wenig Hilfe vom Support notwendig, was super 
funktionierte. Jetzt läuft alles prima.

![](https://secure.gravatar.com/avatar/bec88558f8aebd45956b6a8966e655aef535d9870360731b0c6ecd8c71872488?
s=60&d=retro&r=g)

### 󠀁[Läuft reibungslos](https://wordpress.org/support/topic/lauft-reibungslos/)󠁿

 [schnittverhext](https://profiles.wordpress.org/schnittverhext/) May 24, 2023 1
reply

Läuft reibungslos

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/trusted-shops-easy-integration-for-woocommerce/reviews/)

## Contributors & Developers

“Trusted Shops Easy Integration for WooCommerce” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ vendidero ](https://profiles.wordpress.org/vendidero/)

“Trusted Shops Easy Integration for WooCommerce” has been translated into 2 locales.
Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/trusted-shops-easy-integration-for-woocommerce/contributors)
for their contributions.

[Translate “Trusted Shops Easy Integration for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/trusted-shops-easy-integration-for-woocommerce)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/trusted-shops-easy-integration-for-woocommerce/),
check out the [SVN repository](https://plugins.svn.wordpress.org/trusted-shops-easy-integration-for-woocommerce/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/trusted-shops-easy-integration-for-woocommerce/)
by [RSS](https://plugins.trac.wordpress.org/log/trusted-shops-easy-integration-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.8

 * Fix: Saving credentials

#### 2.0.7

 * Improvement: Compatibility with Woo 11.1
 * Security: Locally register events to confirm origin. Fixes a potential XSS – 
   thanks to bekitousei for reporting
 * Fix: Trustbadges bool value conversion

#### 2.0.6

 * Improvement: Compatibility with WP 7.1 and Woo 11.0
 * Security: Harden script host src validation and script attribute embeddings to
   prevent a potential XSS – thanks to bekitousei for reporting

#### 2.0.5

 * Fix: Channel array reset
 * Improvement: Use Woo core gtin as fallback if available

#### 2.0.4

 * Fix: Cache issue

#### 2.0.3

 * New: WP 6.6 compatibility
 * Fix: ReferenceError regeneratorRuntime

#### 2.0.2

 * Fix: Events API auth retry

#### 2.0.1

 * Fix: Events API error handling

#### 2.0.0

 * New: Send review invites based on custom order status

#### 1.0.8

 * Improvement: Indicate HPOS compatibility

#### 1.0.7

 * Improvement: Prevent trustcard from displaying multiple times
 * Improvement: Readme dev hints

#### 1.0.6

 * Fix: Update textdomain to reflect plugin slug
 * Fix: Fallback language file path

#### 1.0.5

 * Improvement: Compatibility during content filter removal

#### 1.0.4

 * Fix: PHP warning for PHP <= 7.4

#### 1.0.3

 * First release

## Meta

 *  Version **2.0.8**
 *  Last updated **4 weeks ago**
 *  Active installations **6,000+**
 *  WordPress version ** 4.9 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 5.6 or higher **
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/trusted-shops-easy-integration-for-woocommerce/),
   [English (US)](https://wordpress.org/plugins/trusted-shops-easy-integration-for-woocommerce/),
   and [German](https://de.wordpress.org/plugins/trusted-shops-easy-integration-for-woocommerce/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/trusted-shops-easy-integration-for-woocommerce)
 * Tags
 * [badge](https://pcd.wordpress.org/plugins/tags/badge/)[business ratings](https://pcd.wordpress.org/plugins/tags/business-ratings/)
   [trust](https://pcd.wordpress.org/plugins/tags/trust/)[woocommerce](https://pcd.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/trusted-shops-easy-integration-for-woocommerce/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/trusted-shops-easy-integration-for-woocommerce/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/trusted-shops-easy-integration-for-woocommerce/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/trusted-shops-easy-integration-for-woocommerce/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/trusted-shops-easy-integration-for-woocommerce/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/trusted-shops-easy-integration-for-woocommerce/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/trusted-shops-easy-integration-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/trusted-shops-easy-integration-for-woocommerce/reviews/)

## Contributors

 *   [ vendidero ](https://profiles.wordpress.org/vendidero/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/trusted-shops-easy-integration-for-woocommerce/)