Forums / Setting Up Categories, Products, Attributes / Customer Upload Artwork Facility

Customer Upload Artwork Facility

Views: 33,678

Results 1 to 20 of 85
24 Oct 2006, 6:00 PM
#1
chrisc avatar

chrisc

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.

27 Oct 2006, 5:43 AM
#2
gxwarr avatar

gxwarr

New Zenner

Join Date:
Oct 2006
Posts:
21
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

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.

27 Oct 2006, 5:59 AM
#3
gxwarr avatar

gxwarr

New Zenner

Join Date:
Oct 2006
Posts:
21
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

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:

27 Oct 2006, 10:56 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

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.

Potent Products

27 Oct 2006, 9:45 PM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

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.

Potent Products

27 Oct 2006, 11:39 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customer Upload Artwork Facility

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

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

28 Oct 2006, 12:38 AM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

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.

Potent Products

28 Oct 2006, 12:49 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customer Upload Artwork Facility

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

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

28 Oct 2006, 1:14 AM
#10
gxwarr avatar

gxwarr

New Zenner

Join Date:
Oct 2006
Posts:
21
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

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.

1 Nov 2006, 11:56 PM
#11
fawzi avatar

fawzi

New Zenner

Join Date:
Apr 2006
Location:
france
Posts:
11
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

Hi,

I noticed two possible limitations of the file attribute.

  1. One can add a product in the basket, even if the form file field is empty
  2. The file is not deleted when the product is deleted from basket

Thanks

2 Nov 2006, 12:17 AM
#12
fawzi avatar

fawzi

New Zenner

Join Date:
Apr 2006
Location:
france
Posts:
11
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

fawzi:

Hi,

I noticed two possible limitations of the file attribute.

  1. One can add a product in the basket, even if the form file field is empty
  2. The file is not deleted when the product is deleted from basket

Thanks
ps: I use zen-cart 1.3.5

2 Nov 2006, 3:05 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customer Upload Artwork Facility

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

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

17 Nov 2006, 2:13 AM
#14
fawzi avatar

fawzi

New Zenner

Join Date:
Apr 2006
Location:
france
Posts:
11
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

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

18 Oct 2007, 11:31 AM
#15
sleastack avatar

sleastack

New Zenner

Join Date:
Oct 2006
Posts:
18
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

Thank you for this, and all the rest. You saved me a lot of time.

26 Oct 2007, 5:03 PM
#16
cbrknight avatar

cbrknight

New Zenner

Join Date:
Mar 2007
Posts:
20
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

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

27 Oct 2007, 5:33 AM
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customer Upload Artwork Facility

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

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

15 Nov 2007, 2:44 PM
#18
jaxbakers avatar

jaxbakers

New Zenner

Join Date:
Mar 2006
Location:
Jacksonville Fl
Posts:
73
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

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

16 Nov 2007, 3:23 PM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customer Upload Artwork Facility

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

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

16 Nov 2007, 4:34 PM
#20
jaxbakers avatar

jaxbakers

New Zenner

Join Date:
Mar 2006
Location:
Jacksonville Fl
Posts:
73
Plugin Contributions:
0

Re: Customer Upload Artwork Facility

Ajeh, Thank you for your insight!

Can you tell me which database table this information is stored on?