Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Downloadable links


Guest

Recommended Posts

In the admin area, when you are setting up downloads for products, it asks for a 'filename'

Should this value be set to the URL that leads to the actual download? Or the name of the file in the /downloads directory?

Link to comment
Share on other sites

the name of the file in the download directory

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Ok, I thought that might be the root of my problems with the download links not displaying.

 

http://www.allturnkey.com/catalog/product_.../products_id/29

 

Is my test product. I have it set to be a downloadable product, with the filename pointed to:

http://www.allturnkey.com/test.zip (which should display a link to test.zip, correct?)

I have also tried using the /downloads directory

http://www.allturnkey.com/catalog/download...%201%20blue.zip

which also does not display a link.

I have the 'checks' payment module set to 'delivered' for testing purposes, so I can actually buy one of my own products and see if the download link will work so when my store goes live I know everything is on the up and up.

How ever, it only shows that I have a download available, not an actual link (it shows the text, the number of days / times I have left to download the product). Anyone know why it might do this? Thx.

Link to comment
Share on other sites

I had a look and the product test is out of stock it needs to be in stock for it to be available, the payment would need to be set in admin for the order before the download link becomes available.

 

Downloads need to be turned on in admin and redirect set true

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Well, I was using the above linked product (which is in stock) to do this.

I thought it might be an order status problem, so I went to my orders section in the admin, but got the following error:

Orders  Order ID: 

Status: All OrdersPendingProcessingDelivered

 

 

 

Customers 

Order Total 

Date Purchased 

Status 

Action 

1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit 0, 20' at line 1

 

select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from orders o left join orders_total ot on (o.orders_id = ot.orders_id), orders_status s where o.orders_status = s.orders_status_id and s.language_id = '1' and ot.class = 'ot_total' order by limit 0, 20 

Maybe this is causing my headaches? Anyone know what this could be about?

Thx again

Link to comment
Share on other sites

ok. I reinstalled osC and that fixed my DB issue that I had above with the orders.

How ever after setting up yet another test product, the download links still aren't showing up.

I have check / money order set to 'delivered' in status, have the download setup in attributes, but after ordering, it shows I have a download but it doesn't link to anything...

Here is the test product:

http://www.allturnkey.com/catalog/product_...?products_id=28

 

Arg so close! Almost have this working lol

Link to comment
Share on other sites

Ok, I've gone through it about a bazillion times and I'm still lost.

I just setup the product attribute to be the file that comes with osC (the unreal.zip) so I'm confident that file names and locations are not the issue here.

Any idea's on what else it could be?? Please?!

Thx!

Link to comment
Share on other sites

Well, I just tried to order it (feel free to delete the test account I made).

 

It went through OK - the download link was there and WAS a link but when I clicked on it, I got:

 

Forbidden

You don't have permission to access /catalog/pub/.wfcbkxkrpeujmjqhdub/unreal.zip on this server.

 

Check the permissions on your pub and download folders. Below is the quote from the wiki docs on downlolading. Make sure you haven't missed anything out.

 

You need to enable this if you are going to allow people to download products at checkout from your store.

 

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.

Link to comment
Share on other sites

I'm on IE 6 as well.

Just another quick question-

My folder CHMOD's are correct. Do the files themselves (the actual zips) need to be CHMOD'd anything special for this all to work? Perhaps that is the problem..

Link to comment
Share on other sites

Well, mine are all 644 - you could try changing it - see if it works.

 

Try putting another file in as the attribute - something simple like a gif or something.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...