2

I would like to have my clients upload a couple files when they add a product to the cart. I want to be able to do something similar to the print products on "missions linked.com".

1 Answer 1

4

I don't think the Store module works with file upload fields as product modifiers. But, here's a possible way to achieve the functionality I think you're looking for:

  1. Create a "designs" channel with a file upload field and any necessary meta fields.
  2. Use SafeCracker to let the user submit a "design" with uploaded file, and upon submission, redirect the user to a URI containing the ENTRY_ID of the new entry.
  3. On that page, include a Product form, and pass the ENTRY_ID of the design [via segment variable] into either a modifier parameter or hidden modifier field.
  4. When the user adds the item to the Cart, you can now reference the design via it's unique ID, which is contained in the modifier value. You can even use an embedded template or partial to pull the data from the design entry into the Checkout process.
2
  • Spot on! There is no way to directly upload files into the cart, so this is by far the best solution (and also allows your customers to re-order images they have previously uploaded if they want). Dec 29, 2012 at 20:33
  • This is a great solution. The one potential issue I have with it is that it doesn't let my customers upload the file as part of adding the product to their cart. Jan 2, 2013 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.