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?
Comments
  • 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
    brett,
    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.