checkout/end.php

  • Posts: 70
  • Thank you received: 3
5 years 10 months ago #302040

-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.1
-- PHP version -- : 7.1

I'm trying to understand how to modify checkout/end.php.





The THANK_YOU_FOR_PURCHASE can be found in the language hikashop.ini and can be seen below on the last of three lines.







Where is the rest of it coming from??

Attachments:
Last edit: 5 years 10 months ago by virusys.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
5 years 10 months ago #302052

Hi,

Since $this->html is not empty, it's not that THANK_YOU_FOR_PURCHASE which you see there.
The THANK_YOU_FOR_PURCHASE you see comes from the plugins/hikashoppayment/XXX/XXX_end.php file of your payment plugin where XXX is the folder name of your payment plugin.

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

  • Posts: 70
  • Thank you received: 3
5 years 10 months ago #302059

Thanks Nicolas - now I think I get it.

RE: the "Return url" parameter of the specific configuration section of the payment plugins - is this url intended to be a branch point where end.php never executes and you see the "Return url" instead at the end of the process? Like a custom Thank You page?

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
5 years 10 months ago #302060

Hi,

It's something like that.
It's a bit more complex.

First, you have the end.php
It can either display a generic thank you message or some HTML coming from the payment plugin.
In most cases, payment plugins will use that to give the HTML of a form or a URL which will redirect to the payment gateway. But if the payment plugin is offline ( like check, banktransfer, etc) it will display its HTML from its end.php file (if any), and if a "return URL" is set in that offline payment plugin, then it will direct there instead of displaying its HTML.

Second, you have the after_end.php
This one is used after a customer returns from a payment gateway (after the payment).
It can either display a generic thank you message. And if the "return URL" parameter of the payment method is set, then it will redirect to it instead of displaying after_end.

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

  • Posts: 70
  • Thank you received: 3
5 years 10 months ago #302091

OK - perfect.

Thanks very much for the explanation! It helps to understand how things work.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum