Zen Cart Logo
Forums / General Questions / Downloads - Logged in only

Downloads - Logged in only

Locked

Views: 592

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
16 Nov 2010, 11:39 PM
#1
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Downloads - Logged in only

I've almost finished setting up my Zen-Cart site, quite happy with how it's coming along :) Although I am using the default template... many changes have been made to it so I'm not really able to change to something different...

Anyways, I have a product catalogue that I'm needing to make available to all customers, but only available once they've logged in. This contains all our wholesale pricing, so I'm needing it to be secure (unable to be downloaded from just typing in the URL).

How can I set it up (and place it somewhere in the Zen-Cart installation) so that this PDF can only be downloaded by someone who is currently logged in to the website, and unable to be downloaded by just typing in the direct URL?

(I'm assuming a PHP URL mask of some sort but could be wrong here?) :wacko:

17 Nov 2010, 4:49 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Downloads - Logged in only

I've almost finished setting up my Zen-Cart site, quite happy with how it's coming along :) Although I am using the default template... many changes have been made to it so I'm not really able to change to something different...
Just a matter of copying the contents of any classic folder you have edited files in to another named for your template and editing the template_info.php file to reflect this name
https://www.zen-cart.com/tutorials/index.php?article=142
I have a product catalogue that I'm needing to make available to all customers, but only available once they've logged in. This contains all our wholesale pricing, so I'm needing it to be secure (unable to be downloaded from just typing in the URL).
Stick the catalog download html code in a side box - - the 3rd party "blank sidebox" might fit your need and maybe an image of the catalog??
Then follow the tutorial
https://www.zen-cart.com/tutorials/index.php?article=279

18 Nov 2010, 5:51 AM
#3
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Re: Downloads - Logged in only

Thanks :) I've installed that, seems like it would work quite well. Just one quick question tho - how do I set it so it can only be viewed by someone who is currently logged in? At the moment I'm not logged in but I'm seeing it in the sidebar.

19 Nov 2010, 1:17 AM
#4
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Re: Downloads - Logged in only

bahahahaha... sorry man, forgot to read the tutorial link... it's been a crazy few days...