Add Variable to Plugin Check $this->information.

  • Posts: 26
  • Thank you received: 0
10 years 6 months ago #156149

I would like to able to add the order number within the text in the Check Payment Plugin. I can see the the two files in the plugin folder, however not sure how to add the variable. I wish to place the order no where the %s is on the image:



Many Thanks

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 6 months ago #156170

Hi,

That should already be the case unless you changed the line:
JText::sprintf('INCLUDE_ORDER_NUMBER_TO_CHECK',$this->order_number).'<br/>'.
in the file plugins/hikashoppayment/check/check_end.php

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

  • Posts: 26
  • Thank you received: 0
10 years 6 months ago #156220

Hi Nicolas,

its the text in the plugin settings in the backend that I want to add the variable to, not the ones that take their data from the language files....

$this->information;

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 6 months ago #156229

In that case, you need to change the code:
$this->information

to:
sprintf($this->information,$this->order_number)

in that same file.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum