Jump to content
thirty bees forum
  • 0

Stop home page refreshing after add to cart is clicked


Question

Posted

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).

14 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

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.

  • 0
Posted

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?

  • 0
Posted

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

  • 0
Posted

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 ?

  • 0
Posted

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.

  • 0
Posted

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?

  • 0
Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...