Any questions about Documents Sellers, post it here .

Redirection to cart page

More
12 years 9 months ago #14488 by Asim
Redirection to cart page was created by Asim
hi,

Having little problem here while testing the component on local server as mentioned in the point 2 below. Please have a look.

In the configuration settings I set the "Purchase Document" to register user.
1.when "order it" button is clicked it opens up the joomla user login form page.. which is fine
2. here is the little problem. If I click the long in info WITHOUT entering any info into the user and pass field. It still redirect to the cart page with the customer info form. And Joomla error message "Username and password do not match or you do not have an account yet." shows.It should stay there on login form without adding any product to cart unless user is already registered and filling the proper info in the login form.

Any idea why it is behaving that way. I'll appreciate your support.

Thanks

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #14504 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Redirection to cart page

2. here is the little problem. If I click the long in info WITHOUT entering any info into the user and pass field. It still redirect to the cart page with the customer info form. And Joomla error message "Username and password do not match or you do not have an account yet." shows.It should stay there on login form without adding any product to cart unless user is already registered and filling the proper info in the login form.


=> I am afraid of this is a bug in Joomla core code and we cannot change it. Basically, as you can see, the Login Page and Login process is handled by Joomla core com_users component. DMS just send a parameter to tell Joomla that after users successfully logged in, redirect users to the given URL. In your case, if you don't enter correct login information, Joomla should keep you in the page but it redirects users to DMS page which is not good. As I said, it is a Joomla core component and in this case, we cannot fix it (I will report this bug to Joomla) .

Hope my explanation is clear to you .

Regards,

Tuan

Please Log in or Create an account to join the conversation.