× Joomla Facebook Connect support forum

Topic-icon Virtumart registration problem [Solved]

Active Subscriptions:

None
I am using a custom field in VM and some custom code in the user_class for my VM them that if a user enters the proper code it will automatically move them in to a specific shopper group so they can receive a specific discount without me having to move them my self. This works on the normal create an account link in the login module. However it does not work when using JFBConnect to login and register, any idea on how I can make it work? www.filmpositivesnow.com I can provide further info for testing if need be. Thanks.
The topic has been locked.
Support Specialist
14 years 5 months ago #17173 by alzander
Jeremy,
Our Virtuemart plugin copies a lot of the functionality from the user_class from VM into our plugin and then applies some minor modifications to it to adhere to our user creation process. You can see the file in the /plugins/jfbcprofiles/virtuemart.php. Specifically, if you search for "shopper" and "shopper_group_id", you'll see it being set in a few different places. Depending on the field that you have setup in VM, you should be able to check for that value in our file to see if a certain code was entered and then change the group's setting where necessary.

My description is a little vague because I don't know your specific circumstances. However, if you need more help getting a value or changing the group, just let us know what field specifically you change about the user and what input field you look for. Then, we can see if we can help provide a little more info on how to accomplish what you're looking for.

Hope that helps get you started,
Alex
The topic has been locked.
Active Subscriptions:

None
Thanks I will take a look and see if I can figure it out.
The topic has been locked.
Support Specialist
14 years 5 months ago #17184 by alzander
Good luck, and let us know how we can help!

Alex
The topic has been locked.
Active Subscriptions:

None
I have added the functions I needed so that the registration works as I need it too. The only thing I can not make work is my VM Email manager which sends out a custom new user email, but that's not a big deal as it sends out the default new user email. It would be cool if there could be a way for the plugin to loop back through the user_class functions so that others who have customized there VM can still use their hacks.
The topic has been locked.
Support Specialist
14 years 5 months ago #17235 by alzander
Jeremy,
I've taken this as a note. We do have the ability in our profile plugins to tell the extension we integrate with to send new user emails and then disable Joomla's sending of emails. We've never investigated (or had this request) for Virtuemart, but I added it to our task list to investigate.

Just so you know, VM 2.0 was released last week. We don't currently support it, but are going to be looking into it over the next week or so. We're hoping it's easier to integrate with than VM 1.x. If so, we'll be able to add new features easier and more quickly. If people transition start transitioning to 2.x quickly, we may not be making many more changes to our profile integration in 1.x either.

Thought you should know about all that.. and if you've played with 2.0 at all, we'd love to hear about your experiences!

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

None
I have yet to look into 2.0 as I have so many custom plugins and components that I use with this particular site, I don't think I could ever upgrade it with out considerable time and expense. But I will be looking into it for future sites. Thanks for the info!
The topic has been locked.