Jump to content

Cart change expand status


MaximilianCCM

Recommended Posts

Nice idea..

I think the default movement of the ajax cart is clunky. I don't like the way it 'over-expands' then comes back to size when a product is added.
Not meaning to hijack your thread, but is there a way to take out the 'over-expansion' or bounce effect?

Link to comment
Share on other sites

Hello,

unfortunally I haven't resolved it, but I think there must be a solution in the .js file. I have set the cookie that once it is closed, the cart remains closed thill the user open it again, but I need it closed by default...

Any help or even an idea is welcome!

Thank you!

Link to comment
Share on other sites

  • 2 months later...

Hi!

 

Paste this code int the ajax-cart.js file, into the begining of the file.

The only thing is that every reload the cart will be collapsed.

 

// Close the Cart by default
$.ajax({
type: 'GET',
url: baseDir + 'modules/blockcart/blockcart-set-collapse.php',
async: true,
data: 'ajax_blockcart_display=collapse' + '&rand=' + new Date().getTime()
});

Link to comment
Share on other sites

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