Jump to content

Prestashop 1.7.3.x


Jakub Jirák

Recommended Posts

Hi there,

I want to add one field to PDF - it works fine but I cannot edit added field in translations. Generating PDF works fine, but now it can handle only one language for added field.

 

<table id="payment-tab" width="100%">
	<tr>
		<td class="payment center small grey bold" width="44%">{l s='Invoice info' d='Shop.Pdf' pdf='true'}</td>
		<td class="payment left white" width="56%" align="right">{dateFormat date=$order->some_new_info full=0}</td>
	</tr>
</table>

But I cannot see added field(Test field abcA) in prestashop administration to edit language mutations.

 

Thank you for help.

Link to comment
Share on other sites

{l s='Invoice info' d='Shop.Pdf' pdf='true'}

This is translate function of Prestashop, So you can see it in Translation of Backoffice

{dateFormat date=$order->some_new_info full=0}

This is NOT translate function, it is a Smarty function, read more: https://devdocs.prestashop.com/1.7/modules/creation/module-translation/

Try to use this code block:

{assign var='date_a' $order->some_new_info|dateFormat}
{l s='Date: %1$s!' sprintf=$date_a d='Shop.Pdf' pdf='true'}

 

Link to comment
Share on other sites

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...