Can I utilize a Squarespace form with FoxyCart?

Hi guys, I have a SquareSpace site...

I can use a form with dropdowns on the site using a regular sq space code block, but...

I'm wondering if I can utilize a Squarespace form to capture & pass information to FoxyCart? If so, how would I do that...?

If not, anyone know of nice pop-up modal code I could utilize to place my form in?

  • fc_adamfc_adam FoxyCart Team

    Good question. Unfortunately you won't be able to use Squarespace's native forms, as they don't support changing where the form is submitted to, to be able to point it to your FoxyCart store. Your best bet for forms in Squarespace now is to make use of their code block.

    In terms of modals - I believe you should be able to use any modal you prefer with Squarespace. There are definitely lots of options out there, a couple for example:
  • Thanks for the great support!
  • Hey Adam, thank you for the references above!

    I'm trying to utilize Magnific to hold my form, but I'm not sure how to properly submit it to FoxyCart. When I hit ""Add to Cart" I get an error: "does not appear to be a valid subscription frequency. Please use this format: Xd, Xw, Xm, Xy where X is a number."

    If you go to this page ( and click on "Magnific inline popup" you'll see what I'm talking about.

    Thanks for you kind help,
  • fc_adamfc_adam FoxyCart Team

    Thanks for the link. I can see the error you're describing there, it seems to happen only when selecting the one-time option for the subscription.

    This looks to be because the option value is blank (as you don't want to pass a sub_frequency value for a one-time charge), but you're also including a product option modifier. That's causing our system to try to detect the sub frequency - but it's not seeing one so is showing that error.

    To fix that - I'd recommend defaulting your category to be "Regular" in the add to cart, so you don't need to worry about including the category product option modifier there. That should fix the error then as you'll be able to leave the value blank for the one time offer.
  • Ah, ok. Thanks Adam. Can you give me an example of defaulting the category at the add to cart?

    Kind thanks,
  • fc_adamfc_adam FoxyCart Team

    Certainly! In your form you currently have something like this towards the top of it:
    <input type="hidden" name="category" value="">
    To set it to a default category value - you'd update it like this:
    <input type="hidden" name="category" value="Regular">
    You can then update the one-off option's to have a blank value, instead of including the category product option modifiers.
  • Got it! Thank you!
Sign In or Register to comment.