Jump to content

Customer file or image upload ?


Recommended Posts

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 (B) etc...

The filename could become (customer number)(product code)(original filename).jpeg for example. 12345mousemathappyface.jpeg

File type and size restrictions would be useful from a security point of view.

Any suggestions ?

Link to comment
Share on other sites

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

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

I'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

×
×
  • Create New...