Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

attach a file to the product_info.php


Guest

Recommended Posts

Hi, I hope you can help me with this, i need to attach a file to some products, so the customers can download it from the product_info.php page. How can I do it? I don't know how to programme it but I know how to change all the files and run *.sql in the database.

 

I think i have to change product_info, in admin categories.php and the table products in the DB. I hope anyone can help me. Thanks a lot!

 

Hernán

Link to comment
Share on other sites

I'd try inserting the HTML link to the file in the product description.

 

Something like this:

 

<a href="http://yoursite.com/catalog/info.txt">Click to download the info file</a>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I'd try inserting the HTML link to the file in the product description.

 

Something like this:

 

<a href="http://yoursite.com/catalog/info.txt">Click to download the info file</a>

 

The problem is that I want to create a admin section so various persons (editors) can create products, and could do only this (can't go to the ftp server and files admin in OSC). Is all finished expect this :'(

 

I have the extra pics contributions, maybe if I use 1 o the 6 extra pics to upload the file?

Link to comment
Share on other sites

The problem is that I want to create a admin section so various persons (editors) can create products, and could do only this (can't go to the ftp server and files admin in OSC). Is all finished expect this :'(

 

I have the extra pics contributions, maybe if I use 1 o the 6 extra pics to upload the file?

Use this it says pdf but it will work

http://addons.oscommerce.com/info/2807

Follow the community build:

BS3 to osCommerce Responsive from the Get Go!

Check out the new construction:

Admin Gone to Total BS!

Link to comment
Share on other sites

Use this it says pdf but it will work

http://addons.oscommerce.com/info/2807

 

I tried with it but it only works when no image were uploaded. I think is an error of the Ultimate Image Pack contribution.

 

Instead I copy this code to the product_info

<tr><td><a href="http://www.web.com.ar/catalog/images/<?=$product_info['products_image_sm_6']?>">Download FIle

</a></td></tr>

 

and it works! I use one of the 6 extra images upload fields to include any file.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...