How to integrate the Trustbadge® into your Zen Cart website

 

zencart+ts
Effortlessly collect, show and manage customer reviews with the one and only Trustbadge® technology for your Zen Cart website! Once integrated, it updates automatically.

If you don't have an account yet, it's free and easy to sign up.

 


Setup the Trustbadge® once to start collecting reviews

Step 1

Enter your unique Trusted Shops ID into the relevant box and your personal integration code will be generated.



 

Now copy the generated code into your clipboard.

Step 2

The Trustbadge-Javascript has to be integrated under:

 .../includes/templates/template_default/common/tpl_footer.php

The trustedShopsCheckout DIV may be inserted into the following file, when the default structure is not changed:

includes/templates/template_default/templates/tpl_checkout_success_default.php
 

trustedShopsCheckout DIV for version >= 1.5

<!-- bof Trusted Shops -->

<?php $sql = "select customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'";

$result = $db->Execute($sql);

$customers_email_address = $result->fields['customers_email_address']; ?>

<div id="trustedShopsCheckout" style="display: none;">

    <span id="tsCheckoutOrderNr"><?php echo $order_summary['order_number'];?></span>

    <span id="tsCheckoutBuyerEmail"><?php echo $result->fields['customers_email_address'];?></span>

    <span id="tsCheckoutOrderAmount"><?php echo $order_summary['order_total'];?></span>

    <span id="tsCheckoutOrderPaymentType"><?php echo $order_summary['payment_module_code'];?></span>

    <span id="tsCheckoutOrderCurrency">EUR</span>

</div>

<!-- eof Trusted Shops -->

trustedShopsCheckout DIV for version < 1.5

<!-- bof Trusted Shops -->

<div id="trustedShopsCheckout" style="display: none;">

<span id="tsCheckoutOrderNr">' . $ord['orders_id'] .'</span>

<span id="tsCheckoutBuyerEmail">' . $ord['customers_email_address'] .'</span>

<span id="tsCheckoutOrderAmount">' . $ord['order_total'] .'</span>

<span id="tsCheckoutOrderCurrency">EUR</span>

<span id="tsCheckoutOrderPaymentType">' . $payment_type . '</span>

<span id="tsCheckoutOrderEstDeliveryDate"></span>

</div>

<!-- eof Trusted Shops -->
 

Save these settings by clicking on Save.

You have successfully integrated the Trustbadge®, congratulations! The good news is that your Trustbadge® is already requesting reviews automatically. To invite previous clients to leave a review, start using the Review Collector now!