Skip to main content

Last screen of the checkout

More
14 years 5 months ago - 14 years 5 months ago #47244 by guido
In the last screen of the checkout, the customer sees what is has to do.
Is it possible to have a button, when its pressed you go to another page on the website.
Now there is nothing and the customer is possibly waiting for something.

With regards,

Guido
Last edit: 14 years 5 months ago by guido. Reason: adding infi

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

More
14 years 5 months ago - 14 years 5 months ago #47261 by Xavier
Hi guido,

You can add a button by this way:
Go in HikaShop > Display > views, and edit the view "checkout / end.php" in the good template.
Then add this line:
Code:
?><input class="button" type="button" value="<?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?>" onClick="document.location='index.php';"/><?php

Under the two existing "echo".

You can change the text, and set the location as you want.
Last edit: 14 years 5 months ago by Xavier.

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

More
14 years 5 months ago #47283 by guido
Thanks Xavier.

But i'm a nono with php, could you give an example where to place that line.

Guido

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

More
14 years 5 months ago #47288 by Xavier
Your PHP should be like that:
Code:
<?php if(empty($this->html)){ echo JText::_('THANK_YOU_FOR_PURCHASE'); ?><input class="button" type="button" value="<?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?>" onClick="document.location='index.php';"/><?php }else{ echo $this->html; ?><input class="button" type="button" value="<?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?>" onClick="document.location='index.php';"/><?php } $this->nextButton = false;

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

More
14 years 5 months ago #47291 by guido

i suppose i have to insert above code.
But where in that file, i suppose it is this file, see attachment.

Guido

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

More
14 years 5 months ago #47292 by Xavier
It's not this file.
You have to edit the file "end.php" in the view "checkout".

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

More
14 years 5 months ago - 14 years 5 months ago #47295 by guido

do you mean this file.

and if so, do i have to add the code at the bottom.

i think its this file, i changed it, but nothing to see at the checkout screen.
Last edit: 14 years 5 months ago by guido.

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

More
14 years 5 months ago #47298 by guido
i found it, wrong i searched in the wrong template, found it and it works.

Thanks

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

Time to create page: 0.221 seconds
Powered by Kunena Forum