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.

    1. In your BigCommerce admin, click on Storefront, then go to the Script Manager section.
    2. Click on “Create a Script”
    3. Name of the script: “Shopping Guarantee”
    4. Location on page: “Footer”
    5. Select pages where the script will be added: “All pages”
    6. Script category: “Functional”
    7. Script type “Script”.
    8. Copy/paste the Shopping Guarantee Seal code below into the Script contents box.
    9. Click Save.

    BigCommerce - BuySafe
    
    <!-- BuySafe Trustmark -->
    <script type="text/javascript" src="//guarantee-cdn.com/Web/Seal/gjs.aspx?SN=#########"></script>
    

    Step 2:  Add the Guarantee code

    IMPORTANT! – This step should run only on the “Order confirmation page”

    1. In your BigCommerce admin, click on Storefront, then got to the Script Manager section.
    2. Click on “Create a Script”
    3. Name of script: “Shopping Guarantee Confirmation’
    4. Location on page: “Footer”
    5. Select pages where script wil be added: “Order confirmation”
    6. Script category: “Functional” or “Essential” based on your business preferences.
    7. Script type “Script”.
    8. Copy/paste the Shopping Guarantee code below into the the Script contents box.
    9. Click Save.

    BigCommerce-Step_2_BuySafe
    
    <!-- Shopping Guarantee -->
    <script type="text/javascript" src="//guarantee-cdn.com/Web/Seal/gjs.aspx?SN=########"></script>
    <script type="text/javascript">
    fetch('/api/storefront/order/{{checkout.order.id}}', {
    credentials: 'include'
    }).then(function (response) {
    return response.json();
    }).then(function (order) {
    
    if (window._GUARANTEE && _GUARANTEE.Loaded) {
    _GUARANTEE.Guarantee.order = order.orderId;
    _GUARANTEE.Guarantee.subtotal = order.baseAmount;
    _GUARANTEE.Guarantee.currency = order.currency.code;
    _GUARANTEE.Guarantee.email = order.billingAddress.email;
    _GUARANTEE.WriteGuarantee();
    }
    
    });
    </script>
    

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

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

    in Integration