[Skip to main content](#vessel-content)

#   Cart Ajax Popup

##

- **[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")**
- [![tgdkere2's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8136-tgdkere2 "View tgdkere2's Profile") Topic Author
- [ Offline](/forum/user/8136-tgdkere2)

Less More

- Posts: 82
- Thank you received: 5
-
-

12 years 5 months ago [\#160455](#160455) by [tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")  *[Cart Ajax Popup](/forum/35-orders-management/869042-cart-ajax-popup#160455 "I use custom plugin for onBeforeCartUpdate event to perform some checks. If checks fail, then I set $do to false and enqueue a message for the user. However, the ajax cart popup appears anyway and notifies the user that the product has been successfully added to the cart, which is of course wrong.  How can I prevent the Popup or even better customize the poput text that the product is NOT added to the car. Or display a custom popup as it is used for the custom fileds if e.q. a mandatory field is not filled. if I can interact on that level, the popup would not be fired..  Regards")* was created by *[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")*

I use custom plugin for onBeforeCartUpdate event to perform some checks.
If checks fail, then I set $do to false and enqueue a message for the user.
However, the ajax cart popup appears anyway and notifies the user that the product has been successfully added to the cart, which is of course wrong.

How can I prevent the Popup or even better customize the poput text that the product is NOT added to the car.
Or display a custom popup as it is used for the custom fileds if e.q. a mandatory field is not filled.
if I can interact on that level, the popup would not be fired..

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2OTA0Mi1jYXJ0LWFqYXgtcG9wdXA/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 months ago [\#160521](#160521) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Cart Ajax Popup](/forum/35-orders-management/869042-cart-ajax-popup#160521 "I use custom plugin for onBeforeCartUpdate event to perform some checks. If checks fail, then I set $do to false and enqueue a message for the user. However, the ajax cart popup appears anyway and notifies the user that the product has been successfully added to the cart, which is of course wrong.  How can I prevent the Popup or even better customize the poput text that the product is NOT added to the car. Or display a custom popup as it is used for the custom fileds if e.q. a mandatory field is not filled. if I can interact on that level, the popup would not be fired..  Regards")*

Hi,

The best thing will be to not use the default HikaShop popup. So change the value of the option "After a product is added to the cart" in Configuration &gt; Main &gt; Cart.

And based on your checks, display your custom popup with your custom content.
If checks are ok, so display content like the original popup, else display the desired text.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2OTA0Mi1jYXJ0LWFqYXgtcG9wdXA/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")**
- [![tgdkere2's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8136-tgdkere2 "View tgdkere2's Profile") Topic Author
- [ Offline](/forum/user/8136-tgdkere2)

Less More

- Posts: 82
- Thank you received: 5
-
-

12 years 5 months ago [\#160527](#160527) by [tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")  Replied by *[tgdkere2](/forum/user/8136-tgdkere2 "View tgdkere2's Profile")* on topic *[Cart Ajax Popup](/forum/35-orders-management/869042-cart-ajax-popup#160527 "I use custom plugin for onBeforeCartUpdate event to perform some checks. If checks fail, then I set $do to false and enqueue a message for the user. However, the ajax cart popup appears anyway and notifies the user that the product has been successfully added to the cart, which is of course wrong.  How can I prevent the Popup or even better customize the poput text that the product is NOT added to the car. Or display a custom popup as it is used for the custom fileds if e.q. a mandatory field is not filled. if I can interact on that level, the popup would not be fired..  Regards")*

Thanks. Do you have some more info, how to achieve this ? E.g. how to display a own customized popou ? Where to integrate the code, so that it will be displayed ?

Thanks and br

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2OTA0Mi1jYXJ0LWFqYXgtcG9wdXA/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

12 years 5 months ago [\#160585](#160585) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart Ajax Popup](/forum/35-orders-management/869042-cart-ajax-popup#160585 "I use custom plugin for onBeforeCartUpdate event to perform some checks. If checks fail, then I set $do to false and enqueue a message for the user. However, the ajax cart popup appears anyway and notifies the user that the product has been successfully added to the cart, which is of course wrong.  How can I prevent the Popup or even better customize the poput text that the product is NOT added to the car. Or display a custom popup as it is used for the custom fileds if e.q. a mandatory field is not filled. if I can interact on that level, the popup would not be fired..  Regards")*

The simplest will be to edit the file "notice" of the view "checkout" via the menu Display&gt;Views.
That's where the message of the popup is displayed. So there you can customize the code to display different things based on whether the product was added to the cart or not.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2OTA0Mi1jYXJ0LWFqYXgtcG9wdXA/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.068 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
