VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: jamedia on January 11, 2012, 00:12:17 AM

Title: VM2 Customer registration
Post by: jamedia on January 11, 2012, 00:12:17 AM
Hi,

I just want to know what the best way to set up the VM Registration form, should I use joomla's or VM2?

I tried to setup joomla's but it seems that it's not connecting with VM2 registration, specially when you try to edit within the shopping cart, all I get are empty forms even though I am logged in, but when I tried to use VM2's registration I get errors.

Thank You
Title: Re: VM2 Customer registration
Post by: tobisagt on January 11, 2012, 13:08:33 PM
You have a VM2 registration form? I thought there is none...  ???
Title: Re: VM2 Customer registration
Post by: jfoc on January 12, 2012, 05:01:00 AM
I've had the same problem for weeks now, i dont know if there's a solution for this problem.. my post got only one answer and didn't solve it... if you find a way to make it work please let me know! thanks
Title: Re: VM2 Customer registration
Post by: jamedia on January 12, 2012, 05:09:53 AM
After going through the whole VM2 setup I didn't really find much, I believe the way it suppose to work you have to use joomla registration and login and once a customers register and then login through joomla they'll have to edit their info on VM by adding their billing and shipping address.

I been doing website for a while and I used tons of shopping cart but normally you enter all your information (shipping and billing) right when you register, I believe it was like that on previous version of VM.

I hope that I am wrong, and please if anybody out there can help us out that would be greatly appreciated.
Title: Re: VM2 Customer registration
Post by: kvant_doan on January 13, 2012, 07:52:54 AM
Same probs with u.

I have to add users from back-end in joomla. Are there any convenient ways for users to register in VM2?
Title: Re: VM2 Customer registration
Post by: jamedia on January 13, 2012, 16:01:54 PM
You have to setup a joomla registration and login menu but once they are registered to your site they can add their shipping and billing address on VM.

I believe that's the correct way to do it.
Title: Re: VM2 Customer registration
Post by: jfoc on January 14, 2012, 03:19:22 AM
yes, that's the only solution I found too. The problem is that if you enable the "register at checkout" option, your customers can't complete the registration because the e-mail field is set as "read only" in the VM configuration. So that's a major issue since its a good idea to let the new customers add items to their cart and register when they are checking out. To tell you the truth I'm very disapointed with this issue, I wanted to migrate my shop to VM2 but now I'm considering other e-commerce solution available, since nobody seems to know how to solve this. Anyway, if I get this working I'll let you know, good luck!
Title: Re: VM2 Customer registration
Post by: lipes on January 17, 2012, 02:57:37 AM
I've got same problem in user registration on VM 2.0.
I even cant register an "demo user" to test it. We got so many forms and i dont know how to disable or remove them.

My full questions in this post:
http://forum.virtuemart.net/index.php?topic=94819.msg317333#msg317333
Title: Re: VM2 Customer registration
Post by: JohnnyC on January 17, 2012, 09:55:48 AM
I've been searching that long time now with no luck... I've also started a thread with some questions including this one
(http://forum.virtuemart.net/index.php?topic=96460.msg317132#msg317132)

My conclusions are:
So, my suggestions are:

Expecting ideas...
Title: Re: VM2 Customer registration
Post by: lipes on January 17, 2012, 13:44:05 PM
argh! :(

My suggestion its Praying to All the VM Saints programmers that they include in VM 2.0.1 a good User Registration to all people.
Title: Re: VM2 Customer registration
Post by: oskaraz on January 17, 2012, 23:53:04 PM
I have similar problem . 
In user registration form need only user name and password , but if need add adress or another information , field can't bee edited. WTFpleace help........
Title: Re: VM2 Customer registration
Post by: Milbo on January 18, 2012, 01:04:09 AM
Sorry guys, I overlooked this thread:

Solution:
it is quite easy you can do it directly, just not completly clicki, you need to copy this
/index.php?option=com_virtuemart&view=user&layout=editaddress

Go in your menuitem, choose external link or so and use the link above, done. It is already working. Just the xml is missing so that you can't choose it in the menu item manager.

What happened? We just never thought about a customer who is registering first. When you would have tried the checkout, you would understand that the registration process is fully implemented in the checkout. When I registered at a shop, I do this always during the checkout. I point again on this topic here: http://forum.virtuemart.net/index.php?topic=96438.0 in the FAQ. I explained a bit further

Quote from: JohnnyC on January 17, 2012, 09:55:48 AM
VM2 uses the Joomla registration to create shoppers and vise versa
yes

Quote from: JohnnyC on January 17, 2012, 09:55:48 AM
Only the basic information are being "copied" to create accounts in the two systems
There is no second account created. Every joomla user is a shopper. The vmuser table is there to store "overwrites" of the normal behaviour.

Quote from: JohnnyC on January 17, 2012, 09:55:48 AM
  • Creating an account (in Joomla for example) it is created in Applications->Contacts too...(!)
Maybe since j1.7, imho the com_contact is not automatically connected to an account. Additionally to that use the most people not com_contact, most use directly a community tool, like Community builder, joomsocial and so on.

Quote from: JohnnyC on January 17, 2012, 09:55:48 AM

  • Use the Joomla and VM2 registration with the same fields. If the user creates the account through one system, he will have to reenter information when he comes to the other, but in most cases this will happen only once... The exception is when someone wants to change his information
  • Find a hack (I don't know how, it's just a thought) while VM "grabs" or "gives" the basic info to Joomla to create the other account, to make it do the same with other information fields...
  • Maybe there is a way to use or synchronize the Contacts information and we haven't "seen" it yet

Awful missunderstanding of the com_contact system. I do not really get the problem. Virtuemart has its own address handling as many other components. It is not meant to work with com_contact. It was not useable for j1.5, we tried but found big structural problems with it (when I remember write it was not automatically connected to a user this time).

Just for your information: In Vm1.1 you had two completly different datasets + com_contact. now when you change your email in virtuemart, the email of joomla changed Because it is exactly the same data. We use completly the joomla account. But com_contact is NOT a joomla account. It is like your addressbook in your email program which can be connected to a joomla account. and to underline again, there exist NO virtuemart accounts anymore, that is vm1.1.

You can create just a joomla user and he can act as a shopper, but you can also use this link /index.php?option=com_virtuemart&view=user&layout=editaddress to have a registration form with the vm information.

Btw components like Community builder do the synchronisation, between com_contact and virtuemart, already (afaik)

PS: I think I remember the problem, create a contact and change the email of the contact,.. afaik the email of your user account does not change. This is not intended in a shopsystem. Maybe they changed it in j1.7, but I am quite sure that was the blocker in j1.5.
Title: Re: VM2 Customer registration
Post by: JohnnyC on January 18, 2012, 08:52:11 AM
Ok, the /index.php?option=com_virtuemart&view=user&layout=editaddress is gonna work!!!
I only need two more things:

Thanks!
Title: Re: VM2 Customer registration
Post by: lipes on January 18, 2012, 13:34:55 PM
Good afternoon.
The address: /index.php?option=com_virtuemart&view=user&layout=editaddress
Gives-me the same error result that i said here in my post (with photo description):
http://forum.virtuemart.net/index.php?topic=96529.msg317613#msg317613
Title: Re: VM2 Customer registration
Post by: John2400 on January 24, 2012, 12:15:19 PM
I found that the short way for me to find the shoppers list is to open shop then click CANCEL - this solved 90% of my issues in the shop.

OR click on the Virtuemart symbol that shows the control panel and the shoppers are displayed above products.

Upgrading to 2.0.1 also solved some of these issues for me.
Title: Re: VM2 Customer registration
Post by: juagicre on January 27, 2012, 11:55:44 AM
Hi!

Having joomla registered users as a shopper users it's a big improvement from vm1.X, this sounds like if you're registered and no more info it's needed :) you can just checkout without any problem, right?
So, my registered user it's about to checkout as you can see here:
First picture uploaded (confirmorder.png)
Then it's suposed you get redirected to the payment screen (in my case paypal)... but my users instead get redirected to this page:
Second picture uploaded: checkoutirruption.png
How can I avoid this? I want them to go directly to the payment screen... not this :( what do I have to configure or tune?

Thanks for your help!

[attachment cleanup by admin]
Title: Re: VM2 Customer registration
Post by: JohnnyC on January 27, 2012, 12:10:49 PM
I don't know if this exists at VM1.X, but at VM2 there is an option in Control Panel->Configuration->Checkout, that enables or disables the user registration during checkout.
Title: Re: VM2 Customer registration
Post by: juagicre on January 27, 2012, 12:45:23 PM
I'm using vm2.0.1 so i can see this options as well, at the image you get how i have this configured...
I tryied with the "Only registered users can checkout" but still they get redirected to the "checkoutirruption.png" (see image of my previous post).
My registered user is able to checkout but needs to do it without being first redirected to this "save" page... (it's confusing!) also i unchecked all the "agree with terms" just in case it's needed to continue, but i can't get rid of this at the users fields, as it's locked :(

[attachment cleanup by admin]
Title: Re: VM2 Customer registration
Post by: Milbo on January 28, 2012, 20:26:48 PM
You can also disable the locked fields, when you go in the edit detail view.

I try to understand what you try todo.... When you want only registered users being able to checkout, then you must show the locked userfields, because they are the joomla fields for the registration, email, username, nickname, password.
Title: Re: VM2 Customer registration
Post by: John2400 on February 03, 2012, 11:37:00 AM
Milbo ,

I have updated to VM 2.0.1c and joomla 2.5.1 and have just tested my shop.

I see that the customer has to register first an account in Joomla, the they receive an email that confirms their registration. Then they must go back to the site find the shopping cart.
login and edit their user details and then click save and then Cancel to leave the screen. Then find the billing information and so On --
Is this true ? 

In my previous versions this was the perfect process - get to the screen , type the billing address and away you go - ? surely we can go back - I have set up lots of old 1.5 vm 1 shops and never been hit by spam.

Am I missing something in my setup? The vendor will lose money - clients will not buy
Title: Re: VM2 Customer registration
Post by: JohnnyC on February 03, 2012, 12:18:50 PM
I think VM 2.0.1 has this problem solved, as said in this thread. I haven't tried yet but there maybe a common registration module, not only for username and email but for all the profile information... isn't it?? I am gonna try it when J2.5.1 and VM2.0.1 are stable and my VM theme updates to be compatible (it's a free theme)
Title: Re: VM2 Customer registration
Post by: jenkinhill on February 03, 2012, 12:27:50 PM
This is a Joomla setting - "If user registration is enabled (in User Manager > Options), another link will be shown to enable self-registration for users."

So go to User manager, select Options, then
Users Configuration  -> Yes
New User Account Activation -> None
Title: Re: VM2 Customer registration
Post by: Milbo on February 03, 2012, 14:15:28 PM
Quote from: John2400 on February 03, 2012, 11:37:00 AM
I see that the customer has to register first an account in Joomla, the they receive an email that confirms their registration. Then they must go back to the site find the shopping cart.
login and edit their user details and then click save and then Cancel to leave the screen. Then find the billing information and so On --
Is this true ? 
Heavens NOOOO !
You can just add your stuff as anonymous, enter cart, press checkout, then you are asked for your details, you can DIRECTLY register there and proceed with the checkout without any interruption. I am wondering why this is not clear. Of course, you can do settings so that this does not work. For example joomla is configurated so that people have to confirm via email. You must disable that.
Title: Re: VM2 Customer registration
Post by: lipes on February 03, 2012, 15:13:02 PM
humm...
Milbo, maybe its because some % of all webstores are configured to costumers do they registration first (without doing some checkout with no registration mode active..)... i think  ::)
in vm1.1.x costumers must register first... then many of us are still accustomed to this process...
and filling the main form of VM registration directly..
not like now...
the joomla registration form first.. and then the VM registration forms..
or do some checkout without any interruption / registration... and in the end do that registration..
Title: Re: VM2 Customer registration
Post by: John2400 on February 03, 2012, 23:34:48 PM
Hi everyone who had a go at answering this -

JM 2.5.1 and VM 2.0.1 c -  I tried all those options, Jenkinhill - Firstly have I got the settings right as I click and saved several times waited for the joomla to reconfigure just incase and still from the cart billing screen it to pushes me to login first.

* to Milbo - I love the noooo as on every other version I had and every other shop in earlier versions , my shops worked just like you described. So I do understand the process but this version was instantly set to push me to the login first - I have seen others write what I wrote and I could not understand what they ment. ( now I do because of this process)

* to Poplipes - You might be right too but as I stated earlier - the update change this setting - without me doing any special configuration in Joomla or Virtuemart.

* So everyone could you have a look , see what my settings are and then I'll reply to say the registration works.

* just updated - VM 2.0.1d - still not solved ( just so you know) .

* Ihave a little time today as my house is surrounded by flood water - the river is about 100m from me ( normall 10m wide) now 300m wide raging. still up second day - trapped but the internet works - Australia.

[attachment cleanup by admin]
Title: Re: VM2 Customer registration
Post by: Milbo on February 04, 2012, 11:35:15 AM
I think I should show john via skype the right setting.

Just what virtuemart 2 can do since almost a year now.

Our standard test is adding products as anonymous and do the checkout, after the checkout can can be registered without leaving the checkout process! Hmm someone should do a video.

VM2 registration process is absolutly flexible,.. you can do the checkout process,.. checkout as anonymous, clicking on the VM registration page and your stuff is prefilled. You can enter the process and check that you just forgot to login and you can do that without loosing your cart. When you click as anonymous on checkout and you are not registered when seeing thank you then your shop is not correct configured.
Title: Re: VM2 Customer registration
Post by: John2400 on February 04, 2012, 13:42:15 PM
Just to let you know -
I read Milbo's message and sent him a message.  I live in Australia ( time Sydney Time ) - I'm online at 11.41pm Saturday which is about 1.41pm in Germany.
If you skype then you will have to pick now - or guess ( Australian time after my 7.00pm any night of the week)

I'll continue to look at the settings -
* for me almost everything works well
* except paypal emails, to customer and vendor,
* and like the rest just attributes in products - ( yes I have put them in other forums or I watch the progress there)

* OK after a good conversation - I will rebuild a site with JM 1.7.5 and VM 2.0.1 ( versions and updates) + have a 2.5 test site in another folder.

Then I'll post issues. -

Again some like me jumped to 2.5. + Joomla due to the concern of upgrading ( later) - I hope there is an easier upgrade than 1.5 joomla to 1.7 Joomla (migration)
Title: Re: VM2 Customer registration
Post by: WDCT on February 16, 2012, 13:09:42 PM
The only solution I found to work in order for the user to register and checkout at the sametime, was to change new user account activation = none.

This not only solved the issue for the client to wait for his confirmation email, but also helped to display the users' order in is order list, as the client was logged in when he completed and confirmed the order.
Title: Re: VM2 Customer registration
Post by: jenkinhill on February 16, 2012, 15:12:57 PM
Quote from: WDCT on February 16, 2012, 13:09:42 PM
The only solution I found to work in order for the user to register and checkout at the sametime, was to change new user account activation = none.as logged in when he completed and confirmed the order.
Correct - as mentioned in http://forum.virtuemart.net/index.php?topic=96215.msg321108#msg321108

Seems that the current Joomla default on installation is to require vaildation, so this needs changing for every new site.
Title: Re: VM2 Customer registration
Post by: Georgios Kolomvos on March 04, 2012, 11:45:59 AM
Customer registration still has a problem, please look at Topic: User not confirmed but order accepted (http://forum.virtuemart.net/index.php?topic=98835.msg326110#msg326110)

Title: Re: VM2 Customer registration
Post by: cas on May 19, 2012, 21:20:28 PM
I'm using VM2.0.6 & Joomla 2.5.4.  When I set the New User Activation = None, it does allow the customer to register and buy at the same time, but it does NOT include the required tax.  I also noticed when registering & buying from the VM cart it does NOT log the user into Joomla during that initial VM registration time.  It only logs the user into VM.  If the customer logs out using the VM cart and then logs back in from the VM cart or the Joomla login, it does log into both VM & Joomla, and then the tax is applied properly.  So this problem only occurs during the initial registration & buy from the VM cart.   Is there a fix for this problem?   
Title: Re: VM2 Customer registration
Post by: cas on May 22, 2012, 22:32:01 PM
Any help on this issue?
Title: Re: VM2 Customer registration
Post by: cas on May 25, 2012, 19:37:57 PM
Guys, help us!  Read my post from May 19th.  VM is not charging tax when user first registers from the shopping cart when buying for the first time.  Since VM does not log user into Joomla at the time user first registers, VM does not charge tax for that state.  This is a critical issue.  Please let us know if this is being fixed. 
Title: Re: VM2 Customer registration
Post by: cas on June 01, 2012, 05:44:37 AM
Can anyone help us?
Title: Re: VM2 Customer registration
Post by: JohnnyC on June 01, 2012, 09:35:57 AM
It is a little complicated as you describe it and to be honest I haven't seen the problem clearly. My advice is, check the tax in products (when the final price is computed) and in user groups. Maybe you have a group with different tax rule than you want. Use the Joomla login and registration only for email, username and password fields (only these are "copied" to VM user when registering) and the VM registration for the rest account. So, every time the user logins, it will be through VM.
I cann't think anything more as I am not an expert... Hope the above will help...
Title: Re: VM2 Customer registration
Post by: cas on June 01, 2012, 09:53:00 AM
Hi Johnny,

The problem is with the initial VM registration from the cart.  The VM team needs to fix this bug.  The tax works fine when the user logs back in after their initial registration, so the VM needs to make the initial registration from the cart set things to work like when the user logs back in.   
Title: Re: VM2 Customer registration
Post by: JohnnyC on June 01, 2012, 11:44:10 AM
So, when a user registers and logs in directly from cart, the taxes rules don't be applied?? I think the user is anonymous till the first login that becomes "default" or any other group you have. Are you sure "anonymous" and "default" have the same tax rules?
If you are pretty sure this is a bug you should pm the developers or post your question at http://forum.virtuemart.net/index.php?board=127.0 (http://forum.virtuemart.net/index.php?board=127.0) and then publish the ansewr here for us...
Title: Re: VM2 Customer registration
Post by: cas on June 02, 2012, 07:27:44 AM
Hi Johnny,

That is correct... when the user first registers from within the VM cart, the user shows logged in within the VM cart, but the Joomla login module does not show the user is logged in.  And the result is that user is not charged tax if they register and buy in the same session.  If they login with the Joomla login module, or login with the VM cart login after registering in a previous session, then they are logged in to Joomla & VM and then VM charges tax correctly.   

And I cannot set tax rules for "anonymous" because then tax is added for everyone just visiting my store, even if they live in a state where tax would not be changed.  Charging tax for everyone was a previous bug I  reported and the answer from the VM team was to only set tax rules for "default" shopper group.  But maybe you hit on where the bug is... maybe VM is not changing the user to "default" shopper group when the user first registers.  Milbo, could this be the bug?   
Title: Re: VM2 Customer registration
Post by: bogusj on June 12, 2012, 21:59:19 PM
Hi,

At the top of the shopping cart, there is the login without the new user registration link.
This confuses people who are trying to register. Of course when you click on check out, it automatically takes you to the new user registration, however most people, don't get that. Is there any way to add the new user registration at the login inside the cart?

Thanks in advance.
Title: Re: VM2 Customer registration
Post by: pbc278 on June 14, 2012, 16:55:31 PM
Please fix this bug! VM2 team... registering as new shopper and the auto login needs to log the user in properly, so also into Joomla!


Quote from: cas on June 02, 2012, 07:27:44 AM
Hi Johnny,

That is correct... when the user first registers from within the VM cart, the user shows logged in within the VM cart, but the Joomla login module does not show the user is logged in.  And the result is that user is not charged tax if they register and buy in the same session.  If they login with the Joomla login module, or login with the VM cart login after registering in a previous session, then they are logged in to Joomla & VM and then VM charges tax correctly.   

And I cannot set tax rules for "anonymous" because then tax is added for everyone just visiting my store, even if they live in a state where tax would not be changed.  Charging tax for everyone was a previous bug I  reported and the answer from the VM team was to only set tax rules for "default" shopper group.  But maybe you hit on where the bug is... maybe VM is not changing the user to "default" shopper group when the user first registers.  Milbo, could this be the bug?   
Title: Re: VM2 Customer registration
Post by: pbc278 on June 15, 2012, 01:31:16 AM
 :P I fixxed the issue in my Virtuemart 2.06 / Joomla 2.5.4 config, after registration in the checkoutprocess you are not correctly logged into Joomla...
with this post you can fix the problem....

go to the file: components\com_virtuemart\controllers\user.php
find this part:
if($currentUser->id==0){
$msg = (is_array($ret)) ? $ret['message'] : $ret;
$usersConfig = &JComponentHelper::getParams( 'com_users' );
$useractivation = $usersConfig->get( 'useractivation' );
if (is_array($ret) && $ret['success'] && !$useractivation) {
// Username and password must be passed in an array
$credentials = array('username' => $ret['user']->username,
  'password' => $ret['user']->password_clear
);
$return = $mainframe->login($credentials);


This part should do the correct login, but it is skipped completely because when it reaches this part the variable '$currentUser' is never '0', but has the value of the new user ID that is created when the entered userdata is stored... SO, first change the first line to:

if($currentUser->id!=0){

then you can see the return of this part sould be the login action, but the line '$return = $mainframe->login($credentials);' does not do anything, change it also to:

return $mainframe->login($credentials);

After this you are correctly logged into Joomla and Virtuemart 2!

I'm not a VM developer, but I hope this fix makes any sense and I also hope my logic is correct !?
Also I hope this bug can be resolved in future updates of VM2!

Title: Re: VM2 Customer registration
Post by: pbc278 on June 15, 2012, 01:38:47 AM
Quote from: pbc278 on June 15, 2012, 01:31:16 AM
then you can see the return of this part sould be the login action, but the line '$return = $mainframe->login($credentials);' does not do anything, change it also to:

This part was correct, sorry, did not know do a 'return' this way...
I was learned to write "return bla bla bla;" and not "$return = bla bla bla;"

sorry  :-[
Title: Re: VM2 Customer registration
Post by: cas on June 15, 2012, 06:48:22 AM
Thanks pbc.

Can someone on the VM team confirm this is being fixed in the next release?
Title: Re: VM2 Customer registration
Post by: Genius WebDesign on June 26, 2012, 14:52:23 PM
@pbc278

I have tried using your code, but it doesnt work for me. Im also using Virtuemart 2.0.6 with Joomla 2.5.4

Whenever a new customer completes an order and creates an account the completion page is shown but the login-module says that the customer is not logged in even though he/she is logged into Virtuemart. Another thing is that the cart is not empty after order completion either..

I hope you can help me with this.
Title: Re: VM2 Customer registration
Post by: Genius WebDesign on June 26, 2012, 15:04:00 PM
@pbc278

Update.. The thing about the cart not emptying was related to the payment plugin. Thats solved now.
The login after registration-issue is still a problem, though
Title: Re: VM2 Customer registration
Post by: bogusj on June 29, 2012, 13:18:40 PM
Hi, any progress with, at the top of the shopping cart, there is the login without the new user registration link?
Title: Re: VM2 Customer registration
Post by: Milbo on June 30, 2012, 12:39:43 PM
Quote from: pbc278 on June 15, 2012, 01:38:47 AM
Quote from: pbc278 on June 15, 2012, 01:31:16 AM
then you can see the return of this part sould be the login action, but the line '$return = $mainframe->login($credentials);' does not do anything, change it also to:

This part was correct, sorry, did not know do a 'return' this way...
I was learned to write "return bla bla bla;" and not "$return = bla bla bla;"

sorry  :-[

No reason to say sorry man. I see it exactly as you, I also do not like it. I am sorry that I see this 1 day after the release, hmp. Next time pook me on it (just btw, yes it is poke, but pook is my new word for a mix of poke and push).

Very interesting this change with the id==0 and it should be !=0, why not just completly remove it then?

Edit: I just see that in the new version 2.0.8 we use if($currentUser->guest==1){
Title: Re: VM2 Customer registration
Post by: bogusj on July 11, 2012, 11:28:53 AM
Hi,

Could anybody help me with this one, please?
Quote from: bogusj on June 29, 2012, 13:18:40 PM
Hi, any progress with, at the top of the shopping cart, there is the login without the new user registration link?
Title: Re: VM2 Customer registration
Post by: walkyrie on August 15, 2012, 17:27:06 PM
I have exactly the same question as bogusj...? Why should we click on "bill information" to have the registration fields???

thank's!
Title: Re: VM2 Customer registration
Post by: Remy on August 28, 2012, 15:55:16 PM
Hello,

I found out that this "bug" has been in VM 2 since version 2.0.2 so I created my own hack, I'm sure it's not the best solution but it works for me.

In the file: components\com_virtuemart\controllers\user.php
Go find the code:
function registerCheckoutUser(){
$msg = $this->saveData(true,true);
$this->setRedirect(JRoute::_( 'index.php?option=com_virtuemart&view=cart&task=checkout',$this->useXHTML,$this->useSSL ),$msg);
}


And change it to:

function registerCheckoutUser(){
$msg = $this->saveData(true,true);
$currentUser = JFactory::getUser();
if($currentUser->id != 0){
$this->setRedirect(JRoute::_( 'index.php?option=com_virtuemart&view=cart&task=checkout',$this->useXHTML,$this->useSSL ),$msg);
} else {
$this->setRedirect(JRoute::_( 'index.php?option=com_virtuemart&view=user&task=editaddresscheckout&addrtype=BT',$this->useXHTML,$this->useSSL ),$msg);
}
}


I don't know if it will work with an activation link send via mail but it works if you have a 'register as customer' button next to the 'register as guest' button.

Hope this "bug" will get fixed with the next update because I don't like changing core files of components
Title: Re: VM2 Customer registration
Post by: cavalier79 on October 03, 2012, 16:06:40 PM
Hello all! I think i've found why the activation link doesn't work.

When the user register trough VM it creates the user on #__users. But when VM check if the user is correctly registered ($app->login() ) it update the #__users login with lastVisitDate.

the activate() function on register.php model on com_users search for the activation code but also with a lastvisitdate set to null and so it says that the code is incorrect.

I made a workaround modifying the query in the register model, but i would that vm don't do that login or update the lastvisitdate.

thanks and sorry for my bad english!
Title: Re: VM2 Customer registration
Post by: bogusj on October 07, 2012, 15:42:43 PM
Anybody any help with this one???
Quote from: bogusj on July 11, 2012, 11:28:53 AM
Hi,

Could anybody help me with this one, please?
Quote from: bogusj on June 29, 2012, 13:18:40 PM
Hi, any progress with, at the top of the shopping cart, there is the login without the new user registration link?
Title: Re: VM2 Customer registration
Post by: bytelord on October 07, 2012, 16:45:11 PM
Hello,

Could you please read the following thread: http://forum.virtuemart.net/index.php?topic=99755.0

Regards
Title: Re: VM2 Customer registration
Post by: bogusj on November 23, 2012, 10:48:14 AM
I have read the suggested thread, but I don't see a final fix by the VM programmers, or any confirmation that any of the suggestions work. Also the topic talks about the activation link. My problem is that in cart page there is no registration link, only the login. Any fix about this, please?
Title: Re: VM2 Customer registration
Post by: bogusj on November 23, 2012, 11:40:53 AM
I found the problem!
For some reason, the block of code was commented out? I don't know why!
Line 140 of file components/com_virtuemart/views/user/tmpl/login.php was:
        <?php /*
          $usersConfig = &JComponentHelper::getParams( 'com_users' );
          if ($usersConfig->get('allowUserRegistration')) { ?>
          <div class="width30 floatleft">
          <a  class="details" href="<?php echo JRoute::_( 'index.php?option=com_virtuemart&view=user' ); ?>">
          <?php echo JText::_('COM_VIRTUEMART_ORDER_REGISTER'); ?></a>
          </div>
          <?php }
         */ ?>

I changed to:
        <?php
          $usersConfig = &JComponentHelper::getParams( 'com_users' );
          if ($usersConfig->get('allowUserRegistration')) { ?>
          <div class="width30 floatleft">
          <a  class="details" href="<?php echo JRoute::_( 'index.php?option=com_virtuemart&view=user' ); ?>">
          <?php echo JText::_('COM_VIRTUEMART_ORDER_REGISTER'); ?></a>
          </div>
          <?php }
          ?>

Problem solved!