nopSolutions / nopCommerce

ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
https://www.nopcommerce.com
Other
9.3k stars 5.32k forks source link

Estimate shipping not applying on the shopping cart page #5907

Closed RomanovM closed 3 years ago

RomanovM commented 3 years ago

I have found a bug in the Cart page where after selecting a shipping method it's not updating in the order summary section

  1. nopCommerce version: 4.40.4

  2. Expected behavior: After selecting a shipping method order summary should show the selected shipping method and prices should adjust accordingly if applicable

  3. Actual behavior: Order Summary not updating after selecting shipping method

  4. Steps to reproduce the problem: Go to cart page after you have added products , then click on estimate shipping and select a shipping method

  5. Any private modifications : No

Reasons for the problem : An Invalid url parameter is being sent as a "$" sign is placed in the requested url .

Solution : Remove $ sign from the the following cshtml => src/Presentation/Nop.Web/Views/Shared/Components/ShoppingCartEstimateShipping/Default.cshtml where a ajax request is being sent to the following route "shoppingcart/selectshippingoption"

Source: https://www.nopcommerce.com/boards/topic/92236/cart-page-estimate-shipping-not-applying-bug

holydk commented 3 years ago

Closed #5907