Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

download page set up


omps

Recommended Posts

this is what i have done and i still cant get zip files to download

 

Admin Download Products Setup

 

 

First, put the product to be downloaded in the download folder on the Internet:

catalog/download

 

It will be read from the "pub" folder.

Make sure /catalog/pub is 777 and /catalog/download is 755 and these files in catalog/includes/configure.php have the forward slash:

 

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

Under configuration in the admin set up the download info, true, true, expiry date, max number of downloads.

 

Add the product in the admin under "catalog", "categories/products.

 

After you have added the product go to "Product Attributes" under the "Catalog" heading in admin.

 

Choose the product in the bottom "Product Attributes" box.

 

When you choose a product and have download enabled in the configuration section you will see a box below the "Product Attributes" section where you can add the product as a download.

 

can any one help please please and can you goto my site so you can see what i mean http://www.omps.co.uk

 

many thanks

live long and prosper

Link to comment
Share on other sites

What version is this? I think with versions after around january 16th or so it automatically doesn't charge shipping for downloadable products.

 

Also, when you say it's not working, what exactly is the error?

Link to comment
Share on other sites

It's hard to help you without information. You already said it doesn't download in your first post, so when I asked you what exactly the error is, that means I want more information. Does it give you a drop down menu with "Download" as a choice? Does the download link show? Is it a hyperlink? What happens when you click on it? Is there an error message?

 

Also, you need to set up a test account so I can try it out with having an account with Multicards.

 

Also, I need to know what version of osCommerce this is. Is it a snapshot, and if it is what's the date on it, or is it MS1?

Link to comment
Share on other sites

I am using milestone 2.2 and have a test product setup. It has an attribute of "download" using the test file "unreal.zip" that comes with osc.

 

When you purchase the test product under "Search Engines" it simply goes past the final purchase confirmation screen and back to the menu as if you were making a regular purchase. The email you receive does not mention a download product nor does it go to a download page.

 

I'm stumped.

steve

Link to comment
Share on other sites

I meant to say more...

The product does not seem to have any knowledge that it is a downloadable product all through the catalog and purchase process. It would seem an automatic message would appear on the product page just as one appears when you add a separate page for a product.

Link to comment
Share on other sites

No, the download.php file you found is supposed to be empty. I don't know why, but it is.

 

When you make the selection and go to the Payment Information, and fill it out, can you go to the Order Conformation Page? And when you press the Confirm Order button on the bottom of the page, do you go to a page that says, "Your Order Has Been Processed"?

Link to comment
Share on other sites

When you make the selection and go to the Payment Information, and fill it out, can you go to the Order Conformation Page?

<yes>

 

And when you press the Confirm Order button on the bottom of the page, do you go to a page that says, "Your Order Has Been Processed"?

<yes>

 

I have download turned "On" in admin and also "Download by redir to" has been tried in both on and off.

Link to comment
Share on other sites

i have download enabled but there does not seem to be a download button surley you should not have to go through the payment section i should just have the ablity to download straight away

live long and prosper

Link to comment
Share on other sites

Could you edit your configure.php files and change the $DOCUMENT_ROOT to your real path?

 

If your Admin works, go into Tools ... Server Info ... search for DOCUMENT_ROOT without the $ and that is your path for the define statement.

Link to comment
Share on other sites

Linda, could you please elaborate on why we are looking for the DOCUMENT_ROOT statement?

 

My configure.php define the document's root as follows:

 

define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/creeknet');

define('DIR_FS_CATALOG', '/var/www/html/creeknet/shop/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

But, what are the 2 lines referencing "DOWNLOAD_PUBLIC"

 

We are getting some good help. I would like to know if anybody who is helping has this feature running. Evidently it has problems that can not be resolved using the user interface.

 

thanks,

steve

Link to comment
Share on other sites

Let me just add that my installation of osc is my fourth and all are working fine. It is just the download feature that I am trying to use for the first time that doesn't appear to work.

 

Could somebody describe to me what the user is supposed to see when they purchase a downloadable product? At what point do they download? What php module runs the download?

steve

Link to comment
Share on other sites

I have confirmed all the php code is working except for one thing.

The orders_products_download database is not getting a record placed in it when youy purchase a download product.

 

Does anyone know which checkout module writes the databases?

Link to comment
Share on other sites

When all is said and done here is the solution. It is not so obivious but very simple. My mistake was assuming you only needed a filename in the product attributes setup. I did not have a Option Name or Value.

 

You must add a Option Name and Option Value. They can say anything although I named my option "Download" and value "Zip".

 

The thing that triggers the download is having a file name in the Filename box.

 

Thanks for all the help, especially the private messages.

steve

Occam's Razor strikes again.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...