Checkout 1st Page Empty After Login

  • Posts: 50
  • Thank you received: 1
  • Hikashop Business
11 years 6 months ago #69909

Here's my advanced checkout workflow:
Checkout Step #1 = Login
Checkout Step #2 = Address, Payment, Shipping, Cart

Scenario #1 - Login using Joomla module
After I login through the Joomla module and add-to-cart some items, I click "Checkout". But once I click checkout, it will appear an empty blank page with a "Next" button. After I click "Next", it goes to Checkout Page #2.

Scenario #2 - Login through checkout
But if I'm not logged in when I click "Checkout", then it works normally by displaying Checkout Page #1 (Login). After I do the Login, once again it displays an empty blank page with a "Next" button. After I click "Next", then it goes to Checkout Page #2.

Is there any way to solve the Scenario #1 and #2 problem?
If you need the website address, I can PM you. Thanks.

Last edit: 11 years 6 months ago by hawkeyentjc.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #69998

Hi,

You can edit the view "checkout / step" in HikaShop > Display > Views, and add these lines in the file:

	$user = hikashop_loadUser();
	if($user != null && $this->step == 0){
		?>
		<script type="text/javascript">
		document.location.href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step+1).$url_itemid); ?>";
		</script>
		<?php
	}

The following user(s) said Thank You: hawkeyentjc

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

Time to create page: 0.068 seconds
Powered by Kunena Forum