Aleksandr_A
Aleksandr_A

Reputation: 350

Prestashop - Bankwire file difference

Is anyone can explain what is the difference between

payment_return.tpl(path ../bankwire/views/templates/hook/payment_return.tpl)

and

payment_execution.tpl (path ../bankwire/views/templates/front/payment_execution.tpl ) ?

Why in payment_execution.tpl I can see CART/ORDER variables(such as country name, order weight and other) in payment_return.tpl I сan't?

Thanks

Upvotes: 1

Views: 213

Answers (1)

Serge P
Serge P

Reputation: 1863

These templates work with different "environment":

  1. payment_execution.tpl assigned in /modules/bankwire/controllers/front/payment.php and have access to all template variables assigned in core files.

  2. payment_return.tpl appears in hook and have access to limited list of variables. In file /modules/bankwire/bankwire.php method hookPaymentReturn($params) you may see it, there you have access to $params array and can assign to template any additional variables that you need.

Upvotes: 1

Related Questions