Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • oboect Friend
    #184514

    Hi all,

    I need to have a login module for people to log in and create their own account. The module is present but when you click on the “Create an account” does not link to the Virtuemart form. Instead, goes to the Joomla standard one. That means that they don’t fill up their addresses straight away and creates some issues at the checkout. So, is there anyway to do that?

    In the picture below you see the link on the right hand side and if you look to the top right of the image you see “My account” which actually what I am aiming for.

    The website is already online at: http://www.t-reeds.com

    Thank you very much.

    Borja


    1. by-default-2013-01-30-at-12.52.26
    Phill Moderator
    #481713

    You can use the virtuemart login module instead of the standard Joomla one. If you go to your module manager you should be able to create a new VM login module if it is installed. If not you can download the module from the virtuemart site.

    oboect Friend
    #481718

    Hello Phill,

    I have not found that particular module on the Virtuemart website. Can you post here the link?

    Thanks

    Borja

    Phill Moderator
    #481721

    Seems I was wrong, it is no longer included in the VM2 package. I will need to do some research and get back to you.

    oboect Friend
    #481733

    No worries, will wait for your wise advice.

    Just to try to help this is the link that I want to redirect the “Create an account”:

    index.php?option=com_virtuemart&view=user&layout=edit

    I have changed it at modules/mod_login/tmpl/default.php at line 72

    [PHP]
    72 <li>
    73 <a href=”<?php echo JRoute::_(‘index.php?option=com_virtuemart&view=user&layout=edit’); ?>”>
    74 <?php echo JText::_(‘MOD_LOGIN_REGISTER’); ?></a>
    75 </li>
    [/PHP]

    But just did not change anything. I have got the feeling that the Login module is taking the code from K2. But is not a K2 Login module. I did not find the K2 Login module code to replace the link.

    This is where I got stack.

    Hope this help and thank you for your time.

    Borja

    Phill Moderator
    #481739

    That should work. Have you got any module overrides in the templates html folder?

    Phill Moderator
    #481741

    OOps, just realised we override the mod_login in the JAT3 plugin folder. So you need to copy the mod_login from the JAT3 folder to the templates html folder and carry out your modification there.

    oboect Friend
    #481759

    Hi Phil,

    Ok it did work in the end but I am going to explain sted by step what I did.

    I always followed the same process, I changed this:

    [PHP]
    <li>
    <a href=”<?php echo JRoute::_(‘index.php?option=com_users&view=registration’); ?>”>
    <?php echo JText::_(‘COM_USERS_LOGIN_REGISTER’); ?></a>
    </li>
    [/PHP]

    For this:

    [PHP]
    <li>
    <a href=”<?php echo JRoute::_(‘index.php?option=com_users&view=registration’); ?>”>
    <?php echo JText::_(‘MOD_LOGIN_REGISTER’); ?></a>
    </li>
    [/PHP]

    The first one I changed was at:

    /templates/ja_mixmaz/html/com_users/login/default_login.php

    It did not work. Then I went to:

    /plugins/system/jat3/jat3/base-themes/default/html/com_users/login/default_login.php

    Did not work either. And finally I found:

    /plugins/system/jat3/jat3/base-themes/default/html/mod_login/default.php

    And everything changed for good.

    So I am not sure if the first and second file was needed but so far no problem. In the end I solved everythink.

    Thank you very much.

    Borja

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 2 voices, and was last updated by  oboect 11 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum