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.

Foxycart and LightCMS Photo Gallery Element Conflict

fc_joshfc_josh FoxyCart Team
in Bugs & Feature Requests edited October 2010
When trying to view cart or add product on a page that contains Foxycart and the Photo Gallery Element, Foxycart Box (colorbox) does not load. I assume it's a jquery conflict. Has anyone found a solution or workaround?
  • fc_adamfc_adam FoxyCart Team
    @ministrypixel, what javascript errors are you seeing on your page? That will generally tell you whats conflicting
  • brettbrett FoxyCart Team
    The issue is this one:
    <script src="http://..../wsl/Scripts/jquery.js?20101005b"; type="text/javascript"></script>
    (I redacted the domain.)

    jQuery gets defined at the top with the FC block, Colorbox gets added to jQuery, then jQuery (v0.3.2) is redefined and Colorbox doesn't exist. Since FoxyCart v0.7.0+ requires jQuery 1.4.2 I'd say try to get rid of the other jQuery entirely. If you can't do that, try moving the FoxyCart scripts to beneath where the other stuff is happening. But I'd try to get rid of the other one first.
  • fc_joshfc_josh FoxyCart Team
    Since I can't control where LightCMS puts its jquery, I placed the Foxycart includes right above the </body>. Worked like a charm! Thanks!
Sign In or Register to comment.