tjabo Posted February 13, 2011 Share Posted February 13, 2011 Hello,does there exist a list of the variables I can use in the prestashop?For example, which variables I can use in the email templates?Thank you for the help,bestV. Link to comment Share on other sites More sharing options...
tomerg3 Posted February 13, 2011 Share Posted February 13, 2011 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 More sharing options...
tjabo Posted February 18, 2011 Author Share Posted February 18, 2011 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.BestV. Link to comment Share on other sites More sharing options...
tomerg3 Posted February 18, 2011 Share Posted February 18, 2011 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 More sharing options...
tjabo Posted February 18, 2011 Author Share Posted February 18, 2011 thanks for the answer I'll check that.bestV. Link to comment Share on other sites More sharing options...
Recommended Posts