Hello !!
I have customized "Buy Now" button in NopCommerce 3.80, I am able to add product in cart on button click but not able to redirect to checkout page or shopping cart.
Please help...
return Json(new
{
success = true,
message = string.Format(_localizationService.GetResource("Products.ProductHasBeenAddedToTheCart.Link"), Url.RouteUrl("ShoppingCart")),
updatetopcartsectionhtml = updatetopcartsectionhtml,
updateflyoutcartsectionhtml = updateflyoutcartsectionhtml
});
return Json(new
{
redirect = Url.RouteUrl("ShoppingCart"),
});
return Json(new
{
success = true,
message = string.Format(_localizationService.GetResource("Products.ProductHasBeenAddedToTheCart.Link"), Url.RouteUrl("ShoppingCart")),
updatetopcartsectionhtml = updatetopcartsectionhtml,
updateflyoutcartsectionhtml = updateflyoutcartsectionhtml
});
return Json(new
{
redirect = Url.RouteUrl("ShoppingCart"),
});