Foxy Forum Status

We're no longer responding to questions via our forum, but we will keep it up for historical reasons. If you can't find the answer you're looking for, please visit our knowledge base or contact us. If there's enough interest in the future, we may bring the forum back.

Does direct-to-checkout require any FoxyCart files?

fortuityfortuity Member
in Help edited January 2010
I've implemented direct to checkout using the parameter cart=checkout.

Is there any need for the FoxyCart files in the HTML head section on my site when I am using direct-to-checkout? I mean the foxycart_includes.js Javascript and the CSS styles. Does removing them break anything?
<!-- BEGIN FOXYCART FILES -->
<script src="https://secure.timetoquitdrinking.com/files/foxycart_includes.js"; type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="https://secure.timetoquitdrinking.com/files/foxybox.css"; type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="https://secure.timetoquitdrinking.com/themes/standard/theme.foxybox.css"; type="text/css" media="screen" charset="utf-8" />
<!-- END FOXYCART FILES -->
Comments
  • fortuityfortuity Member
    edited January 2010
    To answer my own question, it looks like I need the foxycart_includes.js Javascript file on my site
    or else I get this error on my checkout page:
    Error: fc_json.custom_fields.ga is undefined
    

    The CSS files aren't needed if I'm not using the cart.
  • lukeluke FoxyCart Team
    Hey fortuity.

    They also handle a lot of the session handling between your server and hours (specifically the foxycart.js file). If you're curious what's going on in there feel free to open it up and take a look at the locations of the raw files. Let us know if you have any questions.
  • Luke,

    You said "specifically the foxycart.js file" -- you mean the
    foxycart_includes.js
    
    file, don't you?

    Or have I overlooked an important file?
  • lukeluke FoxyCart Team
    Sorry for not being clear. If you open up the foxycart_includes.js you'll see the locations of the "raw" files it is using. One of those files is foxycart.js which has the methods I was referring to and handles session stuff which is important.
  • brettbrett FoxyCart Team
    Just to be clear: Revamping that includes file a bit is on the list for the future. The foxycart.js file (referenced in the comments in the foxycart_includes.js is the really important one, as it handles the sessions. That file requires jQuery, so you'll need that as well. We'll be looking at splitting some of these off to give easier flexibility down the road.
  • @brett and @luke, thanks for the information.
Sign In or Register to comment.