Jump to content

Edit History

KunnSistemas

KunnSistemas

No me funcionó ninguna de las anteriores,

 

A continuación pongo lo que si me funcionó para PS 1.7.6.9

en classes/order/Orderinvoice.php justo después de

foreach ($products as $row) {

añadir esto:

// Début modif
	if( end($products) === $row ) {
		$row['first_order_message'] = nl2br($order->getFirstMessage());
    }
// Fin modif

y en pdf/invoice.product-tab.tpl añadimos esto al final:

{if isset($order_detail.first_order_message) && $order_detail.first_order_message}

<table id="order_msg" class="product" width="100%">
	<tr>
		<td class="center grey bold" width="20%">
		{l s='Message client' pdf='true'}
		</td>
		<td class="left white" width="80%">
		{$order_detail.first_order_message}
		</td>
	</tr>
</table>

{/if}

Like a charm!

A disfrutar gamberros!

KunnSistemas

KunnSistemas

No me funcionó ninguna de las anteriores,

 

A continuación pongo lo que si me funcionó para PS 1.7.6.9

en classes/order/Orderinvoice.php justo después de foreach ($products as $row) {

foreach ($products as $row) {

añadir esto:

// Début modif
	if( end($products) === $row ) {
		$row['first_order_message'] = nl2br($order->getFirstMessage());
    }
// Fin modif

y en pdf/invoice.product-tab.tpl añadimos esto al final:

{if isset($order_detail.first_order_message) && $order_detail.first_order_message}

<table id="order_msg" class="product" width="100%">
	<tr>
		<td class="center grey bold" width="20%">
		{l s='Message client' pdf='true'}
		</td>
		<td class="left white" width="80%">
		{$order_detail.first_order_message}
		</td>
	</tr>
</table>

{/if}

Like a charm!

A disfrutar gamberros!

×
×
  • Create New...