echo shopFunctionsF::getLoginForm ($this->cart, FALSE,$uri);
echo '<h2>Or Login with Social Networks:</h2>{JFBCLogin}';
47 <?php
48 $uri = vmURI::getCleanUrl();
49 $uri = str_replace(array('?tmpl=component','&tmpl=component'),'',$uri);
50 echo shopFunctionsF::getLoginForm ($this->cart, FALSE,$uri);
51 echo '<h2>Oppure esegui il Login con i Social Networks:</h2>{JFBCLogin}';
52
53 // This displays the form to change the current shopper
The template has already an override for this file (templates/name_template/html/com_virtuemart/cart/default.php) so I have add the code in that file, but don't go!
I think it is better to add it to the login form sublayout (templates/name_template/html/com_virtuemart/sublayouts/login.php) so it can be displayed also on all the virtuemart pages that display the login form.
This is not correct. If the user has not logged in with the social credentials before, a new user will be created and logged in when one of the social buttons is pressed. They will behave the same as the SCLogin module to create a user if not existing or to log in if there is one mapped. If you have the 'Social Profiles - Virtuemart' plugin enabled and configured with the profile fields mapped to VM fields, the data will be imported into the correct VM fields.The button has now been added, but users can only use it for logging in case of a pre-registered user.
The image shown in my original response was working with the layout file that is included with VM. I didn't add the login form, just the social buttons, which I have done for your file. Since you've already overwritten the HTML for the page, it has been customized to your site and not standard with VM. You can either 1) take the portion of code from the top of your default file that adds the Joomla username/password form and add it to the bottom when the cart is empty or 2) instead of showing the JFBCLogin easy-tag, embed the instance of the SCLogin module on the page using the Joomla loadposition tag.It should appear as you entered it in your image by clicking the "Registrer" button on the top right:
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.