Jump to content

Añadir id de cliente sólo en el albarán. [SOLUCIONADO]


Recommended Posts

Hola @Albarracín,

pues depende de donde lo quieras poner, pero por ejemplo puedes editar el archivo pdf/delivery-slip.summary-tab.tpl y si por ejemplo tienes esto:

<table id="summary-tab" width="100%">
	<tr>
		<th class="header small" valign="middle">{l s='Order Reference' d='Shop.Pdf' pdf='true'}</th>
		<th class="header small" valign="middle">{l s='Order Date' d='Shop.Pdf' pdf='true'}</th>
		{if isset($carrier)}
			<th class="header small" valign="middle">{l s='Carrier' d='Shop.Pdf' pdf='true'}</th>
		{/if}
	</tr>
	<tr>
		<td class="center small white">{$order->getUniqReference()}</td>
		<td class="center small white">{dateFormat date=$order->date_add full=0}</td>
		{if isset($carrier)}
			<td class="center small white">{$carrier->name}</td>
		{/if}
	</tr>
</table>

Cambialo por esto, fijate en la llamada a $order->id_customer:

<table id="summary-tab" width="100%">
	<tr>
		<th class="header small" valign="middle">{l s='Order Reference' d='Shop.Pdf' pdf='true'}</th>
		<th class="header small" valign="middle">{l s='Order Date' d='Shop.Pdf' pdf='true'}</th>
		{if isset($carrier)}
			<th class="header small" valign="middle">{l s='Carrier' d='Shop.Pdf' pdf='true'}</th>
		{/if}
      <th class="header small" valign="middle">{l s='Customer' d='Shop.Pdf' pdf='true'}</th>
	</tr>
	<tr>
		<td class="center small white">{$order->getUniqReference()}</td>
		<td class="center small white">{dateFormat date=$order->date_add full=0}</td>
		{if isset($carrier)}
			<td class="center small white">{$carrier->name}</td>
		{/if}
      <td class="center small white">{$order->id_customer}</td>
	</tr>
</table>

 

No está testeado.

 

OJO, hazte un backup.

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

  • Albarracín changed the title to Añadir id de cliente sólo en el albarán. [SOLUCIONADO]

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