Change sign in and become member at top to VM instead

GK User
Mon Nov 19, 2012 1:22 pm
Hi
A bit of a silly question I guess!
I'm battling to find where the links (or module) at the top right (next to search) are. I would essentially like to change the links to point to the Virtumart login and register forms, so that users don't need to fill in info again if they use the shop.
Thanks in advance for your help ;)
User avatar
Fresh Boarder

GK User
Mon Nov 19, 2012 3:33 pm
Hi

Try doing this:

Open the following file ../templates/gk_boutique/layouts/blocks/logo.php

replace this fragment:

Code: Select all
<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
   <div id="gkButtons">
      <div>
         <?php if(GK_LOGIN) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=login" id="btnLogin"><span><?php echo $btn_login_text; ?></span></a>
         <?php endif; ?>
         
         <?php if(GK_REGISTER) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=registration" id="btnRegister"><span><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></span></a>
         <?php endif; ?>
      </div>
   </div>
   <?php endif; ?>


with this one

Code: Select all
<?php if((GK_LOGIN) && !GK_COM_USERS) : ?>
   <div id="gkButtons">
      <div>
         <?php if(GK_LOGIN) : ?>
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=login" id="btnLogin"><span><?php echo $btn_login_text; ?></span></a>
         <?php endif; ?>
         
         <a href="<?php echo $this->URLbase(); ?>index.php?option=com_virtuemart&view=user&layout=edit"><span><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></span></a>
      </div>
   </div>
   <?php endif; ?>


This way the "Sign in" will open the mod_login module on popup window and the "Register" will open the VM registration page.

Cheers
User avatar
Platinum Boarder

GK User
Mon Nov 19, 2012 10:29 pm
You're a gem! Thank you kindly sir, I'll give this a try.
User avatar
Fresh Boarder

GK User
Thu Mar 07, 2013 9:34 am
Hi
I finally got around to changing that code. The only problem I have now is that the register / cancel buttons appear at the top of the form instead of at the end / bottom of the form.
Any idea where I can fix this?
Many thanks.
User avatar
Fresh Boarder


cron