Topic-icon Replacing VirtueMart login module by SCLogin in Component

Active Subscriptions:

None
Hi,
have a menu item Account Maintenance from VirtueMart. I would like SCLogin to appear instead of standard Login module of VM ("When you are already registered, please login directly here")
Here's the page where I want to implement it.
I would really appreciate your help - I tried to find info on the forum and at the Documentation section and didn't find it.

Thank you!
The topic has been locked.
Support Specialist
Our SCLogin module is just like any other module and can be configured to show in any module position.

If you want the social authentication buttons to show on another page, you can add them with the {JFBCLogin} tag. That can be added in a component output area (like a product description), or edited into other modules and component output to show along with their login area, for instance.

I hope that helps give you some ideas. If not, please include what you meant with "Here's the page where I want to implement it. ". There was nothing in the thread above.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Hi Alex,

Thanks for your response. Sorry, for some reason the link didn't get attached - please have a look here
Under "Your account details" you can see the Login button, and that opens the standard Joomla login module. Despite I have unpublished the Joomla module, obviously that's not enough for SCLogin to show up on the Account maintenance page of VirtueMart. What I'm trying to do is to replace the standard Joomla login by SCLogin in the Virtuemart files.
In my templates/my_template/html/com_virtuemart/user/login.php file I can see the code:
<form id="com-form-login" class="form-inline form-validate" action="<?php echo JRoute::_('index.php', $this->useXHTML, $this->useSSL); ?>" method="post" name="com-login" >
    <fieldset class="userdata">

      <p><?php echo vmText::_('COM_VIRTUEMART_ORDER_CONNECT_FORM'); ?></p>

      <div class="form-group">
        <input type="text" name="username" class="inputbox form-control required" size="18" placeholder="<?php echo vmText::_('COM_VIRTUEMART_USERNAME'); ?>"/>
      </div>
      <div class="form-group">
        <input type="password" name="password" class="inputbox form-control required" size="18" placeholder="<?php echo vmText::_('COM_VIRTUEMART_PASSWORD'); ?>"/>
      </div>
      <?php if (JPluginHelper::isEnabled('system', 'remember')) { ?>
      <div class="form-group checkbox">
        <label for="remember">
          <input class="checkbox" type="checkbox" id="remember" name="remember" value="yes" />
          <?php echo $remember_me = vmText::_('JGLOBAL_REMEMBER_ME') ?>
        </label>
      </div>
      <?php } ?>
      <div class="form-group">
        <input class="btn btn-primary btn-block" type="submit" name="Submit" value="<?php echo vmText::_('COM_VIRTUEMART_LOGIN') ?>" />
      </div>
    </fieldset>
    <input type="hidden" name="task" value="user.login" />
    <input type="hidden" name="option" value="com_users" />
    <input type="hidden" name="return" value="<?php echo base64_encode($url) ?>" />
    <?php echo JHtml::_('form.token'); ?>
  </form>
If I could replace this code by the code from components/com_jfbconnect/views/loginregister/tmpl/default.php (or insert SCLogin without hacking VM files) - that would answer my question. Would you be able to help me?

Thank you!
The topic has been locked.
Support Specialist
The easiest way to add the social login functions to that page is to edit the code you mentioned. All you need to do is add {JFBCLogin} wherever you want our social buttons to show. Adding that to the bottom of the code you show could be a start.

There are other options for setting which social network buttons you want to display or even the image that you want to show for each one. I can help provide you with that code as well if you're interested.

I hope that helps get you started, but if you need anything else, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Thanks Alex! that helped!
The topic has been locked.
Support Specialist
Fantastic! I'm glad to hear that got you going, but if you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/extensi...l-display/jfbconnect

Thanks,
Alex
The topic has been locked.