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

#   Add to Cart AJAX still refreshes page?

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

14 years 4 months ago [\#53676](#53676) by [jorishikashop](/forum/user/7431-jorishikashop "View jorishikashop's Profile")  *[Add to Cart AJAX still refreshes page?](/forum/4-how-to/53676-add-to-cart-ajax-still-refreshes-page#53676 "Hi,  I turned &quot;use Ajax add to cart where possible&quot; and selected &quot;always stay on the same page&quot; in &quot;After a product is added to the cart&quot;. Also i added the Add To Cart button on the product category listing as described in the this forum.  Still the page refreshes after adding a product to the cart, i can see the cart being updated through ajax just before the refresh, how can i avoid the page being refreshed?  Only when i choose &quot;Stay and display a Pop-up Notice&quot; the page does not refresh, I find the pop-up not so useful for my site.  Can I correct this? Thanks a lot :blush: for the great program and support so far.")* was created by *[jorishikashop](/forum/user/7431-jorishikashop "View jorishikashop's Profile")*

Hi,

I turned "use Ajax add to cart where possible" and selected "always stay on the same page" in "After a product is added to the cart". Also i added the Add To Cart button on the product category listing as described in the this forum.

Still the page refreshes after adding a product to the cart, i can see the cart being updated through ajax just before the refresh, how can i avoid the page being refreshed?

Only when i choose "Stay and display a Pop-up Notice" the page does not refresh, I find the pop-up not so useful for my site.

Can I correct this? Thanks a lot :blush: for the great program and support so far.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUzNjc2LWFkZC10by1jYXJ0LWFqYXgtc3RpbGwtcmVmcmVzaGVzLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

14 years 4 months ago [\#53733](#53733) 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 AJAX still refreshes page?](/forum/4-how-to/53676-add-to-cart-ajax-still-refreshes-page#53733 "Hi,  I turned &quot;use Ajax add to cart where possible&quot; and selected &quot;always stay on the same page&quot; in &quot;After a product is added to the cart&quot;. Also i added the Add To Cart button on the product category listing as described in the this forum.  Still the page refreshes after adding a product to the cart, i can see the cart being updated through ajax just before the refresh, how can i avoid the page being refreshed?  Only when i choose &quot;Stay and display a Pop-up Notice&quot; the page does not refresh, I find the pop-up not so useful for my site.  Can I correct this? Thanks a lot :blush: for the great program and support so far.")*

Hi,

No, that cannot be changed. It is necessary to update the page for various reasons.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUzNjc2LWFkZC10by1jYXJ0LWFqYXgtc3RpbGwtcmVmcmVzaGVzLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 11 months ago [\#75593](#75593) by [r3sp](/forum/user/7564-r3sp "View r3sp's Profile")  Replied by *[r3sp](/forum/user/7564-r3sp "View r3sp's Profile")* on topic *[Add to Cart AJAX still refreshes page?](/forum/4-how-to/53676-add-to-cart-ajax-still-refreshes-page#75593 "Hi,  I turned &quot;use Ajax add to cart where possible&quot; and selected &quot;always stay on the same page&quot; in &quot;After a product is added to the cart&quot;. Also i added the Add To Cart button on the product category listing as described in the this forum.  Still the page refreshes after adding a product to the cart, i can see the cart being updated through ajax just before the refresh, how can i avoid the page being refreshed?  Only when i choose &quot;Stay and display a Pop-up Notice&quot; the page does not refresh, I find the pop-up not so useful for my site.  Can I correct this? Thanks a lot :blush: for the great program and support so far.")*

maybe this will be useful for somebody - you can enable ajax button and popup window, and then hide popup adding those lines in your css:

\#sbox-overlay {
display: none;
}
\#sbox-window {
display: none;
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUzNjc2LWFkZC10by1jYXJ0LWFqYXgtc3RpbGwtcmVmcmVzaGVzLXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.054 seconds

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