Your Foxy Custom checkout field code should look similar to this:
<divclass="fc-form-group"><divclass="col-sm-8 col-sm-offset-3"><divclass="fc-input-group-container fc-input-group-container--checkbox fc-input-group-container--active"><labelclass="fc-input-group-container__title fc-input-group-container__title--forced fc-form-label">Upload Files</label><divclass="fc-form-group"><p>Click the button below to upload your files.</p><linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/uc-file-uploader-regular.min.css"/><scripttype="module">import * asLRfrom"https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/uc-file-uploader-regular.min.js";
LR.defineComponents(LR);
</script><uc-configctx-name="upload"pubkey="demopublickey"multiple></uc-config><uc-upload-ctx-providerctx-name="upload"></uc-upload-ctx-provider><uc-file-uploader-regularctx-name="upload"><uc-form-inputrequiredctx-name="upload"></uc-form-input></uc-file-uploader-regular><input
</div></div></div></div>
8
Save your template configuration settings by clicking the "Checkmark" button at the bottom.
Final Results
If everything has been setup correctly, customers will see a new section on the checkout page where they can click to upload their files. Just like everything else in Foxy, the upload button and surrounding elements can be customized and styled with custom HTML and CSS.
Accessing Uploaded Files
A link to uploaded file(s) will be available in the receipt (both web and email) along with transaction details in the Foxy admin here.
Need Help?
Did this article answer your questions? Need help with anything? Please click below to contact us.