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

#   Add to Cart HTML Link without Going to Cart

##

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

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 8 months ago [\#38481](#38481) by [Myra](/forum/user/5392-myra "View Myra's Profile")  *[Add to Cart HTML Link without Going to Cart](/forum/4-how-to/38481-add-to-cart-html-link-without-going-to-cart#38481 "I've got the links on my site I want to add items to my shopping cart, from the link given on the product pages. Works fine, adds the items fine. What I don't want to happen is for the user to leave...")* was created by *[Myra](/forum/user/5392-myra "View Myra's Profile")*

I've got the links on my site I want to add items to my shopping cart, from the link given on the product pages. Works fine, adds the items fine. What I don't want to happen is for the user to leave the page that they are on, I don't want them to be taken to the shopping cart. My options?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM4NDgxLWFkZC10by1jYXJ0LWh0bWwtbGluay13aXRob3V0LWdvaW5nLXRvLWNhcnQ/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

14 years 8 months ago [\#38574](#38574) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Add to Cart HTML Link without Going to Cart](/forum/4-how-to/38481-add-to-cart-html-link-without-going-to-cart#38574 "I've got the links on my site I want to add items to my shopping cart, from the link given on the product pages. Works fine, adds the items fine. What I don't want to happen is for the user to leave...")*

Hi,

You can configure the action to do after the event "add to cart".
[ www.hikashop.com/en/support/documentatio...config.html#checkout](http://www.hikashop.com/en/support/documentation/integrated-documentation/54-hikashop-config.html#checkout)

> After a product is added to the cart : You can choose to always go to the checkout page, or to always stay on the same page. Additionally, you can let the system choose whether to stay or go to the checkout based on the cart module being displayed or not: if displayed, you will stay on the same page but if the module is not displayed you will go to the checkout page. Finally, you can choose to display a notification popup to the user which will stay for 3 seconds where the user can click on a button to access the checkout or close the popup immediately.

Regards,

---

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

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 8 months ago [\#38612](#38612) by [Myra](/forum/user/5392-myra "View Myra's Profile")  Replied by *[Myra](/forum/user/5392-myra "View Myra's Profile")* on topic *[Re: Add to Cart HTML Link without Going to Cart](/forum/4-how-to/38481-add-to-cart-html-link-without-going-to-cart#38612 "I've got the links on my site I want to add items to my shopping cart, from the link given on the product pages. Works fine, adds the items fine. What I don't want to happen is for the user to leave...")*

When I add to cart with an HTML link and not the normal Add to Cart button, it ignores the event setup, like displaying a popup box or staying on page, it just always goes straight to the cart. Add to cart from the normal Add to Cart Button triggers the event like you mentioned.

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

Less More

- Posts: 86292
- Thank you received: 14270
-
-

14 years 8 months ago [\#38641](#38641) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add to Cart HTML Link without Going to Cart](/forum/4-how-to/38481-add-to-cart-html-link-without-going-to-cart#38641 "I've got the links on my site I want to add items to my shopping cart, from the link given on the product pages. Works fine, adds the items fine. What I don't want to happen is for the user to leave...")*

Yes, that option cannot work if you use a direct HTML link.

If you want to stay and display a popup while still using an HMTL link, you will have to have you HTML link more complex:
[ www.hikashop.com/en/forum/4-how-to/8572-...e-possible.html#8572](http://www.hikashop.com/en/forum/4-how-to/8572-add-to-cart-link-ajax-or-stay-same-page-possible.html#8572)

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

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

[](#top)
