View Single Post
  #1  
Old 01-14-2011, 08:14 AM
 
ccsventura ccsventura is offline
 

Newbie
  
Join Date: Jan 2011
Posts: 2
 

Default Login to view store

Hello,

I am attempting to use xcart to handle transactions for my wholesale customers. I have a link to the store from my main consumer site. Her is what I would like to do:

When someone clicks on the STORE link from the main site, I want to show a page that asks the user to login or register before seeing the store. Once they are logged in, the store becomes available.

I tried wrapping the entire home.tpl with the following:

{if $login ne ""}

ALL CODE FROM MAIN.TPL

{else}
<div align="center"><br /><br /><br />You must be logged in to your wholesale account to access the store. <br /><br />Dont have an account? Register Here<br /><br />{include file="customer/main/login_form.tpl"}</div>


This almost does the job. I get the challenge page and the login works, but if a user clicks on register or reset password, nothing happens.

Thanks for your help!

Garry
__________________
4.2
Quick Order
Reply With Quote