Topic-icon SCLogin does not have a Virtuemart registration option

Active Subscriptions:

None
14 years 3 weeks ago #22868 by cas
I am using Joomla 2.5.4 and Virtuemart 2.0.6.

In the admin the SCLogin module does not have a Virtuemart Registration Component option. It only has Joomla, JomSocial & CB. How do I make Virtuemart my registration preference?

Also, when a new user register on my site, it no longer shows the Virtuemart registration fields (address, etc). It just has the basic Joomla registration fields. I thought when I first installed SCLogin that it had a different registration page. Can you take a look to see what's wrong at: www.hairextensionsfair.com

Thanks,
Chuck
The topic has been locked.
Support Specialist
Chuck,
Our SCLogin module for Joomla 1.5 has a Virtuemart registration option, but it looks like we left out the option for VM 2.x on Joomla 2.5. If you make the following minor changes, you can get the Register for this Site link to go to VM's Account Maintenance (registration) page.

Edit /modules/mod_sclogin/mod_sclogin.xml Around line 33, you'll see:
<field name="register_type" type="radio" default="joomla" label="Registration Component"
                       desription="This changes the 'Register Now' link to point to the component specified. Only select JomSocial if you have it installed.">
                    <option value="joomla">Joomla</option>
                    <option value="jomsocial">JomSocial</option>
                    <option value="communitybuilder">Community Builder</option>
                </field>
Add the following line in there unter the Community Builder line:
<option value="virtuemart">Virtuemart</option>

Then, edit the /modules/mod_sclogin/mod_sclogin.php file. Around line 35, you'll see:
else if ($registerType == "virtuemart" && file_exists(JPATH_SITE.DS.'components'.DS.'com_virtuemart'.DS.'virtuemart_parser.php'))
{
    require_once (JPATH_SITE.DS.'components'.DS.'com_virtuemart'.DS.'virtuemart_parser.php');
    global $sess;
    $registerLink = $sess->url( SECUREURL.'index.php?option=com_virtuemart&page=shop.registration' );
    $profileLink = '';
}
Replace all of that (it was meant for VM1.x) with:
else if ($registerType == "virtuemart")
{
    $registerLink = JRoute::_('index.php?option=com_virtuemart&view=user&layout=edit');
    $profileLink = '';
}
Once done, edit the settings of your existing SCLogin module and change the "Registration Component" setting. Then, test. Alot.

As for the registration fields, make sure you have the JFBConnect - Virtuemart2 profile plugin enabled on your site. Then, in the "Profiles" area of JFBConnect, make sure that it is configured to show all fields or show required fields during registration. It sounds like it's now configured to show 'none'.

Hope that helps!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 weeks ago #22898 by cas
Hi Alex,

I made the changes and confirmed everything was set correctly, but now when I select "Register for this site" from the SCLogin module, I get a blank registration page. I had to change the SCLogin module setting back to Joomla registration. What could be wrong? FYI, I use Admin Tools Pro for security, so is there something in there I need to configure to enable this to functionality to work?

Thanks,
Chuck
The topic has been locked.
Support Specialist
Chuck,
Shouldn't be anything in AdminTools causing the problem. We're simply redirecting to a page. Possibly, the wrong one. What I'd recommend doing is disable your SEF URLs (temporarily) and go to your Virtuemart registration page. Then, tell us what the non-SEF URL is. Basically, you'll just need to paste that into the $registerLink variable above and should hopefully work.

If not, let us know!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 weeks ago #22944 by cas
Hi Alex,
When I turned off the "Search Engine Friendly URLs" the link was the same as in your note above: 'index.php?option=com_virtuemart&view=user&layout=edit'. I experimented and eventually got this to work: 'index.php?option=com_virtuemart&view=user'. It's interesting that my Main menu for Account maintenance is set to the VirtueMart Account Maintenance link and that is 'index.php?option=com_virtuemart&view=user&layout=edit'. And this link works when in the main menu, but not in the SCLogon module. Any idea why one works and the other only works when I remove the '&view=user' at the end?

Thanks,
Chuck
The topic has been locked.
Support Specialist
Chuck,
Virtuemart does a lot of weird things, honestly. If it works in your Menu item, it's probably looking for the specific Itemid parameter in the URL (which is the id of the menu item) to pull in some information about settings/parameters for that menu item. If you update the URL to use the Itemid from your specific menu item, it will probably also work. However, if you're happy with leaving the layout=edit off (by that, I mean, it works), then you should be just fine like that.

Obviously, test, but hopefully you're good to go!

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 weeks ago #22973 by cas
Thanks Alex. I agree if it works, I should quit while I'm ahead. :-)

The only issue I'm facing now is that by using the VirtueMart registration, it is no longer pulling in the new Joomla User Profile plugin, which I extended with some key fields I wanted to collect about my customers. Have you run across this issue?

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

None
14 years 2 weeks ago #23027 by cas
Hi Alex,

Let me know when the mod_sclogin.xml & mod_sclogin.php has been updated for VM2 and put on your download page.

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

None
13 years 11 months ago #23681 by cas
Hi Alex,
I am having a problem with the JFBCLike button when the user gets a Page-Not-Found error. I use the Qlue Custom 404 extension to nicely handle Page-Not-Found errors. Go to www.hairextensionsfair.com to see how the Like button works properly and then just add /anything at the end of the URL to see how the Like button does not work properly and messes up the page. Everything else works properly, so hopefully this can be fixed.

Thanks,
Chuck
The topic has been locked.
Support Specialist
13 years 11 months ago #23686 by alzander
Chuck,
The Qlue 404 extension doesn't look to be executing system plugins, which is what's causing the problem. The JFBCSystem plugin is what translates the {JFBCLike} (and other) tags as well as inserts the Facebook Javascript library into the page. If that's not executing, which we expect it to properly execute on every page, you'll see unrendered tags and things like the Login With Facebook button will just be text, as you see.

There's not anything we can do about this since our plugin isn't being executed, which is critical for almost all of JFBConnect's functionality.

Hope that helps explain. If there's a way to have Qlue execute plugins, please enable it.

Alex
The topic has been locked.