Using Trusted Shops with osCommerce

Integrate teh Trustbadge into your osCommerce website


Installation

The integration of the Trustbadge® in osCommerce must be done manually on the server.

Notice: The manual integration of the Trustbadge requires basic knowledge of code.


Step 1: Add Checkout Div

In order to integrate the Trustbadge into your shop, you must first insert an HTML code at the end of your order confirmation page ("Thank you page"). To do this, first log into the file system of your osCommerce installation and open the following file:

 

/osCommerceInstallation/catalog/checkout_success.php

 

ServerCheckoutDIV1

 

Notice: Make a backup of your system before making changes to the files. Then you have the possibility to undo changes if necessary.

Scroll to the end of the file and find the </form> tag. Insert the following HTML code directly after the closing </form> tag.

 

Then save your changes and transfer them to the server.

 

Step 2: Generate Trustbadge code

Enter your Trusted Shops ID or the URL of your shop in the input field below to generate your individual Trustbadge code.

Notice: You will find your Trusted Shops ID (starting with X...) in the welcome e-mail that you received from Trusted Shops.

 


 

 

Copy the generated code to the clipboard.

 

Step 3: Integrate Trustbadge Code

Open the following file in your osCommerce file system:

 

/osCommerceInstallation/catalog/includes/template_bottom.php 

 

Scroll to the end of the file and look for the closing </body> tag. Paste the Trustbadge code copied to the clipboard in step 2 into the line immediately before this tag. Now save the changes and transfer them to the server.

 

ServerTB

 

Once you have completed these steps, you can now test the function of your Trustbadge. To do this, place a test order in your shop. If the Trustcard (“Guarantee Card") appears at the end of your order, you have successfully integrated the Trustbadge into your shop, the guarantee is active and shop reviews are collected.

 

Käuferschutzkarte_EN-Jul-03-2020-01-34-03-54-PM


Configuration

You have now successfully installed the Trustbadge in osCommerce. Next, we will show you how you can configure the Trustbadge® technology according to your individual requirements.


Configure Trustbadge

The unique Trustbadge® technology makes it so simple to collect, manage and display your customer reviews in your shop. You can also easily integrate your trustmark and offer the guarantee.

By default the Trustbadge is displayed in the lower right corner of your shop. By entering a pixel number in the code line ˈyOffsetˈ of the Trustbadge code from step 2, you can move the Trustbadge upwards at the right edge of the screen. This makes sense, for example, if important elements of your shop would otherwise be covered by the Trustbadge.

Furthermore, you have the possibility to display the Trustbadge with or without star ratings in your shop.

 

trustbadge2_engl-3

 

You can determine the form of presentation you require by means of the code line ˈvariantˈ. If you want to display the Trustbadge without star ratings, replace the existing code line ˈvariantˈ by the following:

 

ˈvariantˈ: ˈdefaultˈ, /* default, reviews, custom, custom_reviews */

 

For the Trustbadge variant with star ratings, please use the following code line:

 

ˈvariantˈ: ˈreviewsˈ, /* default, reviews, custom, custom_reviews */

 

Integrate the customised code into your osCommerce file system as described in step 3.


Send review requests

After the integration of the Trustbadge, your customers will be able to activate a guarantee and/or choose to be sent a review request directly after checkout. To send a review request to your existing customers as well, you can use the Review Collector. This article explains what you need to do to achieve this..