Show Free Shipping Over X Value to customer

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi All,

I have configured Free Shipping Over 'X' from admin and set some value for 'X', but my question is that how end user will came to know that there is free shipping over 'X'? I mean to say that is there any setting or a way to show message to customer at shopping cart page that "If you shop over 'X', you will be eligible for free shipping"?

Thanks,
Dilip
7 years ago
Edit your template OrderSummary.cshtml file and add text in if condition ( @if (Model.Items.Count > 0) ) add text you would like to display. This way info of the shipping would be visible only if any product is added to cart.

You may add in place of the text, @T("MyCustomShoppingInfo"), and add that string resource to language. This way from admin panel you will be able to edit it, without messing in code.

Regards,
Tomasz
6 years ago
I am trying to get this to work but with one small change. I only want this to show when the subtotal is below $50. I am still learning the nopC code but having some trouble with proper formatting.

So far I have in the OrderTotals.cshtml. But it no workie. :/


  @if (Model.SubTotal < 50)
  {
            <tr class="order-subtotal">
                <td class="cart-total-left" colspan="2">
                    <label>Orders over $50, qualify for Free Shipping</label>
                </td>
            </tr>
  }


Regard,
Drew
6 years ago
SubTotal is a string.  It is used for display.  (Also, it will reflect currency conversion, if any.)


\Presentation\Nop.Web\Models\ShoppingCart\OrderTotalsModel.cs
    public partial class OrderTotalsModel : BaseNopModel
    {
...
        public string SubTotal { get; set; }
...
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.