{"id":12571,"date":"2017-03-07T14:10:18","date_gmt":"2017-03-07T11:10:18","guid":{"rendered":"http:\/\/blog.belvg.com\/?p=12571"},"modified":"2019-09-18T10:48:12","modified_gmt":"2019-09-18T08:48:12","slug":"how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html","title":{"rendered":"How To Manage Module&#8217;s Variables in Emails in Prestashop 1.6 &#8211; 1.7 + ThirtyBees"},"content":{"rendered":"<p>When developing new modules we may have the necessity to add some module&#8217;s data into e-mails. Let&#8217;s consider several approaches how it is possible to implement that:<!--more--><\/p>\n<p>1.&#160;Using the hook <em>actionEmailAddAfterContent<\/em> lets you modify content before sending an e-mail. This method is very user-friendly because a user does not need to edit e-mail template himself since the hook can modify html on the fly.<br \/>\n2. The second approach lets you manage separate variables on your own. This method gives users the possibility to put variables on any place in the e-mail text.<\/p>\n<p>The first approach:<br \/>\nRegister your module in the hook <em>actionEmailAddAfterContent<\/em> and implement the method: <em>hookActionEmailAddAfterContent<\/em><br \/>\nThe hook is called in the <em>Send()<\/em> method of the <em>Mail &#8211; Mail::Send()<\/em> class.<\/p>\n<pre class=\"lang:php decode:true \">public function hookActionEmailAddAfterContent($params) {\r\n        $content = '';\r\n\tif ($params['template'] == 'order_conf') { \/\/ Let's edit content of Order's Confirmation email\r\n\t\t$content .= '&lt;tr class=\"conf_body\" id=\"custom_container\"&gt;\r\n\t\t\t&lt;td bgcolor=\"#f8f8f8\" colspan=\"8\" style=\"border:1px solid #D6D4D4;color:#333;padding:7px 0\"&gt;\r\n\t\t\t\t...Hello World\r\n\t\t\t&lt;\/td&gt;\r\n\t\t&lt;\/tr&gt;'; \/\/ where add custom text\r\n\t}\r\n\t\r\n\t$params['template_html'] = str_replace(\"{products}\", \"{products}\" . $content, $params['template_html']); \/\/ and add text to end of {products} variable\r\n}\r\n<\/pre>\n<p>The best thing is that <em>$params<\/em> gets transmitted via a link, and this lets us modify content in our method.<br \/>\nThe second approach is based on the function <em>OrderHistory::sendEmail()<\/em>, specifically, on this part:<\/p>\n<pre class=\"lang:php decode:true\">...\r\nif ($result['module_name']) {\r\n\t$module = Module::getInstanceByName($result['module_name']);\r\n\tif (Validate::isLoadedObject($module) &amp;&amp; isset($module-&gt;extra_mail_vars) &amp;&amp; is_array($module-&gt;extra_mail_vars)) {\r\n\t\t$data = array_merge($data, $module-&gt;extra_mail_vars);\r\n\t}\r\n}\r\n...\r\n<\/pre>\n<p>Using this implementation, variables will become available only when sending e-mails that are related to the status of the order which has been generated by the module. For that we should:<\/p>\n<p>1. In our module define the variable <em>$extra_mail_vars<\/em>, which will have all available e-mail variables described.<br \/>\n2. Register the module in the hook <em>actionValidateOrder<\/em> to have the possibility to add new values to variables when sending e-mails about new orders.<br \/>\n3. Initialize variables in the constructor to be able to access them when sending e-mails manually from the Backoffice.<\/p>\n<pre class=\"lang:php decode:true \">public $extra_mail_vars = array(\r\n\t'{var1}' =&gt; '',\r\n\t'{var2}' =&gt; '',\r\n\t'{varN}' =&gt; ''\r\n); \/\/ available email's variables\r\n\r\npublic function __construct()\r\n{\r\n\t....\r\n\t\r\n\tif (Tools::isSubmit('id_order')) { \/\/case when Employee send email manually\r\n\t\t$awesome_data = BelvgAwesomeModule::getDataByOrderId(Tools::getValue('id_order')); \/\/ function for get values of variables bases on Order ID\r\n\t\t\r\n\t\t$this-&gt;extra_mail_vars['{var1}'] = $awesome_data['var1']; \/\/ apply value to variable\r\n\t\t$this-&gt;extra_mail_vars['{var2}'] = $awesome_data['var2'];\r\n\t\t$this-&gt;extra_mail_vars['{varN}'] = $awesome_data['varN'];\r\n\t}\r\n}\r\n\r\npublic function hookActionValidateOrder($params)\r\n{ \/\/for cases when email sends automatically for new orders\r\n\tif ($params['order']-&gt;module == 'belvg_awesomemodule') {\r\n\t\t$awesome_data = BelvgAwesomeModule::getDataByOrderId($params['order']-&gt;id);\r\n\t\t\r\n\t\t$this-&gt;extra_mail_vars['{var1}'] = $awesome_data['var1'];\r\n\t\t$this-&gt;extra_mail_vars['{var2}'] = $awesome_data['var2'];\r\n\t\t$this-&gt;extra_mail_vars['{varN}'] = $awesome_data['varN'];\r\n\t}\r\n}\r\n....\r\n<\/pre>\n<p>We should also note that since Prestashop 1.7&#160; the Mail class has been given many new hooks, but the above approaches are also good for Prestashop 1.6 &#8211; 1.7, and also for the ThirtyBees fork project.<\/p>\n","protected":false},"excerpt":{"rendered":"When developing new modules we may have the necessity to add some module&#8217;s data into &#8230;","protected":false},"author":12,"featured_media":12572,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,461,521],"tags":[],"class_list":["post-12571","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-prestashop","category-prestashop-development","category-prestashop-webdesign","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"When developing new modules we may have the necessity to add some module\u2019s data into e-mails. Let&#039;s consider several approaches how it is possible to implement that:\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Aliaksandr Simonchik\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#article\",\"name\":\"Managing Module's Variables in Emails Prestashop 1.6;1.7 | BelVG Blog\",\"headline\":\"How To Manage Module&#8217;s Variables in Emails in Prestashop 1.6 &#8211; 1.7 + ThirtyBees\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/How-To-Manage-Modules-Variables-in-Emails-in-Prestashop-1.6-1.7-ThirtyBees.jpg\",\"width\":770,\"height\":209,\"caption\":\"How To Manage Module's Variables in Emails in Prestashop 1.6 - 1.7 + ThirtyBees\"},\"datePublished\":\"2017-03-07T14:10:18+02:00\",\"dateModified\":\"2019-09-18T10:48:12+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":9,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#webpage\"},\"articleSection\":\"Prestashop, Prestashop Development, PrestaShop Webdesign, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"position\":2,\"name\":\"Prestashop\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#listItem\",\"name\":\"How To Manage Module&#8217;s Variables in Emails in Prestashop 1.6 &#8211; 1.7 + ThirtyBees\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#listItem\",\"position\":3,\"name\":\"How To Manage Module&#8217;s Variables in Emails in Prestashop 1.6 &#8211; 1.7 + ThirtyBees\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik\",\"name\":\"Aliaksandr Simonchik\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Aliaksandr Simonchik\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html\",\"name\":\"Managing Module's Variables in Emails Prestashop 1.6;1.7 | BelVG Blog\",\"description\":\"When developing new modules we may have the necessity to add some module\\u2019s data into e-mails. Let's consider several approaches how it is possible to implement that:\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/How-To-Manage-Modules-Variables-in-Emails-in-Prestashop-1.6-1.7-ThirtyBees.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html\\\/#mainImage\",\"width\":770,\"height\":209,\"caption\":\"How To Manage Module's Variables in Emails in Prestashop 1.6 - 1.7 + ThirtyBees\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#mainImage\"},\"datePublished\":\"2017-03-07T14:10:18+02:00\",\"dateModified\":\"2019-09-18T10:48:12+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Managing Module's Variables in Emails Prestashop 1.6;1.7 | BelVG Blog","description":"When developing new modules we may have the necessity to add some module\u2019s data into e-mails. Let's consider several approaches how it is possible to implement that:","canonical_url":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#article","name":"Managing Module's Variables in Emails Prestashop 1.6;1.7 | BelVG Blog","headline":"How To Manage Module&#8217;s Variables in Emails in Prestashop 1.6 &#8211; 1.7 + ThirtyBees","author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2017\/03\/How-To-Manage-Modules-Variables-in-Emails-in-Prestashop-1.6-1.7-ThirtyBees.jpg","width":770,"height":209,"caption":"How To Manage Module's Variables in Emails in Prestashop 1.6 - 1.7 + ThirtyBees"},"datePublished":"2017-03-07T14:10:18+02:00","dateModified":"2019-09-18T10:48:12+02:00","inLanguage":"en-US","commentCount":9,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#webpage"},"articleSection":"Prestashop, Prestashop Development, PrestaShop Webdesign, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","position":2,"name":"Prestashop","item":"https:\/\/belvg.com\/blog\/category\/prestashop","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#listItem","name":"How To Manage Module&#8217;s Variables in Emails in Prestashop 1.6 &#8211; 1.7 + ThirtyBees"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#listItem","position":3,"name":"How To Manage Module&#8217;s Variables in Emails in Prestashop 1.6 &#8211; 1.7 + ThirtyBees","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author","url":"https:\/\/belvg.com\/blog\/author\/alex-simonchik","name":"Aliaksandr Simonchik","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Aliaksandr Simonchik"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#webpage","url":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html","name":"Managing Module's Variables in Emails Prestashop 1.6;1.7 | BelVG Blog","description":"When developing new modules we may have the necessity to add some module\u2019s data into e-mails. Let's consider several approaches how it is possible to implement that:","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2017\/03\/How-To-Manage-Modules-Variables-in-Emails-in-Prestashop-1.6-1.7-ThirtyBees.jpg","@id":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html\/#mainImage","width":770,"height":209,"caption":"How To Manage Module's Variables in Emails in Prestashop 1.6 - 1.7 + ThirtyBees"},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html#mainImage"},"datePublished":"2017-03-07T14:10:18+02:00","dateModified":"2019-09-18T10:48:12+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"12571","title":"Managing Module's Variables in Emails Prestashop 1.6;1.7 | #site_title","description":"When developing new modules we may have the necessity to add some module\u2019s data into e-mails.\r\nLet's consider several approaches how it is possible to implement that:","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:37:21","updated":"2026-11-03 18:37:21"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\" title=\"Prestashop\">Prestashop<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow To Manage Module\u2019s Variables in Emails in Prestashop 1.6 \u2013 1.7 + ThirtyBees\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Prestashop","link":"https:\/\/belvg.com\/blog\/category\/prestashop"},{"label":"How To Manage Module&#8217;s Variables in Emails in Prestashop 1.6 &#8211; 1.7 + ThirtyBees","link":"https:\/\/belvg.com\/blog\/how-to-manage-modules-variables-in-emails-in-prestashop-1-6-1-7-thirtybees.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/12571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=12571"}],"version-history":[{"count":-4,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/12571\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/12572"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=12571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=12571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=12571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}