GK_REGISTRE CHANGE TO LINK

Change your online store into modern look with myStore eCommerce VirtueMart Joomla template - discussion forum.
GK User
Sat Oct 16, 2010 8:08 am
HI,

NOW MOUSE READON OVER REGISTER, OPEN A RED BOX WITH FIELDS OF JOOMLA RESGITER...

I WANT TO CHANGE TO A SIMPLE LINK : OF REGISTRATION OF VIRTUEMART.

: index.php?option=com_virtuemart&page=shop.registration

** HOW I CAN TO DO?

TO REGARDS

MARCIA
User avatar
Senior Boarder

GK User
Sat Oct 16, 2010 9:19 am
Hey, as you can see on my testsite (www.alpha.trilogna.de) I did it this way:
I still open the popup but instead of the register form I show two buttons. One is a link (this is needed for you) to the registration form of jomsocial. The other button is the facebook connect, which is a second modul which is published on this modulposition.

If you want to have a button with a custom link in the popup just open mod_gk_register.phpin modulesmod_gk_register. Copy it to the template override folder or just make a backup of the file and change the mod_gk_register.php in this folder.

Replace all the code with:

Code: Select all
<?php

    // no direct access
    defined('_JEXEC') or die('Restricted access');

    $url = JURI::getInstance();   
    $user = JFactory::getUser();
    $userID = $user->get('id');

?>

<?php if(((!isset($_GET['view']) || !isset($_GET['option'])) || ((isset($_GET['view']) && $_GET['view'] != 'register') || (isset($_GET['option']) && $_GET['option'] != 'com_user'))) && $userID == 0) : ?>   

        <center><strong>TEXT WHICH WILL APPEAR OVER THE BUTTON</strong></center>
       
        <hr />
       
        <center>
          <form>
            <input type=button onClick="window.location.href='index.php?option=com_virtuemart&page=shop.registration'" value="Register">
        </form>
        </center>
       

       
<?php else : ?>   
<center><strong>
    TEXT YOU LIKE AS MESSAGE IF USER IS ALREADY ON REGISTER SITE
</strong></center>
<?php endif; ?>       


Has someone an idea how I can not just look if the user is on the joomla register site but also on the jomsocial or in your case virtuemart register form, so that also the message will appear?
User avatar
Senior Boarder

GK User
Sat Oct 16, 2010 3:41 pm
Hey, Dear RaceMaker

Thank you so much for help! So quick !!!

You are a genius!

Thank You so much
User avatar
Senior Boarder


cron