Crazy Filename Problem

sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
in Bugs & Feature Requests edited July 2010
I think I’m losing my mind here.

http://www.iveycake.com/cart11.html
Click the button. The overlay doesn’t work—the form redirects to another page. I can’t see anything wrong.

http://www.iveycake.com/test.html
Exact same code. Just a different filename. Works fine.
I deleted cart11.html and renamed test.html to cart11.html. Then it doesn’t work anymore. I rename it back to test.html and it works fine.

Links seem to work okay, it’s just the form submitting. Shop.html seems to work fine, so I can use that filename, but there seems to be a problem with cart-named files. Seems pretty nutty to me.

David
Comments
  • brettbrett FoxyCart Team
    Hi David.
    The cause is the "cart" in the filename. The issue is that the foxycart_includes.js should _not_ be run on the FoxyCart cart, so it does a check to see if it's on "cart". As of v060 it's not a super strong check, so it's matching your "cart11" and not running.

    Our next release won't work quite the same way, but for now we recommend changing your filename if possible. If not, you could change the foxycart_includes.js.
  • sparkwebsparkweb Member, Integration Developer, FoxyShop, Order Desk
    Thanks Brett. Great to know.... thought I was losing my mind there for a while.
  • i lose my mind on a regular basis. welcome to the club..haha
Sign In or Register to comment.