Article Table of Contents

    Step 1: Install the Sitewide Trustmark

    The Seal Code should be placed in the global footer so the Seal is displayed on all pages of your site.
    This code block will also introduce the Kicker graphics in the product details and cart pages:

    <!-- BuySafe Trustmark -->
    <script type="text/javascript" src="//"></script>

    Step 2:  Add the Guarantee code

    The guarantee code is placed in the order success page ONLY.
    Edit the success.phtml template on Magento, and add toward the bottom of the page:

    $_G_ID = Mage::getSingleton('checkout/session')->getLastRealOrderId();
    $_G_ORDER = Mage::getModel('sales/order')->loadByIncrementId($_G_ID);
    $_G_TOTAL = number_format($_G_ORDER->getGrandTotal(),2);
    $_G_EMAIL = $_G_ORDER->getCustomerEmail();
    $_G_CURR = $_G_ORDER->getOrderCurrencyCode();
    <!-- Shopping Guarantee -->
    <script type="text/javascript" src="//"></script>
    <script type="text/javascript">
    if (window._GUARANTEE && _GUARANTEE.Loaded) {
    _GUARANTEE.Guarantee.order = "<?php echo $_G_ID; ?>";
    _GUARANTEE.Guarantee.subtotal = "<?php echo $_G_TOTAL; ?>";
    _GUARANTEE.Guarantee.currency = "<?php echo $_G_CURR; ?>"; = "<?php echo $_G_EMAIL; ?>";
    <!-- Shopping Guarantee -->

    Congrats! You’re all setup and ready to offer the best shopping experience to your customers with added BuySafe protections.

    Have some more questions? Contact Us and our support team will be happy to help.

    in Integration