You have no items in your shopping cart.

Thursday, April 25, 2024 12:23:55 AM

Norton Shopping guarantee program?

Posted: 7 years ago

#1788 Quote

jaacretailers

Posted: 7 years ago

#1788 Quote
Hello,  i just bought a Sticker plugin from you. It is fantastic and i really good. I am currently evaluating the Simple checkout and i have a question. I use the Norton Shopping guarantee program and they need the below code. Can you please help what need to be filled ?

_GUARANTEE.Guarantee.order = 'Checkout.OrderNumber';
_GUARANTEE.Guarantee.subtotal = 'Checkout.Total';
_GUARANTEE.Guarantee.email = 'Checkout.Email';
_GUARANTEE.WriteGuarantee('JavaScript', '_GUARANTEE_GuaranteeSpan');

===============================================

<!-- BEGIN: NSG_GUARANTEE -->
<span id='_GUARANTEE_GuaranteeSpan'></span>
<script type="text/javascript" src="//nsg.symantec.com/Web/Seal/gjs.aspx?SN=*********"></script>
<script type='text/javascript'>
if(window._GUARANTEE && _GUARANTEE.Loaded) {
_GUARANTEE.Hash = '**********************';
_GUARANTEE.Guarantee.order = 'Checkout.OrderNumber';
_GUARANTEE.Guarantee.subtotal = 'Checkout.Total';
_GUARANTEE.Guarantee.email = 'Checkout.Email';
_GUARANTEE.WriteGuarantee('JavaScript', '_GUARANTEE_GuaranteeSpan');
}
</script>
<!-- END: NSG_GUARANTEE -->

Posted: 7 years ago

#1790 Quote

Support

Posted: 7 years ago

#1790 Quote
I think you must add your code to the file Completed.cshtml from your themes folder.

Example

@model CheckoutCompletedModel
@using Nop.Web.Models.Checkout;
@using Nop.Core.Infrastructure;
@using Nop.Services.Orders;
@{
    Layout = "~/Views/Shared/_ColumnsOne.cshtml";

    //title
    Html.AddTitleParts(T("PageTitle.Checkout").Text);
    var checkoutEmail = "";
    var checkoutTotal = decimal.Zero;
    var order = EngineContext.Current.Resolve<IOrderService>().GetOrderById(Model.OrderId);
    if (order!=null)
    {
        checkoutEmail = order.Customer.Email;
        checkoutTotal = order.OrderTotal;
    }
}
<!-- BEGIN: NSG_GUARANTEE -->
<span id='_GUARANTEE_GuaranteeSpan'></span>
<script type="text/javascript" src="//nsg.symantec.com/Web/Seal/gjs.aspx?SN=********"></script>
<script type='text/javascript'>
    if(window._GUARANTEE && _GUARANTEE.Loaded) {
        _GUARANTEE.Hash = '*******************************************';
        _GUARANTEE.Guarantee.order = '@Model.OrderId';
    _GUARANTEE.Guarantee.subtotal = '@checkoutTotal';
    _GUARANTEE.Guarantee.email = '@checkoutEmail';
    _GUARANTEE.WriteGuarantee('JavaScript', '_GUARANTEE_GuaranteeSpan');
}
</script>
<!-- END: NSG_GUARANTEE -->
<div class="page checkout-page order-completed-page">
    <div class="page-title">
        <h1>@T("Checkout.ThankYou")</h1>
    </div>

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved