Jump to content

Edit History

Mian Waqas

Mian Waqas

Hi,

i am trying to add  "if a customer is new or not" on pdf invoice and delivery slip , i am trying to do it by checking if customer had orders greater then 1 order, but this is not working and i am not sure how i will make it work.

 

i am writing this code in header.tpl inside the pdf folder

{if (count($customer_orders) >1) }
            <td>old customer</td>
            {else}
                <td">new customer</td>

        {/if}

i am using prestashop 1.7.6.4

Thanks in advance

Mian Waqas

Mian Waqas

Hi,

i am trying to add  "if a customer is new or not" on pdf invoice and delivery slip , i am trying to do it by checking if customer had orders greater then 1 order, but this is not working and i am not sure how i will make it work.

 

i am writing this code in header.tpl inside the pdf folder

{if (count($customer_orders) >1) }
            <td>old customer</td>
            {else}
                <td">new customer</td>

        {/if}

 

Thanks in advance

×
×
  • Create New...