Take the 2-minute tour ×
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It's 100% free, no registration required.

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".

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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.
share|improve this answer
    
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). –  Adrian Macneil Dec 29 '12 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. –  Austin Hunt Jan 2 '13 at 15:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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