Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 12/19/2019 :  18:45:08  
I have a manually made menu system.
I have a page that has a high login level.
When you are not logged in, and click on the page, and the error happens can I get it to go another page, based on the error instead of going straight to the login page?

QUESTION 1
Is there a way that when a high login page is clicked on and the error happens, that it can reroute to a certain page instead?

QUESTION 2
When I'm on the clientlogin page, there are two buttons showing to login and create account. When I click on those a POPUP happens... can I eliminate the POPUP thing?

Terry (Redsei)

Vince
Administrator

42874 Posts

Posted - 12/19/2019 :  23:59:34  
Hi Terry
quote:
and the error happens can I get it to go another page
What kind of error do you mean, Terry? Is this for instance a "login / password" not found or do you mean a server error?
For question 2, do you want to replace the popup with a page where you log in? If so I don't think that is really possible without rewriting the login system. Years ago there was a login page but we changed to the popup so users stay on the same page and can access the login from anywhere.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 12/20/2019 :  05:52:15  
Yes for question 1, if they selected a MANUALLY made link to a page that required a higher login, the error for that would jump to another page rather than the login page.

In the end, basically what I am trying to do is when a normal joe comes on to the site, they see menus. When a customer comes in and log in to the site, they see added menus specifically for them.

Is there a way to do this?

Terry (Redsei)

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 12/20/2019 :  07:37:39  
quote:
In the end, basically what I am trying to do is when a normal joe comes on to the site, they see menus. When a customer comes in and log in to the site, they see added menus specifically for them.


So you want to hide the menu items unless they're logged in? Is that what you're wanting? If so can you put the site url in your profile so I can take a look at your menu please.



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 12/20/2019 :  08:11:21  
Updated the profile....

the menu is manually made....

menu (portfolio) and link is schoolbook layouts.....

Terry (Redsei)

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 12/20/2019 :  10:38:41  
Hi Terry,
Thank you,
So which part of the menu do you wish to hide unless the client is logged in?



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 12/20/2019 :  10:42:15  
preferably a menu item... under portfolio menu, the link schoolbooks

if that can't be done.... then maybe just the whole portfolio menu

Terry (Redsei)

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 12/21/2019 :  02:08:48  
Hi Terry,
Something like this should do it for you.

<li class="dropdown">
<a href="#">Portfolio<span class="badge badge-warning">UPDATED</span></a>
<ul class="dropdown-menu">
<li><a href="portfolio-sports-tickets.php">Sports Tickets</a></li>
<?php if(@$_SESSION['clientID']!='' ){ ?>
<li><a href="portfolio-schoolbook-layouts.php">Schoolbook Layouts</a></li>
<?php }else{ ?>

<?php } ?>

<li><a href="portfolio-schoolbook-covers.php">Schoolbook Covers</a></li>
<li><a href="portfolio-websites.php">Websites</a></li>
<li><a href="portfolio-postcards.php">Postcards</a></li>
<li><a href="portfolio-magazines.php">Magazines</a></li>
<li><a href="portfolio-catalogs.php">Catalogs</a></li>
<li><a href="portfolio-web-banner.php">Website Banners</a></li>
<li><a href="portfolio-poster.php">Posters<span class="badge badge-warning">UPDATED</span></a></li>
<li><a href="portfolio-t-shirts.php">T-Shirts</a></li>
<li><a href="portfolio-forms.php">Forms</a></li>
<li><a href="portfolio-ads.php">Ads</a></li>
<li><a href="portfolio-logos.php">Logos</a></li>
</ul></li>



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Terry Paulhus
Ecommerce Template Expert

Canada
573 Posts

Posted - 12/21/2019 :  08:29:50  
Ok, so I put that in.... do I need to add anything above the head of the page to have this work... currently anyone coming on the site still sees the menu item.

Here's what I have (maybe I missed something?)

1. Added in the INCLUDES.php "$defaultcustomerloginlevel=0;"

2. Added in the page
<?php

quote:
session_cache_limiter('none');

session_start();

ob_start();
$requiredloginlevel=4;
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/metainfo.php";?>


3. I have the menu running within a Content Region

Terry (Redsei)

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 12/22/2019 :  01:16:50  
quote:
3. I have the menu running within a Content Region


That's your problem, PHP code will not be read/parsed when in a content region.




* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 12/22/2019 :  05:31:19  
Surely the Dynamic CSS Menu for Ecommerce Templates solves this problem without any need for custom PHP code and is clearly the better way to go?

Gary

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 12/22/2019 :  05:44:39  
Hi Gary,
I think the problem is the css drop down menu is not responsive. However I did manage to load the css accordion into this menu here - https://www.fashiondex.com/store/



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 12/22/2019 05:55:16

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 12/22/2019 :  06:10:49  
Yes Phil, any CSS accordion type menu like that can be integrated into an ECT website template. Personally I use mmenu.js which works great on mobile touchscreen devices.

A manually coded menu is just too hard if login levels are used.

Gary

Edited by - ITZAP on 12/22/2019 06:14:26
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000