Hi,
1. If you only have the "login" view on the current step of the checkout, the checkout will automatically redirect to the next step after the login, which will fully refresh the page. You can configure the views and steps of your Checkout workflow under the Checkout tab of the HikaShop configuration.
2. You can use the "access level" setting of your menu item to restrict the access to the menu item to only guest users. In that case, when a logged in user access the menu item, Joomla should deny him the access.
3. You can't do that during the add to cart process. However, what you can do is this:
- configure a menu item of the type "HikaShop checkout" and restrict it to logged in users
- select that menu item in the "force a menu on checkout" setting of the HikaShop configuration
- configure the HikaShop cart notification plugin via the Joomla plugins manager to redirect to the checkout after a successful add to cart.
That way, add clicking on the add to cart button, the user will be directed to the checkout, and if he is not logged in, he will be redirected to the login form of Joomla.
4. the simplest is to edit the file show.php from the view "checkout" via the menu Display>Views and there add such code at the end:
<script>
window.checkout.submitStep = function() {
alert('you clicked on the next/finish button');
};
</script>
This code will redefine the submitStep function from the checkout.js file so that it will display the message "you clicked on the next/finish button" when you click on the next/finish button instead of submitting the data of the current step to go to the next step.