Jump to content

Edit History

Prestafan33

Prestafan33

Bien, lo he estado mirando con más detenimiento. Creo que el archivo que hay que modificar no es el que te he puesto, sino que es la plantilla PDF, que estaría en /pdf/invoice.product-tab.tpl. Es posible que dentro de tu tema tengas este mismo directorio. Si es así, las modificaciones deberías hacerlas ahí (en /theme/nombre-de-tu-tema/pdf/invoice.product-tab.tpl. Si no tienes ese directorio, deberías copiar el directorio /pdf/ con todo su contenido dentro de la carpeta de tu tema, y luego ya ahí modificar el archivo invoice.product-tab.tpl.

Una vez lo tengas ubicado, alrededor de la línea 30 tendrías:

<th class="product header small" width="{$layout.product.width}%">{l s='Product' d='Shop.Pdf' pdf='true'}</th>

... y deberías cambiarlo por:

<th class="product header small" width="{$layout.product.width}%">{l s='ISBN' d='Shop.Pdf' pdf='true'}</th>

y luego en la línea 54:

{if $display_product_images}
  <table width="100%">
    <tr>
      <td width="15%">
        {if isset($order_detail.image) && $order_detail.image->id}
        {$order_detail.image_tag}
        {/if}
      </td>
      <td width="5%">&nbsp;</td>
      <td width="80%">
        {$order_detail.product_name}
      </td>
    </tr>
  </table>
  {else}
  {$order_detail.product_name}
 {/if}

... modificarlo así:

{if $display_product_images}
  <table width="100%">
    <tr>
      <td width="15%">
        {if isset($order_detail.image) && $order_detail.image->id}
        {$order_detail.image_tag}
        {/if}
      </td>
      <td width="5%"> </td>
      <td width="80%">
        {$order_detail.product_isbn}
      </td>
    </tr>
  </table>
  {else}
  {$order_detail.product_isbn}
 {/if}

No lo he probado, pero si en los productos de $order_detail va incluido el ISBN (que creo que sí), debería funcionar.

Prestafan33

Prestafan33

Bien, lo he estado mirando con más detenimiento. Creo que el archivo que hay que modificar no es el que te he puesto, sino que es la plantilla PDF, que estaría en /pdf/invoice.product-tab.tpl. Es posible que dentro de tu tema tengas este mismo directorio. Si es así, las modificaciones deberías hacerlas ahí (en /theme/nombre-de-tu-tema/pdf/invoice.product-tab.tpl. Si no tienes ese directorio, deberías copiar el directorio /pdf/ con todo su contenido dentro de la carpeta de tu tema, y luego ya ahí modificar el archivo invoice.product-tab.tpl.

Una vez lo tengas ubicado, alrededor de la línea 30 tendrías:

<th class="product header small" width="{$layout.product.width}%">{l s='Product' d='Shop.Pdf' pdf='true'}</th>

... y deberías cambiarlo por:

<th class="product header small" width="{$layout.product.width}%">{l s='ISBN' d='Shop.Pdf' pdf='true'}</th>

y luego en la línea 54:

{if $display_product_images}
  <table width="100%">
    <tr>
      <td width="15%">
        {if isset($order_detail.image) && $order_detail.image->id}
        {$order_detail.image_tag}
        {/if}
      </td>
      <td width="5%">&nbsp;</td>
      <td width="80%">
        {$order_detail.product_name}
      </td>
    </tr>
  </table>
  {else}
  {$order_detail.product_name}
 {/if}

... modificarlo así:

{if $display_product_images}
  <table width="100%">
    <tr>
      <td width="15%">
        {if isset($order_detail.image) && $order_detail.image->id}
        {$order_detail.image_tag}
        {/if}
      </td>
      <td width="5%">&nbsp;</td>
      <td width="80%">
        {$order_detail.isbn}
      </td>
    </tr>
  </table>
  {else}
  {$order_detail.isbn}
 {/if}

No lo he probado, pero si en los productos de $order_detail va incluido el ISBN (que creo que sí), debería funcionar.

Prestafan33

Prestafan33

Bien, lo he estado mirando con más detenimiento. Creo que el archivo que hay que modificar no es el que te he puesto, sino que es la plantilla PDF, que estaría en /pdf/invoice.product-tab.tpl. Es posible que dentro de tu tema tengas este mismo directorio. Si es así, las modificaciones deberías hacerlas ahí (en /theme/nombre-de-tu-tema/pdf/invoice.product-tab.tpl. Si no tienes ese directorio, deberías copiarlo el directorio /pdf/ con todo su contenido dentro de la carpeta de tu tema.

Una vez lo tengas ubicado, alrededor de la línea 30 tendrías:

<th class="product header small" width="{$layout.product.width}%">{l s='Product' d='Shop.Pdf' pdf='true'}</th>

... y deberías cambiarlo por:

<th class="product header small" width="{$layout.product.width}%">{l s='ISBN' d='Shop.Pdf' pdf='true'}</th>

y luego en la línea 54:

{if $display_product_images}
  <table width="100%">
    <tr>
      <td width="15%">
        {if isset($order_detail.image) && $order_detail.image->id}
        {$order_detail.image_tag}
        {/if}
      </td>
      <td width="5%">&nbsp;</td>
      <td width="80%">
        {$order_detail.product_name}
      </td>
    </tr>
  </table>
  {else}
  {$order_detail.product_name}
 {/if}

... modificarlo así:

{if $display_product_images}
  <table width="100%">
    <tr>
      <td width="15%">
        {if isset($order_detail.image) && $order_detail.image->id}
        {$order_detail.image_tag}
        {/if}
      </td>
      <td width="5%">&nbsp;</td>
      <td width="80%">
        {$order_detail.isbn}
      </td>
    </tr>
  </table>
  {else}
  {$order_detail.isbn}
 {/if}

No lo he probado, pero si en los productos de $order_detail va incluido el ISBN (que creo que sí), debería funcionar.

×
×
  • Create New...