New Zenner
- Join Date:
- Oct 2006
- Posts:
- 3
- Plugin Contributions:
- 0
Customer Upload Artwork Facility
I need to allow customers ordering certain products to upload an image file. This image file will be used to fulfill the order.
Views: 33,678
New Zenner
I need to allow customers ordering certain products to upload an image file. This image file will be used to fulfill the order.
New Zenner
Bump.
I was just searching for the same exact thing.
Is this a feature built in to Zen-cart? Or should i try to build my own page and php functionality to handle this?
I have a sign store and customers might need to upload a file for their logo or design. I would hate to have to tell them to send the file separately through email or something.
New Zenner
I finally found some threads on this (I wasnt searching for the right wording before) and see that you can acheive this through the Product Attributes, but setting up option names/values and attributes is a little confusing.
Can anyone point me to a thread or article that explains pretty good how to use the attributes/options sections?
:blink:
Inactive
Although I'm not yet sure the problem can be resolved correctly through a ZC feature, odds are you will face some problems.
By default, each Hoster has Server-wide settings for max. file size of uploads when using PHP. This max. file size is usually 2 MB and can be very restricting in some cases. If a ZC feature does provide what you want and find you are restricted to a 2 MB file size, the following code may help.
in > public_html/.htaccess
put > php_flag upload_max_filesize 10M [or whatever file size you desire]
The thing about allowing uploads is to always make sure you can specify what type of files, max. file size, and where they can be uploaded to. Otherwise, you could get people uploading files sizes that are HUGE -- needlessly using up valuable Web space within your Hosting account -- or even worse, somebody uploading their hacker script(s).
In similar situation with another Shopping cart, this person is running a Printing business, the best solution was to use a 3rd party script coded in Perl. By using Perl instead of PHP, upload limitions were overcome and strict security was imposed on any uploaded files.
The learning is in the doing.
New Zenner
The problem with using a 3rd party perl script is i cant have the functionality i need built seemlessly into the pages, like having the ablity to upload a file per item they add to the cart as they are adding them to the cart.
Inactive
Ahhh, yes, that age old problem of security vs convenience.
I was just reading a post about a Download module available in the Module dowloads, perhaps they have an Upload one? Can you provide a URL to the thread you referenced or what Keyword you used? Would like to check into this further myself as I can see where this is information I will need to know as well.
The learning is in the doing.
Oba-san
One thing that really helps in learning how to use Zen Cart for all of these features is to create a test directory /test_shop and a test database and install a clean Zen Cart (v1.3.6 is the current version as of last night) ...
Install with the demo data ... as they are built to show you how to use all of the features such as Products that require radiobuttons, dropdowns, checkboxes, text or downloads and uploads etc.
The examples help break down the peices needed to make these features work ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Inactive
You offer good advice Linda but in these days of 'hurry up and get it done", it is more common to looking on usage for a specific feature. Which brings to mind the Downloads section for ZenCart. As there is no search feature, one must browse every section, until the desired module is found, or continue searching for perhaps a slightly better one.
Also, using the Search function of the Forum or Tutorial section and using "upload feature", brings back many irrelevant threads and tutorials. I'm sure one could trial & error different keywords but perhaps you can answer the question as to what Module or built-in feature should be used for allowing Customers to upload files, and any relevant URLs?
Thanks
The learning is in the doing.
Oba-san
Options Name Manager ...
Option Name: Logo
Option Type: File
Option Value Manager ...
NOTE: You do not add anything for the Option Value
Attributes Controller ...
Locate Product for Upload
Option Name: Logo
Option Value: TEXT [RESERVED FOR TEXT/FILES ONLY ATTRIBUTES]
Files will be uploaded to:
/images/uploads
They will be labled by number.ext and match what is in the Orders information of the Admin ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
New Zenner
Thank you for making that easy :P
I might still do that install for a test zencart as well..
Also im not sure the exact threads i saw but it basically just said that type of functionality is handled in the attributes admin section. That was it.. no other info.
New Zenner
Hi,
I noticed two possible limitations of the file attribute.
Thanks
New Zenner
fawzi:
Hi,
I noticed two possible limitations of the file attribute.
- One can add a product in the basket, even if the form file field is empty
- The file is not deleted when the product is deleted from basket
Thanks
ps: I use zen-cart 1.3.5
Oba-san
We will be re-writting the Uploader for the Products in a future release ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
New Zenner
Thanks for your reply Ajeh
I have restricted upload to some extensions (images only).
When I add a product with a bad file extension, I have an error message.
Okay, but the product should not be added to the basket.
I will try to work with the observers...
Suggestions very appreciated.
Configuration->maximum values->Allowed Filename Extensions for uploading
New Zenner
Thank you for this, and all the rest. You saved me a lot of time.
New Zenner
I have been having a problem with the file upload attribute. The files are uploading like they are supposed to. We actually have the option to upload two files.
Front Image:
Back Image:
The files are uploading to the server properly without any problems. The area we are having difficulties with is in reviewing the order from admin..
if you go to Customers->Orders and click the edit button it shows the orders and has the uploaded images listed. For some reason the first image has the num.filename.ext still and is not hyperlinked
The second image is num.ext and is hyperlinked so we can easily find and send it to our printers.
Can someone tell me why this might be happening? One thing I did notice is that the images that are not hyperlinked have a space between the first dot and the filename....
example: num. filename.ext
Any help would be appreciated. Attached it a screenshot showing the issue
Oba-san
Zen Cart, by default, does not add links to the orders on uploads ...
Do you have an add-on or some custom coding that you have done?
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
New Zenner
Our site allows customers to buy insurance on products and to do this the customer uploads a PDF showing the current condition of an item. When the order is processed the name on the pdf is changed to the order number + pdf like 277.pdf. All is just fine if there is only 1 purchased but if there are 4 then all four are named 277.pdf and you can only see the last one as the other 3 have been over written because the file name is the same.
My Question is: Is there an easy way to avoid this? Maybe save them 277a, 277b, etc? It makes the transaction tedious for a customer to have to check out after each purchase.
v1.3.02
Oba-san
While it appears that the uploaded file uses the orders_id that is a misnomer ...
It is really using the numbers sequencially and by coincidence, the numbers will match for sometime but eventually this will not be true as some Products, like yours have more than one upload so where it might be on orders_id 12 and add the first file as 12.ext ... then next file will be 13.ext, 14.ext, 15.ext and then on the next order 13 it would be using 16.ext ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
New Zenner
Ajeh, Thank you for your insight!
Can you tell me which database table this information is stored on?
Tell staff why this post should be reviewed.