News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Login redirects to profile instead of cart

Started by kratzi, February 02, 2016, 00:59:46 AM

Previous topic - Next topic

kratzi

I am running a testversion on J 3.4.8 and VM 3.0.12.
When a customer is already a registered user and goes to checkout and wants to login he is not redirected to the checkout process but to his profile. This is actually confusing as the customer wants to checkout and not go to his profile. Also in my earlier version J 2.5.28 and VM 2.6.14 the customer is redirected to the cart as it should be.

Is this  wanted and how can I solve this.???

Thank you

kratzi

kratzi

I have yesterday installed a fresh version of VM 2.6.14 and J.2.5.28 and the login feature works good.
This means that there were some changes which however are not customer friendly at all. It does not make any sence why a customer who wants to checkout and is already a customer is redirected to login instead of the cart.

Why is this working in the old VM but not in the new VM 3 any more.


jenkinhill

Quote from: kratzi on February 02, 2016, 00:59:46 AM
When a customer is already a registered user and goes to checkout and wants to login he is not redirected to the checkout process but to his profile.

That is not the default action in VM3 - it is still the same as in VM2, if all the shopper fields are filled already then the address details are displayed in the cart and the shopper continues to checkout.

Are you using the default VM templates?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

on a clean install standard protostar template the login from the cart page login form works perfectly..

you stay on the cart page

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kratzi

Ok I have a clean installation of J 2.5.28 & VM 2.6.14 and J 3.4.8 & VM 3.0.12. In both versions I even do not have installed another template than the original ones.

In both versions when I have a new customer and he goes to checkout and enters data for registration including username and password everything is perfect.
The user finishes the shopping and logs out. But now when the same customer (who is already registered from before) puts products into the cart and clicks on checkout he is redirected to the page where he can either register again or login. When the customer now logs in with username and password he is redirected back to cart in  2.5.28 & VM 2.6.14 but to profile page in J 3.4.8 & VM 3.0.12.

At the moment I only have the installations on my localhost but in case you can not reproduce this I will surely install both versions on a public webspace.

Regards

Kratzi



Jörgen

Hello

i am not sure if this is the solution. But you could always try. I use the slick vm login module for my login and I expetrienced exactly the same thing. When in checkout I was redirected to the account page. I saw that this was the setting for slick login after login. I changed this to checkout and i now have what i want. Check you login module, maybe you have the same issue.

regards

Jörgen @ kreativ fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

jenkinhill

Which leads to the question. Are you using ther Joomla login module instead of VM login? If so then set  Login Redirection Page in module config to Cart - I assume you have a menu link to the cart?

But best is never to use Joomla's mod_login.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Spiros Petrakis

Hi kratzi,

this is fixed for the upcoming vm version, open the user/tmpl/edit_address.php file (or your template override for this file) and replace


$url = JRoute::_ ('index.php?option=com_virtuemart&view='.$rview.$task, $this->useXHTML, $this->useSSL);


with


$url = 'index.php?option=com_virtuemart&view='.$rview.$task;


Joomla templates and extensions development
https://www.yourgeek.gr

kratzi

Thank you Spyros,

This was the solution. It works awesome. You are my hero :D

Spiros Petrakis

Hi Kratzi,

good to know that the fix works for you also, all credit should go to Valérie Isaksen that provided the actual fix.

Afaik a new version will be available soon (3.0.13 or 3.0.14 probably) that will include this fix also.
Joomla templates and extensions development
https://www.yourgeek.gr