Jump to content

Email templater error parsing product customization


Merymanc

Recommended Posts

Hi at all! i have this problem starting on my email tempalte and i cannot reach to resolve it! i have already seen other topic but i haven't reach to resolve. My prestashop version is 1.7.8 built.

In the order customer confirmation when my product have a customization appear the html text on the product details!" Why??? i cannot reach to understand why and where i must change something. For the ps_emailalert module instead the email appera correctly. Someone can help me?

image.png.2fe06b97f08ecd5a1934b90dac79e635.png

Link to comment
Share on other sites

Could you please check /themes/yourtheme/mails/lang/order_conf_product_list.tpl

(or if there isn't one in themes, then just /mails/lang/order_conf_product_list.tpl)

Take a look at lines 49-51, they should be:

{foreach $product['customization'] as $customization}
	{$customization['customization_text']}
{/foreach}

Can you confirm that it's exactly as above without any filters/modifiers on {$customization['customization_text']} ?

Edited by lordignus (see edit history)
Link to comment
Share on other sites

The code is this:

<table class="table">
            <tr>
                <td width="5">&nbsp;</td>
                <td>
                    <font size="2" face="Open-sans, sans-serif" color="#555454">
                        <strong>{$product['name']}</strong>
                        {if count($product['customization']) == 1}
                            <br>
                            {foreach $product['customization'] as $customization}
                                {$customization['customization_text'] }
                            {/foreach}
                        {/if}

                        {hook h='displayProductPriceBlock' product=$product type="unit_price"}
                    </font>
                </td>
                <td width="5">&nbsp;</td>
            </tr>
        </table>

Link to comment
Share on other sites

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...