Installing the WooCommerce plugin

A new plugin has been available for WooCommerce since September 2022. Therefore, there are two installation options:

Installation option 1: You already use a Trusted Shops plugin for WooCommerce.

  1. First, uninstall your previously used plugin with the help of the section on “Uninstallation”.
  2. Then, install the current plugin with the help of the section on “Installation”.

Installation option 2: You have not used a Trusted Shops plugin for WooCommerce yet.

  1. Skip the section on "Uninstallation".
  2. Install the current plugin with the help of the section on “Installation”.

Uninstallation

  1. Log in to the WooCommerce Backend.
  2. In the main navigation, click on „Plugins“ (01_16x16.png) and then on „Installed Plugins“ (02_16x16.png).
    5_-_Deinstallation__1_.png
  3. An overview of your installed plugins will appear. Search for „Trustbadge Reviews for WooCommerce“ and click on „Deactivate“.
    6_-_Deinstallation__2_.png
  4. Your plugin is now deactivated. Click on „Delete“.
    6_-_Deinstallation__3_.png

Your previously used plugin has been successfully uninstalled. Now follow the "Installation" section to install the current plugin.

Installation

First open your WooCommerce backend. And select the menu item "Plugins" (01_16x16.png) in the main navigation on the left hand side. In the menu tree that now opens, click on “Add new" (02_16x16.png). An overview will then open, in which you can search for new plugins. Enter the word "Trustbadge" in the search field (03_16x16.png) to search for the Trusted Shops plugin. As soon as the plugin marked in the following screenshot appears, you can click on "Install now" (04_16x16.png).

1_-_Installation.png

Please click on the button "Activate" afterwards.

2-_Aktivieren.png

The Trusted Shops plugin is now installed. You can check this in the "Installed Plugins" overview. To do this, select the corresponding menu item in the main navigation.

3_-_Installierte_Plugins.png

Once you have found the Trusted Shops plugin in the list, click on "Settings" to go to the configuration.

4-_Einstellungen.png

Configuration

Do you use Trusted Shops Product Reviews?

Yes.

Then, you will use identifiers such as GTIN, MPN and brand in your product management. These identifiers are required in order to collect product reviews. However, the identifiers are not part of the WooCommerce default settings. You will therefore probably have selected individual names for the identifiers. Unfortunately, the Trusted Shops plugin cannot read the data in the individually designated fields on its own. Before configuring the plugin, you must therefore manually define what you have named the identifiers. The plugin can then automatically read the required data.

  1. Determine which of the GTIN, MPN and brand identifiers you use in your product management.
  2. Do you use GTIN? In the following code snippet, replace the area marked in bold ('name_of_gtin_field') with the name of the field in which the GTIN value is stored:
<?php
add_filter( 'ts_easy_integration_product_gtin', function( $gtin, $product ) {
    $product = is_numeric( $product ) ? wc_get_product( $product ) : $product;

    if ( $product ) {
        // get custom product GTIN and adjust $gtin
       $gtin = $product->get_attribute('name_of_gtin_field');
    }
    return $gtin;
}, 10, 3 );
  1. Do you use MPN? In the following code snippet, replace the area marked in bold ('name_of_mpn_field') with the name of the field in which the MPN value is stored:
<?php
add_filter( 'ts_easy_integration_product_mpn', function( $mpn, $product ) {
    $product = is_numeric( $product ) ? wc_get_product( $product ) : $product;

    if ( $product ) {
        // get custom product MPN and adjust $mpn
       $mpn = $product->get_attribute('name_of_mpn_field');
    }     
    return $mpn;
}, 10, 3 );
  1. Do you use the brand identifier? In the following code snippet, replace the area marked in bold ('name_of_brand_field') with the name of the field in which the brand value is stored:
<?php
add_filter( 'ts_easy_integration_product_brand', function( $brand, $product ) {
    $product = is_numeric( $product ) ? wc_get_product( $product ) : $product;

    if ( $product ) {
        // get custom product Brand and adjust $brand
       $brand = $product->get_attribute('name_of_brand_field');
    }     
    return $brand;
}, 10, 3 );
  1. Open the functions.php file within your (child) template.
  2. Insert the edited code snippets into the functions.php file.

You have now successfully defined the names of the identifiers for the Trusted Shops plugin.

Now, follow these instructions to configure the plugin according to your individual needs: Using Trusted Shops with a plugin

No.

Then, follow these instructions to configure the plugin according to your individual needs: Using Trusted Shops with a plugin


Was this article helpful?

16 out of 33 found this helpful