Post by cashfile » Mon Apr 11, 2011 4:45 am

??? Please , help me to make easy registration process (without account , only guest registration) or give me link on post for this theme , I tried solve this problem himself.

Thanks.

Newbie

Posts

Joined
Fri Jan 22, 2010 6:39 am

Post by Avvici » Mon Apr 11, 2011 11:45 am

You say that you want to offer Guest Registration only?
First, make sure to go to your System settings in admin, then OPTIONS, and choose allow guest checkout O0 :)

Secondly,
Find the file catalog/view/theme/default/template/account/login.tpl

Locate this exact line of code:

Code: Select all

<form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="account">
            <p><?php echo $text_checkout; ?></p>
            <label for="register" style="cursor: pointer;">
              <?php if ($account == 'register') { ?>
              <input type="radio" name="account" value="register" id="register" checked="checked" />
              <?php } else { ?>
              <input type="radio" name="account" value="register" id="register" />
              <?php } ?>
              <b><?php echo $text_register; ?></b></label>
            <br />
            <?php if ($guest_checkout) { ?>
            <label for="guest" style="cursor: pointer;">
              <?php if ($account == 'guest') { ?>
              <input type="radio" name="account" value="guest" id="guest" checked="checked" />
              <?php } else { ?>
              <input type="radio" name="account" value="guest" id="guest" />
              <?php } ?>
              <b><?php echo $text_guest; ?></b></label>
            <br />
            <?php } ?>
            <br />
            <p><?php echo $text_create_account; ?></p>
            <div style="text-align: right;"><a onclick="$('#account').submit();" class="button"><span><?php echo $button_continue; ?></span></a></div>
          </form>
        </div>
      </div>
      <div style="float: right; display: inline-block; width: 49%;"><b style="margin-bottom: 2px; display: block;"><?php echo $text_returning_customer; ?></b>
        <div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; min-height: 210px;">
          <form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="login">
            <?php echo $text_i_am_returning_customer; ?><br />
            <br />
            <b><?php echo $entry_email; ?></b><br />
            <input type="text" name="email" />
            <br />
            <br />
            <b><?php echo $entry_password; ?></b><br />
            <input type="password" name="password" />
            <br />
            <a href="<?php echo str_replace('&', '&', $forgotten); ?>"><?php echo $text_forgotten_password; ?></a><br />
            <div style="text-align: right;"><a onclick="$('#login').submit();" class="button"><span><?php echo $button_login; ?></span></a></div>
            <?php if ($redirect) { ?>
            <input type="hidden" name="redirect" value="<?php echo str_replace('&', '&', $redirect); ?>" />
            <?php } ?>
          </form>

Replace it with this:

Code: Select all

 <form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="account">
            <p><?php echo $text_checkout; ?></p>
           
          
            <?php if ($guest_checkout) { ?>
            <label for="guest" style="cursor: pointer;">
              <?php if ($account == 'guest') { ?>
              <input type="radio" name="account" value="guest" id="guest" checked="checked" />
              <?php } else { ?>
              <input type="radio" name="account" value="guest" id="guest" />
              <?php } ?>
              <b><?php echo $text_guest; ?></b></label>
            <br />
            <?php } ?>
            <br />
            <p><?php echo $text_create_account; ?></p>
            <div style="text-align: right;"><a onclick="$('#account').submit();" class="button"><span><?php echo $button_continue; ?></span></a></div>
          </form>
        </div>
      </div>
NOTE: This line <p><?php echo $text_create_account; ?></p> Displays the text that says "By creating an account you will be able to shop faster, be up to date on an order's status, and keep track of the orders you have previously made."
If you want to replace it with something else go to the following language file: catalog/language/english/account/login.php. Else, just delete the entire line: <p><?php echo $text_create_account; ?></p>


This will fix your problem in only listing Guest checkout

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Newbie

Posts

Joined
Tue Mar 22, 2011 3:08 am

Post by Avvici » Mon Apr 11, 2011 2:17 pm

Or do it that way. There's more than one way to get there. O0

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by cashfile » Tue Apr 12, 2011 4:29 am

Thanks for help! :)

But i have new problem .if cart empty ,registration is impossible.
I need that have possibility do registration process without add any product in cart.
Where is do this verification ?

How solve this problem ?


P.S. sorry for my english , i'ts not good.

Newbie

Posts

Joined
Fri Jan 22, 2010 6:39 am

Post by Avvici » Tue Apr 12, 2011 6:33 am

Then you are contradicting yourself. And, why do you want to only allow guest checkout "which doesn't require registration" but allow people to register?

It seems counter intuitive, and contradictory.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by cashfile » Wed Apr 13, 2011 1:38 am

Ok , i try explain ....i want to do site-catalog without any sales. So , standart registration to be remake (change) for partner program registration. But i have problem , when click "reg button" - open page "Cart is empty" . Where is that file , in which to do this verification (check) presence product (goods) ????

I hope my english understand for you. ;)

This is my site about i say: www.фредерикм.рф (russian site)

Dictionary for help:

registration button on site - РЕГИСТРАЦИЯ
Cart - КОРЗИНА
Last edited by cashfile on Wed Apr 13, 2011 1:48 am, edited 3 times in total.

Newbie

Posts

Joined
Fri Jan 22, 2010 6:39 am

Post by Avvici » Wed Apr 13, 2011 2:28 am

Comez, thats all you..... ;D I respectfully bow out.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC
Who is online

Users browsing this forum: Baidu [Spider] and 12 guests