VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Thomas Kampp on January 24, 2013, 19:01:10 PM

Title: Register during Checkout not working
Post by: Thomas Kampp on January 24, 2013, 19:01:10 PM
How to let the user register during checkout?

As seen on the VM demo:
       http://demo.virtuemart.net/index.php/2012-01-13-09-33-20/account-maintenance/editaddresscheckoutBT
it should be possible to have the form associated with:
       "Please use Register And Checkout to easily get access to your order history, or use Checkout as Guest"

But no matter setting changes it does not work!

I have confirmed that it does not work it English version is used.

In the VM configuration, tab "Checkout" I have the following:
"On checkout, ask for registration" YES
"Only registered users can checkout" YES

Joomla user configuration (under User manager) I have the following:
"Allow User Registration" YES
"New User Account Activation" NONE

Setup: Joomla 2.5.6, VM 2.0.14

Please help!
Title: Re: Register during Checkout not working
Post by: Thomas Kampp on January 25, 2013, 15:07:09 PM
Can anyone get this to work on there site? What versions do you have? What are your settings?

Please help!
Title: Re: Register during Checkout not working
Post by: jenkinhill on January 26, 2013, 14:54:11 PM
My sites are English only. On this example I allow guest checkout, so my settings are those below. If I require full registration of shpooers then I also enable "Only registered users can checkout "


[attachment cleanup by admin]
Title: Re: Register during Checkout not working
Post by: Thomas Kampp on January 26, 2013, 15:08:39 PM
Am I understanding you right - you have the same settings as I do and it works on your installation?
Does this include Joomla user configuration?
Title: Re: Register during Checkout not working
Post by: jenkinhill on January 26, 2013, 15:10:05 PM
Yes, the top image is the Joomla user options. I have never had a registration problem.
Title: Re: Register during Checkout not working
Post by: Thomas Kampp on January 26, 2013, 15:16:42 PM
Can you speculate why I dont get the same result with the same settings?

I have tested the following:

I then tested a completely fresh install of Virtumart 2.0.16 and the AIO extension on a Joomla 2.5.8 (with only default english language and default template beez5), and it DID NOT work either!
After fiddeling around with some things I got it to work. It seems to be connected to the choice of template used in the Virtuemart Configuration. So by choosing another and reverting back to the previous correct choice it then seems to work. This is not confirmed.
I then did the same for the live site, and it did NOT work... But it did work as soon as SEF URL's in Joomla was deactivated. The problem is that if SEF URL's is deactivated the Virtuemart login module does not allow the user to log in!
Title: Re: Register during Checkout not working
Post by: Stonedfury on February 08, 2013, 23:44:46 PM
Joomla 2.5.9 Virtuemart 2.0.18a
I have been getting calls from customers who have an item in their cart and go to add/edit billing, which of course has at the bottom "Register and Checkout" "Check out as Guest" "Cancel" When the user puts in their information and clicks any of the first 2 buttons it refreshes the page with some bogus error(sometimes).

What I noticed was the user is now logged in. Hmm Click "Cancel" now and it returns you to the cart with your address there and logged in. Why did it not return to the cart when the first 2 were selected. I disable the SEF (which sucks to do) and it seems to refresh properly. The template people are not too friendly in helping fix a VM feature. So here I am.

Any ideas? I can't run the site without SEF as google has the pages all indexed as SEF, DOH. Cant have buyers if they can't, easily, move forward without having to "figure" it out.
Title: Re: Register during Checkout not working
Post by: PRO on February 10, 2013, 19:48:28 PM
Quote from: Stonedfury on February 08, 2013, 23:44:46 PM
I have been getting calls from customers who have an item in their cart and go to add/edit billing, which of course has at the bottom "Register and Checkout" "Check out as Guest" "Cancel" When the user puts in their information and clicks any of the first 2 buttons it refreshes the page with some bogus error(sometimes).

What I noticed was the user is now logged in. Hmm Click "Cancel" now and it returns you to the cart with your address there and logged in. Why did it not return to the cart when the first 2 were selected. I disable the SEF (which sucks to do) and it seems to refresh properly. The template people are not too friendly in helping fix a VM feature. So here I am.

Any ideas? I can't run the site without SEF as google has the pages all indexed as SEF, DOH. Cant have buyers if they can't, easily, move forward without having to "figure" it out.

if disabling sef fixes the problem

There could be a problem with your htaccess file

OR if you are using a 3rd party sef component, could be a problem with it.

I dont have this problem either,

also "other" system plugins can cause problems.

I had problems with system plugins I created for my site causing errors with vmart "views" especially on forms.

IF you have a 3rd part sef component, it can easily create problems with "forms" etc.

Title: Re: Register during Checkout not working
Post by: Stonedfury on February 10, 2013, 21:55:42 PM
Quote from: PRO on February 10, 2013, 19:48:28 PM
Quote from: Stonedfury on February 08, 2013, 23:44:46 PM
I have been getting calls from customers who have an item in their cart and go to add/edit billing, which of course has at the bottom "Register and Checkout" "Check out as Guest" "Cancel" When the user puts in their information and clicks any of the first 2 buttons it refreshes the page with some bogus error(sometimes).

What I noticed was the user is now logged in. Hmm Click "Cancel" now and it returns you to the cart with your address there and logged in. Why did it not return to the cart when the first 2 were selected. I disable the SEF (which sucks to do) and it seems to refresh properly. The template people are not too friendly in helping fix a VM feature. So here I am.

Any ideas? I can't run the site without SEF as google has the pages all indexed as SEF, DOH. Cant have buyers if they can't, easily, move forward without having to "figure" it out.

if disabling sef fixes the problem

There could be a problem with your htaccess file

OR if you are using a 3rd party sef component, could be a problem with it.

I dont have this problem either,

also "other" system plugins can cause problems.

I had problems with system plugins I created for my site causing errors with vmart "views" especially on forms.

IF you have a 3rd part sef component, it can easily create problems with "forms" etc.


I have disabled it down to a raw site (which is not easy on a live site) and still had the problem. Used no .htaccess, still had the problem. I can't do a fresh install as this is a live site with over 2k customers registered. At this point I have completely disabled the Joomla SEF plugin and the site seems to have no issues on check out now, however it has messed up JCE Image links, and other things that are hopefully easily fixed. http://forum.virtuemart.net/index.php?topic=112806.0 shows that it's not just me and there are at least 5 other topics on this around the board. I doubt I am alone. From what I gather in post it is VM trying to tell JM it knows best on SEF and they don't like to play well together. I thought the VM team would of considered this at the gates.
Title: Re: Register during Checkout not working
Post by: PRO on February 11, 2013, 12:51:20 PM
Quote from: Stonedfury on February 10, 2013, 21:55:42 PM
Quote from: PRO on February 10, 2013, 19:48:28 PM
Quote from: Stonedfury on February 08, 2013, 23:44:46 PM
I have been getting calls from customers who have an item in their cart and go to add/edit billing, which of course has at the bottom "Register and Checkout" "Check out as Guest" "Cancel" When the user puts in their information and clicks any of the first 2 buttons it refreshes the page with some bogus error(sometimes).

What I noticed was the user is now logged in. Hmm Click "Cancel" now and it returns you to the cart with your address there and logged in. Why did it not return to the cart when the first 2 were selected. I disable the SEF (which sucks to do) and it seems to refresh properly. The template people are not too friendly in helping fix a VM feature. So here I am.

Any ideas? I can't run the site without SEF as google has the pages all indexed as SEF, DOH. Cant have buyers if they can't, easily, move forward without having to "figure" it out.

if disabling sef fixes the problem

There could be a problem with your htaccess file

OR if you are using a 3rd party sef component, could be a problem with it.

I dont have this problem either,

also "other" system plugins can cause problems.

I had problems with system plugins I created for my site causing errors with vmart "views" especially on forms.

IF you have a 3rd part sef component, it can easily create problems with "forms" etc.


I have disabled it down to a raw site (which is not easy on a live site) and still had the problem. Used no .htaccess, still had the problem. I can't do a fresh install as this is a live site with over 2k customers registered. At this point I have completely disabled the Joomla SEF plugin and the site seems to have no issues on check out now, however it has messed up JCE Image links, and other things that are hopefully easily fixed. http://forum.virtuemart.net/index.php?topic=112806.0 shows that it's not just me and there are at least 5 other topics on this around the board. I doubt I am alone. From what I gather in post it is VM trying to tell JM it knows best on SEF and they don't like to play well together. I thought the VM team would of considered this at the gates.

what is the site url?

are you using template overrides?
Title: Re: Register during Checkout not working
Post by: Stonedfury on February 11, 2013, 18:32:15 PM
www.pollenranch.com and the template does use overrides. However, when I switch back to stock template and as I said in previous post turn off everything. The problem still persist until I disable Joomla SEF that is the only solution that has fixed the problem. I am asking on Joomla forum as well hoping they might know where virtuemart is going wrong. 

http://forum.joomla.org/viewtopic.php?f=618&t=790328
Title: Re: Register during Checkout not working
Post by: GJC Web Design on February 11, 2013, 19:23:09 PM
is this fixed? - successfully registered and redirected to cart



[attachment cleanup by admin]
Title: Re: Register during Checkout not working
Post by: Stonedfury on February 11, 2013, 19:48:52 PM
Turns out it is a MVCOverride and VM javascript problem and I am now looking elsewhere for the solution. I had not even thought about the MVC as it was a part of my install however now that the light is shinning there I have to find out where the problem gets fixed. So for now, it is fixed. I just don't like the fix. It's either lose overrides, or loose sef lol
Title: Re: Register during Checkout not working
Post by: GJC Web Design on February 11, 2013, 20:14:40 PM
Is the overide in the template?
Title: Re: Register during Checkout not working
Post by: PJPJo on February 11, 2013, 23:00:29 PM
Thanks, Thomas,  it was a pain to register at checkout :\
Title: Re: Register during Checkout not working
Post by: Stonedfury on February 21, 2013, 20:47:28 PM
My solution was to turn off MVC and then copy my template files into VM which is a problem during VM updates. So I have a fileBK.php and file.php where as the fileBK.php is a copy of the one I moved. So I can just rename it back if there are no VM template updates.  But VM doesn't follow them MVC/Joomla rules quite right. My templator has never used VM really so all his stuff was and is based off the Joomla rules. However my issue is resolved.