Hi,
Thanks Nicolas for clarification but i think your have misunderstood my question. I will try to describe what i want.
I do have menu with login form. In that form, as for now, in hidden input i have set:
<?php echo base64_encode($_SERVER['HTTP_REFERER']); ?>
So whenever user login he is redirected back to hes previous page. It works fine!
Now the idea is to have 2 steps checkout.
First step "Cart view" and second step" All other views"
When user is on first step and tries to go to next step he will be redirected to that login form and after succesful login redirected to step 2 ( same would apply to registration form ).
Now, i know how to do everything except how to find if user has come from checkout step 1 OR he just tries to login through some site "Login" button...
I can't redirect to checkout step 2 after every login cause it would make no sense for user. So as for know i see 2 solutions. Create 2 login forms, one for checkout and other for simple site login. Or to find a way to get previous page menu item id, in that way i will be able to set different redirection based on ID after login/registration...
I know it is outside hikashop support so you may replay or not to this, or you can just give some tip as experienced developer here
Kind Regards