Add cart message

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

Is it possible to have a custom message displayed on the cart page above the terms and conditions checkbox?

Thanks,

Andy
7 years ago
andrewhuk41 wrote:
Hi,

Is it possible to have a custom message displayed on the cart page above the terms and conditions checkbox?

Thanks,

Andy


Yes it is possible to add message.
You need to modify OrderSummary.cshtml page.

..\Presentation\Nop.Web\Views\ShoppingCart\OrderSummary.cshtml



  @if (Model.IsEditable)
               {
                   if (Model.TermsOfServiceOnShoppingCartPage)
                   {
             <div>Enter your text here</div>
                       <div id="terms-of-service-warning-box" title="@T("Checkout.TermsOfService")" style="display: none;">
                           <p>@T("Checkout.TermsOfService.PleaseAccept")</p>
                       </div>
                       <div class="terms-of-service">
                           <input id="termsofservice" type="checkbox" name="termsofservice"/>
                           <span>
                                @T("Checkout.TermsOfService.IAccept")
                               <a class="read" id="read-terms">
                                    @T("Checkout.TermsOfService.Read")
                                </a>
                            </span>
                           <script>
                               $(document).ready(function() {
                                   $('#read-terms').on('click', function(e) {
                                       e.preventDefault();
                                       displayPopupContentFromUrl('@Url.RouteUrl("TopicPopup", new {SystemName = "conditionsofuse"})', '@T("Checkout.TermsOfService")');
                                   });
                               });
                           </script>
                       </div>
                   }



This will add text above checkbox on shopping cart page.

Hope this helps.
7 years ago
7 years ago
Thank you Ajay!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.