Show Free Shipping Over X Value to customer

Posted: November 24, 2016 at 12:13 AM Quote #179190
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
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: November 24, 2016 at 1:36 AM Quote #179191
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
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
nopCommerce Solution Partner
http://www.nop4you.com - The biggest nopCommerce plugins marketplace
http://www.grandnode.com - Free E-commerce for Big Data and Real Time Marketing
----------------------------------------------------------------------------------
nop4you: plugins, widgets, themes,
Posted: May 18, 2017 at 3:09 PM Quote #187952
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
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: May 19, 2017 at 5:42 PM Quote #188011
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 post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
www.noptools.com
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2017
Learn more