Last screen of the checkout

  • Posts: 48
  • Thank you received: 0
12 years 9 months ago #47244

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: 12 years 9 months ago by guido. Reason: adding infi

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

  • Posts: 13201
  • Thank you received: 2322
12 years 9 months ago #47261

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:

?><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: 12 years 9 months ago by Xavier.

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

  • Posts: 48
  • Thank you received: 0
12 years 9 months ago #47283

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.

  • Posts: 13201
  • Thank you received: 2322
12 years 9 months ago #47288

Your PHP should be like that:

<?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.

  • Posts: 48
  • Thank you received: 0
12 years 9 months ago #47291


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

Guido

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
12 years 9 months ago #47292

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.

  • Posts: 48
  • Thank you received: 0
12 years 9 months ago #47295


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.

Attachments:
Last edit: 12 years 9 months ago by guido.

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

  • Posts: 48
  • Thank you received: 0
12 years 9 months ago #47298

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.096 seconds
Powered by Kunena Forum