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

#   Add to cart redirecting to checkout

##

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

Less More

- Posts: 68
- Thank you received: 8
-
-

5 years 1 month ago [\#335322](#335322) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  *[Add to cart redirecting to checkout](/forum/27-checkout/903124-add-to-cart-redirecting-to-checkout#335322 "-- url of the page with the problem -- :   www.mumshealth.com/guidelines-tools  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.1 -- Browser(s) name and version -- : Chrome  Hi,  I just updated hikashop and now whenever I add a product to the cart it redirects me to the checkout even though the cart notification plugin is enabled and &quot;redirect to checkout&quot; is set to &quot;no redirect&quot;")* was created by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")*

-- url of the page with the problem -- : [ www.mumshealth.com/guidelines-tools](https://www.mumshealth.com/guidelines-tools)
-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.1
-- Browser(s) name and version -- : Chrome

Hi,

I just updated hikashop and now whenever I add a product to the cart it redirects me to the checkout even though the cart notification plugin is enabled and "redirect to checkout" is set to "no redirect"  [ ![plugin.png](/forum/attachment/53459) ](/forum/attachment/53459 "plugin.png")

- [ ![plugin.png](/forum/attachment/53459) ](/forum/attachment/53459 "plugin.png") [ ](/forum/attachment/53459?download=1 "plugin.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMzEyNC1hZGQtdG8tY2FydC1yZWRpcmVjdGluZy10by1jaGVja291dD90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

5 years 1 month ago [\#335329](#335329) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add to cart redirecting to checkout](/forum/27-checkout/903124-add-to-cart-redirecting-to-checkout#335329 "-- url of the page with the problem -- :   www.mumshealth.com/guidelines-tools  -- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.10.1 -- Browser(s) name and version -- : Chrome  Hi,  I just updated hikashop and now whenever I add a product to the cart it redirects me to the checkout even though the cart notification plugin is enabled and &quot;redirect to checkout&quot; is set to &quot;no redirect&quot;")*

Hi,

Well, first, I only see that issue the first time I add something to the cart on your website. If I then add a second product, it works properly.
And on the first time when it doesn't work properly, I can see a javascript error on the page:
[ i.imgur.com/aevISns.png](https://i.imgur.com/aevISns.png)
And I don't get that error when it then works fine.
I think the issue happens because all the HTML / javascript of the page is compressed by an optimization extension but it's too aggressive and it renders the javascript code on the invalid:
[ i.imgur.com/fx4hnFx.png](https://i.imgur.com/fx4hnFx.png)
This leads to the javascript error, which prevents HikaShop from loading properly on the page and thus the add to cart works in degraded mode and has to redirect to the checkout as it can't display the notification box because it hasn't been initialized properly in the first place.

So I would recommend deactivating the HTML/javascript compression on your optimization extension and it should hopefully fix the problem.

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

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

[](#top)
