kmorgen Posted October 18, 2014 Share Posted October 18, 2014 Is there anyway to include the text from the Terms and Condition CMS page into the Order Confirmation e-mail? Obviously I could copy&paste the content, but quite a hassle with many languages and occasional changes. A link to the terms page is not legal here. The actual content must appear in the mail. Preferred solution: Order Config mail grabs the text from the Terms page in the selected language and include in the email. Alternative attached as PDF Thanks in advance! Link to comment Share on other sites More sharing options...
eleazar Posted October 19, 2014 Share Posted October 19, 2014 Hi Kim, try this:First you have to create a new variable available for order_conf.Open /classes/Mail.php:Look for assembly of $template_vars in function send(), line 282 (Prestashop 1.5x), line 301 (Prestashop 1.5x). Insert $template_vars['{cms_conditions}'] = CMS::getContentFromId($configuration['PS_CONDITIONS_CMS_ID'], $id_lang); Open /mails/order_conf.html and insert the new variable at the end directly above the last 2 statements where body-tag and table is closed: </tbody> </table> Should look like this: <tr> <td align="left">{cms_conditions}</td> </tr> </tbody> </table> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now