Jump to content

Prestashop (1.6.1.4) non aggiunge la nota al Documento Fattura! perchè?


GrandeLupo
 Share

Recommended Posts

Prestashop (1.6.1.4) non aggiunge la nota al Documento Fattura!

 

Quando uso la versione 1.5.4.1 di prestashop, e ho esigenza di aggiungere una nota al documento di fattura, semplicemente faccio aggiungi nota, salvo e questa appare nel documento scaricabile in pdf.

 

 

Adesso, con la versione 1.6.1.4, se aggiungo la nota e salvo, non appare nulla nel documento.

Come mai?

E' possibile in qualche modo sistemare questa cosa?

 

grazie a tutti

Edited by GrandeLupo (see edit history)

Share this post


Link to post
Share on other sites

Provare

{if isset($order_invoice->note) && $order_invoice->note}
<div style="line-height: 1pt"> </div>
<table style="width: 100%">
    <tr>
        <td style="width: 15%"></td>
        <td style="width: 85%">{$order_invoice->note|nl2br}</td>
    </tr>
</table>
{/if}

Share this post


Link to post
Share on other sites

Ciao,

questo è il mio file invoice.tpl

this is my invoice.tpl file

{*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2015 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}{$style_tab}
<table width="100%" id="body" border="0" cellpadding="0" cellspacing="0" style="margin:0;">
	<!-- Invoicing -->
	<tr>
		<td colspan="12">			{$addresses_tab}		</td>
	</tr>	<tr>
		<td colspan="12" height="30"> </td>
	</tr>	<!-- TVA Info -->
	<tr>
		<td colspan="12">			{$summary_tab}		</td>
	</tr>	<tr>
		<td colspan="12" height="20"> </td>
	</tr>	<!-- Product -->
	<tr>
		<td colspan="12">			{$product_tab}		</td>
	</tr>	<tr>
		<td colspan="12" height="10"> </td>
	</tr>	<!-- TVA -->
	<tr>
		<!-- Code TVA -->
		<td colspan="6" class="left">			{$tax_tab}		</td>
		<td colspan="1"> </td>
		<!-- Calcule TVA -->
		<td colspan="5" rowspan="5" class="right">			{$total_tab}		</td>
	</tr>	<tr>
		<td colspan="12" height="10"> </td>
	</tr>	<tr>
		<td colspan="6" class="left">			{$payment_tab}		</td>
		<td colspan="1"> </td>
	</tr>	<tr>
		<td colspan="12" height="10"> </td>
	</tr>	<tr>
		<td colspan="7" class="left small">			<table>
				<tr>
					<td>
						<p>{$legal_free_text|escape:'html':'UTF-8'|nl2br}</p>
					</td>
				</tr>
			</table>		</td>
	</tr>
		<!-- Hook -->
	{if isset($HOOK_DISPLAY_PDF)}
	<tr>
		<td colspan="12" height="30"> </td>
	</tr>	<tr>
		<td colspan="2"> </td>
		<td colspan="10">
			{$HOOK_DISPLAY_PDF}
		</td>
	</tr>
	{/if}</table>

in quale posizione aggiungo il tuo codice?

what position would add your code?

{if isset($order_invoice->note) && $order_invoice->note}
<div style="line-height: 1pt"> </div>
<table style="width: 100%">
    <tr>
        <td style="width: 15%"></td>
        <td style="width: 85%">{$order_invoice->note|nl2br}</td>
    </tr>
</table>
{/if}

Puoi tu riscrivere il codice completo? in questo modo sostituisco interamente tutto il file?

Grazie.

Can you re-write the complete code? in this way completely I replace the entire file?
Thank you

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More