Close

Nop.Plugins.AjaxCart in Uptown

rznELVIS
7 years ago
#13696 Quote
Avatar
  • 2
Hello community.

I have the problem. I'm using SevenSpikes.Nop.Plugins.AjaxCart version 3.80. It works good.

If I use debug mode then I see that Ajax Cart plugin redirect "Add To Cart" function to ShoppingCartController.AddProductToCart_Details. But I want use another(my) controller instead of standart ShoppingCartController. I've overrided routes and I can use my shopping controller if I will use direct link, like that addproducttocart/details/{productId}/{shoppingCartTypeId}.
But Ajax Cart controller continues use old ShoppingCartController.

Is it possible configure controller name in Ajax Car plugin ?
SDobrev
7 years ago
#13697 Quote
Avatar
  • 283
Hi,

Unfortunately, it is not possible.

In the AjaxCart controller, the ShoppingCartController is inherited and this can not be changed.
You will have to modify the "AddProductToCart_Details" method.
Best Regards,
Stoyan Dobrev
Nop-Templates.com
rznELVIS
7 years ago
#13701 Quote
Avatar
  • 2
I got it. Thanks!