Forums / Setting Up Categories, Products, Attributes / How to change download file name

How to change download file name

Locked

Started by carlitog on 9 Mar 2007, 7:07 PM · Views: 1,272

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
9 Mar 2007, 7:07 PM
#1
carlitog avatar

carlitog

New Zenner

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

How to change download file name

Hi there, I have setup a downloadable product and this works great.

However what I want to do is have a generic product (one product) which people add to their cart and enter customised information in the fields I have setup for the product.

When I receive the order I will then create the customised file and make it available for download to that customer.

How can I set the name of the file on a per order basis as opposed to per product/product attribute?

I seem to be able to do it by updating the field orders_products_filename in table orders_products_download to the name of the file for that customer directly in the database.

Is there a better way of doing this or if not, any issues updating this field directly?

Thanks in advance for your help. :smile:

13 Mar 2007, 10:06 PM
#2
carlitog avatar

carlitog

New Zenner

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

Re: How to change download file name

Anyone out there with any ideas/suggestions?

Cheers

14 Mar 2007, 12:37 AM
#3
ajeh avatar

ajeh

Oba-san

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

Re: How to change download file name

This is not built into Zen Cart ...

You would need to edit the database usually with phpMyAdmin to avoid mistakes:
orders_products_download

For each order and change the:
orders_products_filename

NOTE: this could be coded to allow you to make this change on the Order in the Admin but it would require some custom work to be 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!

14 Mar 2007, 7:19 PM
#4
carlitog avatar

carlitog

New Zenner

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

Re: How to change download file name

Hi there many thanks for that.

I think I'll stick with updating the table manually for now, but see if i can customise it to add it to the orders page in the admin view.

Thanks again.