How to replace AjaxCart message with modal popup layer

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 лет назад
Hi, I am trying to replace the AjaxCart (the green message bar) with a model popup layer where I can show some more information to the user. I am not sure how to do this the best way and if it is maybe possible by writing a plugin.

I found https://www.nopcommerce.com/boards/t/40322/popup-model-window.aspx as the only help in the nop forums. But I allready found the code myself. I would like to change as minimal of the origin nop source code as possible.

Is there any way to do that by plugin? Can someone get me some helpful tips?


Regards,
Sven
7 лет назад
[email protected] wrote:
Hi, I am trying to replace the AjaxCart (the green message bar) with a model popup layer where I can show some more information to the user. I am not sure how to do this the best way and if it is maybe possible by writing a plugin.

I found https://www.nopcommerce.com/boards/t/40322/popup-model-window.aspx as the only help in the nop forums. But I allready found the code myself. I would like to change as minimal of the origin nop source code as possible.

Is there any way to do that by plugin? Can someone get me some helpful tips?


Regards,
Sven

In the _Root.cshtml file  you will find the following code

AjaxCart.init(false, '.header-links .cart-qty', '.header-links .wishlist-qty', '#flyout-cart');


Modify above code like bellow==>Approximate Line no 13


AjaxCart.init(true, '.header-links .cart-qty', '.header-links .wishlist-qty', '#flyout-cart');


Note: _Root.cshtml File path

DefaultPath: ~\Views\Shared\_Root.cshtml

ThemePath:  ~Themes\{YourThemename}\Views\Shared\_Root.cshtml

Hope it will help you.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.