| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Help with securing private storefront. | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'm working on customizing x-cart for our B2B site and part of that is disabling customer registration and securing the storefront so that no one can see it without an account created by us. Right now I'm trying to create a login page with something similar to authbox.tpl but I'm not really familiar enough with auth.php and the x-cart functions yet. If anyone could point me in the right general direction it would be much appreciated.
__________________
X-Cart Version 4.1.9 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Open auth.php
At the bottom, before ?> add: Code:
This will prevent the user from accessing the cart without being logged in. Open your .htaccess file and set the DirectoryIndex to index.php: Code:
Create an index.php and input a login form page, something like: Code:
I would also customize this page and your include/login.php to send them back to this index.php with an error message when a login is incorrect, etc., but this should get you going in the right direction. |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks a bundle Jon, that set me in the right direction and saved me a good deal of work.
__________________
X-Cart Version 4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|