- Posts: 2
- Thank you received: 0
Downloads only to registered users
15 years 4 months ago #16201
by xclanet
Downloads only to registered users was created by xclanet
Hi all.
I was searching the forum about this and the only topic i found that almost do what i want is this: www.hikashop.com/en/support/forum/4-how-...nload-free-pdfs.html
I have configured hikashop to be only a product catalogue, on each product i have a description, some images and a 2 PDF files:
- Product presentation.
- Product manual.
I have 2 types of users:
- Registered users.
- Advanced users.
I want the Product presentation will be available for download to both of users. And the other (Product manual) will be available only to Advanced users.
Unregistered users doesn't have access to these files.
How can i accomplish this?
I was searching the forum about this and the only topic i found that almost do what i want is this: www.hikashop.com/en/support/forum/4-how-...nload-free-pdfs.html
I have configured hikashop to be only a product catalogue, on each product i have a description, some images and a 2 PDF files:
- Product presentation.
- Product manual.
I have 2 types of users:
- Registered users.
- Advanced users.
I want the Product presentation will be available for download to both of users. And the other (Product manual) will be available only to Advanced users.
Unregistered users doesn't have access to these files.
How can i accomplish this?
Please Log in or Create an account to join the conversation.
15 years 4 months ago #16207
by nicolas
Replied by nicolas on topic Re: Downloads only to registered users
There is no access rights support on the product files for now in HikaShop.
If you want to do that, you will have to edit the file show of the view order via the menu Display->Views and change the code there in order to add the access rights support, but that require some advanced PHP skills.
If you want to do that, you will have to edit the file show of the view order via the menu Display->Views and change the code there in order to add the access rights support, but that require some advanced PHP skills.
Please Log in or Create an account to join the conversation.
15 years 4 months ago #16213
by xclanet
Replied by xclanet on topic Re: Downloads only to registered users
I can do it.
Just need to know where is the file that i need to edit.
Correct me if i am wrong: I just need to edit the product visualization and add a case statement to check the user level and show the files accordingly, or... i need to edit more files?
I think this can be a good sugestion to implement when the system is in catalog mode.
Just need to know where is the file that i need to edit.
Correct me if i am wrong: I just need to edit the product visualization and add a case statement to check the user level and show the files accordingly, or... i need to edit more files?
I think this can be a good sugestion to implement when the system is in catalog mode.
Please Log in or Create an account to join the conversation.
15 years 4 months ago #16217
by nicolas
Replied by nicolas on topic Re: Downloads only to registered users
Oh ok. You want to allow the users to download the products files directly on the product page and not via an order on the checkout.
In that case you need to edit the file "show" of the view "product" via the menu Display->Views. There, you will have to first do a query and load the files of the product. And then, you will have to check the access level of the user before displaying the link to the file.
In that case you need to edit the file "show" of the view "product" via the menu Display->Views. There, you will have to first do a query and load the files of the product. And then, you will have to check the access level of the user before displaying the link to the file.
Please Log in or Create an account to join the conversation.
Time to create page: 0.225 seconds