Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Stop home page refreshing after add to cart is clicked

Featured Replies

Hi

Right now (on my test site) when you click "add to cart" on any product on the home page (using the button that drops down) it refreshes the page and takes you back to the top of the page.

I need to stop that happening, it's interfering with a plugin I am using. When add to cart is clicked I just need the page to stay as it is, with the add to cart drop down open (ie: no change at all).

Anyone know how I can do this. Also, out of interest, why does it refresh the page like that, I don't think it happens on the product pages, but I may be wrong).

  • Author

Hi, yes, it is here for now: http://eptest.gn.apc.org

please scroll down to the usual new / popular / etc tabs which are lower down the page. the green bottle/box has an add to cart option on it, thats a good one to test.

  • Author

ok, anything more specific? I will pass it to the designer. He is a buddy and not a prestashop native. Thanks again for quick reply :)

It looks like it is a 1.5 theme, it is using 1.5 javascript calls which are not present in thirty bees. I think you might have to use a theme for 1.6 or thirty bees.

  • Author

Hi, I'm pretty sure it's not a prestashop 1.5 theme. We instructed the designer to take the default thirty bees theme and edit it to look like our old theme (prestashop 1.5 default theme modified). It has things in it which look like the thirtybees front end demo though, the way the menu looks and the search bart etc. It's definitely not the same as our 1.5 theme (www.ethical-pets.co.uk).

The thirtybees demo has a modal cart thing which we don't use, we set it to stay on page when product is added to cart in the back officr. I don't have a blank install to check this out on though, but perhaps it's a bug?

Hmm, the issue is that the ajax cart functionality is broken. It looks like they have changed or moved the blockcart and the js cannot find it and errors, https://www.screencast.com/t/HHxZ2u92Q

  • Author

Yeah, that sounds possible, we have a thing where the basket image changes when items are put in the cart which doesn't work so well in 1.6 but was fine in 1.5 comma I guess a few things got broken when he added that feature back in. I'll share this thead with him and hopefully we can fix it! Thanks for your help buddy ?

It also looks like it is a 3rd party module too causing the issue. I don't think that module is needed, you might disable it. It could be poorly written.

  • Author

Oh, darn, thats the one I just baught, it's something I really wanted... Out of interest when you say it's poorly written, how bad is it interests when you say it's poorly written, how bad is it? I bought it from the official prestashop store (i am not a fan). I can report the bug I guess....

One thing that might be the cause if I'm not sure if thirty bees is effectively ps 1.6 or 1.6.1?

I am just guessing it is. It might rely on the cart having a set path which has been changed by the theme designer. thirty bees is based of of 1.6.1.10, but diverged pretty well. It should be something the designer can fix pretty easily.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.