Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Using default XCart index.html as a login page..

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-25-2008, 05:30 AM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default 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
__________________
XCart 4.5.4, 4.6.1, 4.64 stores
Many, many mods from Altered Cart
XCart Mods Reboot template
The XCart Store Templates and Mods
WCM CDSEO Pro
BCSE Rewards Points and Gallery Mods
and a few others
Reply With Quote
  #2  
Old 06-25-2008, 05:34 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Using default XCart index.html as a login page..

Why not just password protect the whole directory?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-25-2008, 06:06 AM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default Re: Using default XCart index.html as a login page..

Dolt!

That's why you da man

Blatantly obvious, thanks Balinor.
__________________
XCart 4.5.4, 4.6.1, 4.64 stores
Many, many mods from Altered Cart
XCart Mods Reboot template
The XCart Store Templates and Mods
WCM CDSEO Pro
BCSE Rewards Points and Gallery Mods
and a few others
Reply With Quote
  #4  
Old 06-25-2008, 06:43 AM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default Re: Using default XCart index.html as a login page..

Actually on reflection, I pumped you up too quick .

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
__________________
XCart 4.5.4, 4.6.1, 4.64 stores
Many, many mods from Altered Cart
XCart Mods Reboot template
The XCart Store Templates and Mods
WCM CDSEO Pro
BCSE Rewards Points and Gallery Mods
and a few others
Reply With Quote
  #5  
Old 06-25-2008, 07:36 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 06-25-2008, 01:01 PM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default 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
__________________
XCart 4.5.4, 4.6.1, 4.64 stores
Many, many mods from Altered Cart
XCart Mods Reboot template
The XCart Store Templates and Mods
WCM CDSEO Pro
BCSE Rewards Points and Gallery Mods
and a few others
Reply With Quote
  #7  
Old 06-25-2008, 01:05 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Using default XCart index.html as a login page..

Use this:

{if $login ne ""}

show category, cart and auth boxes

{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:59 AM.

   

 
X-Cart forums © 2001-2020