Hey everyone,
Is it possible to make an EZ-Page that is only accessible if you're logged in?
Thanks in advance...
Hey everyone,
Is it possible to make an EZ-Page that is only accessible if you're logged in?
Thanks in advance...
You would have to re-write the code for this but yes ... this is Zen Cart and anything can be customized to suit ...
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!]
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!
Thanks Ajeh. I'm assuming it has to be some kind of 'if the customer is registered' then show this page. and if not, then show this page.
does that sound right?
if so, i'm wondering what the registered statement would look like. I could probably figure out the rest...
If i'm in the wrong ballpark... ha. wouldn't be surprised.
Thanks again for your help.
You can use:
This assures it is set and a real value ...PHP Code:if (isset($_SESSION['customer_id']) && (int)$_SESSION['customer_id'] > 0) {
// blah blah
}
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!]
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!
Thanks Ajeh,
That should more than get me started... I will post the code if I get it all worked out right.
Have a great night.
Okay, so I got it. My plans had reversed a bit.
Here is the link to take the customer to the contest page if they are logged in, and an ez-page if they are not.
Thanks again, Linda.Code:<?php if (isset($_SESSION['customer_id']) && (int)$_SESSION['customer_id'] > 0) { ?> <li><a href="<?php echo zen_href_link(FILENAME_MEMBERSHIP_CONTEST, '', 'NONSSL'); ?>"><?php echo ESSAY_CONTEST; ?></a></li> <?php } else {?> <li><a href="<?php echo zen_ez_pages_link(14, '0', false); ?>"><?php echo ESSAY_CONTEST; ?></a></li> <?php } ?>
Hope this helps someone else out in the future...