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.

Form Question

jdtsignshopjdtsignshop Member
in Help edited May 2008
I am a new customer to Foxy Cart, which is a very cool cart program. Very robust.

My question is this. I have a sign shop, and at times it is required to have customers upload files for their designs.

Is there a way to implement the "upload a file" option into the html area so that when the customer picks their color, size, they can also upload their file to my server when they hit the checkout button. That way when I get their payment with all of the details, I will get the file. It doesnt neccessarily have to be part of the checkout, but is it possible to have the file upload while they are being directed to the checkout screen?

I maybe asking for to much, and will most likely have to keep doing it the way I have been which is contacting the customer and asking for the file via email.

I just thought I would ask the really smart people to see what kind of response I got. I have been adding drop down boxes and all is working fine for that, but the Upload a file option just shows the path to the file on the local computer instead of uploading when hitting the Checkout button.

I will check back tomorrow to see if anybody has any ideas.

Thanks Alot
JDT Sign Shop
  • brettbrett FoxyCart Team
    While I think it'd be possible to do it on the checkout (or receipt) using some clever ajax, I think it might be easier to do it before or after checkout.

    I'd suggest 2 options:
    1. Collect the files using a form prior to checkout. Get the filenames attached to the product on add-to-cart. You could use the fc_PreProcess() function possibly to roll the upload + add-to-cart into one step.

    2. Collect the files after the receipt (or on the receipt). This could happen a few ways... you could include a link to the upload form on your site in the receipt email (or a separate category receipt email), or if you want more advanced integration you could use the XML datafeed to allow/prepare your upload script to accept their files.

    If you really wanted the files on checkout you could probably do it, but it'd definitely involve some AJAX. But that'd definitely be cool as well.
  • Excuse me for being an idiot, but what is the fc_PreProcess? & What does it do?
  • brettbrett FoxyCart Team
    Ha, not an idiot. Our docs suck. We're working on it though. Here's a sneak peek:

    fc_PreProcess() can be set to run prior to any add-to-cart functionality, and can return true (add to cart) or false (don't add to cart):
  • jdtsignshopjdtsignshop Member
    edited May 2008
    OK Brett What is the code to call up the cart, just to view cart? I have been looking and thought I saw it before, I just cant remember where

    One more thing, do I have to include this code on every page I am selling items on?

    <script src=""; type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href=""; type="text/css" media="screen" charset="utf-8" />

    Or just on the main page
    Thanks Alot
  • Found the view cart info, but still curious about the code on every page question

  • brettbrett FoxyCart Team
    That code needs to be on every page that you want FoxyCart to function on. Keep in mind that you may want to have a "persistent cart" display (like "You have 3 items in your cart" or something) on your site somewhere, so you'd need this call on every page. It should be cached after the first pageload though so it'll only affect your pageweight the first time.
Sign In or Register to comment.