Jump to content

Variable List?


Recommended Posts

Not that I am aware of, you have to define variables especially for the emails, you can see for example /classes/PaymentModule (around line 287)

                   $data = array(

                       '{firstname}' => $customer->firstname,
                       '{lastname}' => $customer->lastname,
                       '{email}' => $customer->email,
                       '{delivery_company}' => $delivery->company,
                       '{delivery_firstname}' => $delivery->firstname,
                       '{delivery_lastname}' => $delivery->lastname,
                       '{delivery_address1}' => $delivery->address1,
                       '{delivery_address2}' => $delivery->address2,

Link to comment
Share on other sites

Thank you for your answer.
I would for example need the first name, last name, email address in the bankwire payment module (of the prestashop)
How can I insert this variables?



Thank you for your help!
Something like: {$firstname}
ist not working.

Best
V.

Link to comment
Share on other sites

You can only use variables that are actually assigned a value, if you didn't declare $firstname anywhere, it will no have any value in the mail template.

You can look at other payment modules (like paypal's redirect.php / tpl) to see how the retrieve values like firstname and assign them to variables.

Link to comment
Share on other sites

×
×
  • Create New...