- Posts: 50
- Thank you received: 1
Checkout 1st Page Empty After Login
- hawkeyentjc
-
Topic Author
- Offline
Less
More
13 years 11 months ago - 13 years 11 months ago #69909
by hawkeyentjc
Checkout 1st Page Empty After Login was created by hawkeyentjc
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.
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: 13 years 11 months ago by hawkeyentjc.
Please Log in or Create an account to join the conversation.
13 years 11 months ago #69998
by Xavier
Replied by Xavier on topic Re: Checkout 1st Page Empty After Login
Hi,
You can edit the view "checkout / step" in HikaShop > Display > Views, and add these lines in the file:
You can edit the view "checkout / step" in HikaShop > Display > Views, and add these lines in the file:
Code:
$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.209 seconds