![]() |
Using default XCart index.html as a login page..
Does anybody know if I could use the default XCart index.html page and turn it into a login page?
I have a client who wants to use an XCart licence on a subdomain for internal orders of products by their sales reps. So it's not a general for anyone to see type online shopping site, therefore the "splash page" issue is of no concern. They just wanted to prevent the casual browser from looking at their products if they happened to stumble across it. So by having " please enter username & password" might just do the trick. Once the reps login they see the standard home.php page. Thanks |
Re: Using default XCart index.html as a login page..
Why not just password protect the whole directory?
|
Re: Using default XCart index.html as a login page..
Dolt!
That's why you da man :lol: Blatantly obvious, thanks Balinor. |
Re: Using default XCart index.html as a login page..
Actually on reflection, I pumped you up too quick :D.
Password protecting the whole directory means each rep then has to "login" again to access the cart. Each rep has their own membership details for shipping etc that's why I thought the index.html login page may have been the answer. Back to the original question perhaps? Thanks |
Re: Using default XCart index.html as a login page..
Then just set all of the categories/products to be available only to a certain membership level and assign all of the reps to that level. Put a login form in welcome.tpl - they won't be able to see anything until they log in.
|
Re: Using default XCart index.html as a login page..
Thanks Balinor,
I did as you suggested and it's not too bad. It leaves a blank Category box, Your Cart Box and Authentication. I probably need a couple of if /then /else statements to hide everything bar the Authentication until they login. Never done those type of edits before, so I'll have a play around. If I get stuck would you be able to punt me in the right direction? Thanks |
Re: Using default XCart index.html as a login page..
Use this:
{if $login ne ""} show category, cart and auth boxes {/if} |
All times are GMT -8. The time now is 12:19 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.