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

#   Cart goes straight to checkout after adding item

##

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

Less More

- Posts: 121
- Thank you received: 7
-
-

14 years 1 month ago [\#67449](#67449) by [jeremynsl](/forum/user/489-jeremynsl "View jeremynsl's Profile")  Replied by *[jeremynsl](/forum/user/489-jeremynsl "View jeremynsl's Profile")* on topic *[Re: Cart goes straight to checkout after adding item](/forum/3-bug-report/62147-cart-goes-straight-to-checkout-after-adding-item?start=20#67449 "I've configured Hikashop to 'Always stay on same page' after adding an item to the cart. However, it doesn't seem to pay attention to that variable and just heads straight for checkout after adding...")*

Thanks Nicolas for all your help! I still cannot get the 'icon-shopping-cart' class added to the button but we are 90% there and I can live with that I suppose.

Great support and a great product ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjE0Ny1jYXJ0LWdvZXMtc3RyYWlnaHQtdG8tY2hlY2tvdXQtYWZ0ZXItYWRkaW5nLWl0ZW0/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

14 years 1 month ago [\#67667](#67667) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart goes straight to checkout after adding item](/forum/3-bug-report/62147-cart-goes-straight-to-checkout-after-adding-item?start=20#67667 "I've configured Hikashop to 'Always stay on same page' after adding an item to the cart. However, it doesn't seem to pay attention to that variable and just heads straight for checkout after adding...")*

You can do like that for that:

echo str_replace('hikashop_cart_input_button','icon-shopping-cart',str_replace('Add to cart','Add to cart $'.$product-&gt;prices[0]-&gt;price_value,$add_to_cart));

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

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

Less More

- Posts: 63
- Thank you received: 3
-
-

11 years 3 months ago [\#209781](#209781) by [sedonasky](/forum/user/32085-sedonasky "View sedonasky's Profile")  Replied by *[sedonasky](/forum/user/32085-sedonasky "View sedonasky's Profile")* on topic *[Re: Cart goes straight to checkout after adding item](/forum/3-bug-report/62147-cart-goes-straight-to-checkout-after-adding-item?start=20#209781 "I've configured Hikashop to 'Always stay on same page' after adding an item to the cart. However, it doesn't seem to pay attention to that variable and just heads straight for checkout after adding...")*

We are using Hikashop Essential 2.5.

Where is the option to add products to cart (rather than going straight to cart)?

I could not find this option in the new Config checkout page.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjE0Ny1jYXJ0LWdvZXMtc3RyYWlnaHQtdG8tY2hlY2tvdXQtYWZ0ZXItYWRkaW5nLWl0ZW0/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

11 years 3 months ago [\#209783](#209783) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart goes straight to checkout after adding item](/forum/3-bug-report/62147-cart-goes-straight-to-checkout-after-adding-item?start=20#209783 "I've configured Hikashop to 'Always stay on same page' after adding an item to the cart. However, it doesn't seem to pay attention to that variable and just heads straight for checkout after adding...")*

Hi,

I suppose that you're talking about the "After a product is added to the cart" setting that you can find in the Cart section of the main tab of the HikaShop configuration page.

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

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