Downloadable File Problems...

  • Posts: 3
  • Thank you received: 0
12 years 8 months ago #48933

Hi,

I am setting up a Hikashop (first time with Hikashop but have setup many, many virtuemart shops). With this project, there are many downloadable files associated with each product. I became frustrated very quickly uploading each file for each product and each of the variants. Also, the files are very large and the same exact files are used for 80% of the products, so I used an ftp program to upload all of the files to the "/media/com_hikashop/images/upload/safe/" directory and then entered the URL in the "Filename" field (for example: /media/com_hikashop/images/upload/safe/dir_name/file_name.zip).

I did a test, received the email with the links, but when such links are clicked on, I receive a "file not found" error. Am I using the incorrect URL?

Also, is there anyway the customer will be able to see a list of files they purchased when they log into their account? I was under the impression their file purchases would be in their account area. I really do not like the email link as the only way they will have access to their file purchases. I see the user can see their orders, but I do not see where they can access their purchased files.

Any help would be very much appreciated!

Last edit: 12 years 8 months ago by mrslazur3.

Please Log in or Create an account to join the conversation.

  • Posts: 83124
  • Thank you received: 13420
  • MODERATOR
12 years 8 months ago #48988

Hi,

1. If you set files in a product, the variants automatically inherit from the files unless you upload something in the files area of the variant. You don't need to upload the files for each variants of they all are the same for one product.
In the Business edition, there is a copy button on the products listing allowing you to duplicate a product. That will allow you to easily create products with similar information.
Finally, you can upload the files in the folder /media/com_hikashop/images/upload/safe and then use the Products->Import screen to link the products with the files with a small CSV like that:
product_code,files
my_prod1,myfile.zip
my_prod2,myfile2.zip
...etc...

2. The users have two ways to access their files:
a. in the email they receive, they get a direct link to each file.
b. In their order details page (when they are on their orders listing, they can click on an order to see the order details page), they will find the same direct link to each file.

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
12 years 8 months ago #49001

Thank you so much for your reply. I have the Enterprise Edition and am making use of the copy button. But, my problem is that the links sent in the email are not working. I receive the dreaded "File not found" error page. Is this because I have just used the URL of the files instead of uploading them individually via the interface--I just entered the URL of the files. Do I need the domain name in front of the "/media/com_hikashop/images/upload/safe/xxx"?

Would it help at all to give you access to the site?

Please Log in or Create an account to join the conversation.

  • Posts: 83124
  • Thank you received: 13420
  • MODERATOR
12 years 8 months ago #49089

The folder /media/com_hikashop/upload/safe is restricted by a .htaccess file so that it's not possible to link directly to the files which are uploaded there.
The links generated by HikaShop automatically do not link directly to the files. Instead, they call HikaShop which check that the user has bought the product before reading the file itself and sending it automatically.
That prevents that someone posts the link on the internet and that everyone else can then access your files.

If you don't want that, you can of course remove the .htaccess file in that folder and link directly to the files. But then, if you give the complete link, you can upload them anywhere on your website, not just in that folder.

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
12 years 8 months ago #49112

Oh dear, I see. Looks like I am starting over! :(

Thanks so much for your help. You are a busy person!

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum