I'm looking to require login on certain define pages - I have the "about us" contribution installed (and cloned for 4 other pages).. and need one of them to be logged into to view. How would I go about doing this?
I'm looking to require login on certain define pages - I have the "about us" contribution installed (and cloned for 4 other pages).. and need one of them to be logged into to view. How would I go about doing this?
Look in the files of pages that already do this, such as account;
/includes/modules/pages/account/header_php.php
This code requires the customer be logged in or taken to login then returned after to where the customer was headed ...PHP Code:
if (!$_SESSION['customer_id']) {
$_SESSION['navigation']->set_snapshot();
zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
}
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Thank you for the help! Works like a charm :)
Thanks for the update that this was able to work the way you needed it to ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
http://www.zen-cart.com/forum/showth...t=pages+logged
everything explained for restricting ez pages to registered users only. did it and works too
Bookmarks