ChrisU2R Posted September 10, 2010 Share Posted September 10, 2010 I'm trying to set up a shop which allows the customer to upload an image which will be printed on their merchandise, does anyone know if a module or script exists to allow this ?Ideally, the customer would be able to upload their image file when adding the product to their cart with some means of identifying that the uploaded image belongs to the selected cart object and customer, perhaps requiring the customer to be registered and adding their account number and product code to the filename of the uploaded file.Think of it like this, the customer wants 5 mousemats with uploaded picture (A) and 3 coffee mugs with picture ( etc...The filename could become (customer number)(product code)(original filename).jpeg for example. 12345mousemathappyface.jpegFile type and size restrictions would be useful from a security point of view.Any suggestions ? Link to comment Share on other sites More sharing options...
Patric Posted September 10, 2010 Share Posted September 10, 2010 Please, have a look at this feature :Back Office >> CatalogEdit a productClick on tab 5. CustomizationHere you can create text en file upload fields. Link to comment Share on other sites More sharing options...
ChrisU2R Posted September 11, 2010 Author Share Posted September 11, 2010 Apologies if this post isn't in the correct forum but this one seemed closest and related to my original post.The customization option would be ideal, however when I tried it (as a customer) by uploading file and adding to cart - the resulting page is broken, only showing the header and the left sidebar and nothing is added to the cart.I'm not sure if this is a bug or an issue with my webhost - anyone else experience this ? Link to comment Share on other sites More sharing options...
ChrisU2R Posted September 11, 2010 Author Share Posted September 11, 2010 Problem solved - there was a file size restriction imposed by my webhost (shared hosting is not the best option when doing this kind of thing) which bypassed the file size setting in config>config.inc.phpI'll add that setting the ‘display_errors’ from ‘off’ to ‘on’ as posted by Rocky on another thread was very useful.If you have the same problem, ask your webhost to change the php.ini file - mine was set to 2mb and they were prepared to increase the upload size to 10mb but no more on shared hosting - Have to ideally upgrade to VPS hosting for more with my provider but their service is 24/7 and very good.Now I just need to dress up the file upload part of the page to make it idiot-proof ! Link to comment Share on other sites More sharing options...
Recommended Posts