I am developing a nopCommerce plugin which add item to shopping cart from external URL.
I've created one controller and wrote code to read sku and qantity and add it to shopping cart.
Now what I want to do is I want to redirect to shopping cart page also want to show notification message like item is added to shopping cart.
Also show error details if any.
I am trying to use json return method like.
return Json(new
{
success = false,
message = "Items added to shopping cart.",
Url = "/cart",
JsonRequestBehavior.AllowGet
});
I am getting followin error message.
This request has been blocked because sensitive information could be disclosed to third party web sites when this is
used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet
I need your help in order to resolve this error.
Is my way is correct? What I want to do is redirect to shopping cart ans show success or error message.
Thanks in Advance!