I developed a pluging to choose the store where you pick up the goods.
When the OnePageCheckout start, rather than selecting the shipping address, you can browse the map and choose the store nearest to you, everything worked out fine and when submit I receive "store id" instead of the "address id".
I created a method into my plugin controller to add a new shipping address egual to store address by id, and i would call OpcSaveShipping() with new created id.
.
I inserted a FilterAction at OpcSaveShipping to encode the address of the client, but my problem is that I can't launch action into my plugin controller from the FilterAction, but I can i.e. an action in Checkout Controller.
public void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute("gommisti-list",
"Gommisti/{action}/{id}",
new { controller = "Gommisti", action = "List", id = "" },
new[] { "Nop.Plugin.Shipping.Gommisti.Controllers" }
);
}
and into OnActionExecuting
filterContext.Result = new RedirectToRouteResult(new RouteValueDictionary(new
{
controller = "Gommisti",
action = "CodeShipToGommista",
values = new { id_gommista = gommistaId }
}));
return;
Please, help me, why not fire??
Thanks a lot in advance.