The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

javascript not working on full page cart

My custom footer scripts are not working when the cart is full page. They all work correctly in sidecart. None of them work at all when the full page cart is loaded. The scripts are loaded in the context of {% if context == 'cart' %}, and are correctly appearing in the source code on both the sidecart and the full page cart. What gives?

Will whisper my test store url where I'm working on this.

  • fc_adamfc_adam FoxyCart Team

    Thanks for whispering the link. I believe what you're seeing there is that on the full page cart, the jQuery scripts are being executed before jQuery is actually ready. On Sidecart, as it's rendered after the main page is already loaded, jQuery is definitely already there.

    If you wrap the jQuery lines for changing the PayPal image and adding the click event in a jQuery document.ready, that should get them working on the full page cart as well.
  • Thanks. that fixed it!
Sign In or Register to comment.