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

#   Alternative Hikashop Add to Cart notification Plugin ?

##

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

Less More

- Posts: 17
- Thank you received: 0
-
-

9 years 7 months ago -  9 years 7 months ago [\#267098](#267098) by [mindgem](/forum/user/49449-mindgem "View mindgem's Profile")  *[Alternative Hikashop Add to Cart notification Plugin ?](/forum/31-development/889763-alternative-hikashop-add-to-cart-notification-plugin#267098 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.10  I read somewhere:  &quot;Hi,  The option &quot;After a product is added to the cart&quot; only works with the legacy checkout. With the new checkout system, it's the &quot;Hikashop Add to Cart notification Plugin&quot; which is in charge of displaying notifications on the page and if the plugin isn't displaying any notification (because it's disabled or has a bug), then there is a fallback mechanism which redirects the customer to the checkout. Could you provide a screenshot of the settings of the plugin and a link to the shop so that we can look at the issue ? &quot;  Where is this fallback defined?  I created a custom 'Hikashop Add to Cart notification Plugin' to use UIkit notifications (override / update save) which all works fine, but because only the system now redirects me to checkout.  Any ideas else how to solve this?")* was created by *[mindgem](/forum/user/49449-mindgem "View mindgem's Profile")*

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.10

I read somewhere:

*"Hi,

The option "After a product is added to the cart" only works with the legacy checkout. With the new checkout system, it's the "Hikashop Add to Cart notification Plugin" which is in charge of displaying notifications on the page and if the plugin isn't displaying any notification (because it's disabled or has a bug), then there is a fallback mechanism which redirects the customer to the checkout.
Could you provide a screenshot of the settings of the plugin and a link to the shop so that we can look at the issue ? "*

Where is this fallback defined?

I created a custom 'Hikashop Add to Cart notification Plugin' to use UIkit notifications (override / update save) which all works fine, but because only the system now redirects me to checkout.

Any ideas else how to solve this?

Last edit: 9 years 7 months ago by [mindgem](/forum/user/49449-mindgem "View mindgem's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

9 years 7 months ago [\#267108](#267108) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Alternative Hikashop Add to Cart notification Plugin ?](/forum/31-development/889763-alternative-hikashop-add-to-cart-notification-plugin#267108 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.10  I read somewhere:  &quot;Hi,  The option &quot;After a product is added to the cart&quot; only works with the legacy checkout. With the new checkout system, it's the &quot;Hikashop Add to Cart notification Plugin&quot; which is in charge of displaying notifications on the page and if the plugin isn't displaying any notification (because it's disabled or has a bug), then there is a fallback mechanism which redirects the customer to the checkout. Could you provide a screenshot of the settings of the plugin and a link to the shop so that we can look at the issue ? &quot;  Where is this fallback defined?  I created a custom 'Hikashop Add to Cart notification Plugin' to use UIkit notifications (override / update save) which all works fine, but because only the system now redirects me to checkout.  Any ideas else how to solve this?")*

Hello,

The fallback functions are defined (and added) but the HikaShop cart helper.
But the code which call these function is directly in the HikaShop main javascript file.
Code:

var triggers = window.Oby.fireAjax(cart_type+'.updated', {id: cart_id, el: el, product_id: product_id, type: cart_type, resp: resp}); if(triggers !== false &amp;&amp; triggers.length &gt; 0) return true; if(window.localPage &amp;&amp; cart_type == 'cart' &amp;&amp; window.localPage.cartRedirect &amp;&amp; typeof(window.localPage.cartRedirect) == 'function') return window.localPage.cartRedirect(cart_id, product_id, resp); if(window.localPage &amp;&amp; cart_type == 'wishlist' &amp;&amp; window.localPage.wishlistRedirect &amp;&amp; typeof(window.localPage.wishlistRedirect) == 'function') return window.localPage.wishlistRedirect(cart_id, product_id, resp);

The goal of the fallback is to do something if you do not have the "cart notify" plugin, or another plugin which react to the javascript events.
In order to not let the fallback be processed, your custom JS function must return "true" in order to indicate that you did something

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 17
- Thank you received: 0
-
-

9 years 7 months ago [\#267144](#267144) by [mindgem](/forum/user/49449-mindgem "View mindgem's Profile")  Replied by *[mindgem](/forum/user/49449-mindgem "View mindgem's Profile")* on topic *[Alternative Hikashop Add to Cart notification Plugin ?](/forum/31-development/889763-alternative-hikashop-add-to-cart-notification-plugin#267144 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.10  I read somewhere:  &quot;Hi,  The option &quot;After a product is added to the cart&quot; only works with the legacy checkout. With the new checkout system, it's the &quot;Hikashop Add to Cart notification Plugin&quot; which is in charge of displaying notifications on the page and if the plugin isn't displaying any notification (because it's disabled or has a bug), then there is a fallback mechanism which redirects the customer to the checkout. Could you provide a screenshot of the settings of the plugin and a link to the shop so that we can look at the issue ? &quot;  Where is this fallback defined?  I created a custom 'Hikashop Add to Cart notification Plugin' to use UIkit notifications (override / update save) which all works fine, but because only the system now redirects me to checkout.  Any ideas else how to solve this?")*

Thanks. All working ok now here with UIKit. But good to have some background info as I'm still searching for stuff.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4OTc2My1hbHRlcm5hdGl2ZS1oaWthc2hvcC1hZGQtdG8tY2FydC1ub3RpZmljYXRpb24tcGx1Z2luP3RtcGw9bWFya2Rvd24=) 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.057 seconds

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