Hi,
I have tried searching for "step" in the main search box as well as the 'Display' search box and nothing comes up. I get the message 'Your search did not match any documents'
I'm not sure where I need to insert that code you provided so I've contacted the Easy Social support team, who have helped me do this but they are requesting I contact the Hikashop support team to give them code so that they can use some of the code to detect if the current user already "Add cart" at least 1 item, so I can redirect to checkout page, else just redirect back to community page.
This is the reply I have got from my EasySocial support team:-
_________________________________________________________________
Hey lan,
Yes, I also didn't get what his said the file location, I feel curious why he do want directly list out this file path location -> /public_html/components/com_hikashop/views/checkout/tmpl/step.php , I already added above code into this file, so if that is guest user access the checkout page, it will redirect to Easysocial login page.
Then I've tried to check and see is it possible to do it, but unfortunately that was not possible to achieve this, because system do not know this user is it want to click from checkout or this user only want to login from your site community site.
But the possible way is no matter what, when the user login from your site, all redirect to checkout page, I am not really is it you accept this ideas or not.
And another way is consult with Hikashop developer and see whether I can use some of the code to detect if the current user already "Add cart" at least 1 item, so I can redirect to checkout page, else just redirect back to community page.
________________________________________________________________________________________
So I do not want all users to be redirected to the checkout page on logging in. However, If a non-registered user attempts to buy a product, adds to cart and clicks 'Proceed to checkout', only in that case, I would like the user to be presented with the EasySocial login page and on successful login, they should be redirected to the 'Checkout page'.
Please can you assist me with this?
Thanks
Ian