Jump to content

Edit History

HAIRWEBSHOP

HAIRWEBSHOP


Typo

Hello,

I have found this code to add a barcode from the order reference to our invoice template, but instead of the order reference we want to generate a URL for each product on the invoice.

What do I have to replace $order->getUniqReference()  with to achieve this? 

Please note that we're not interested in buying modules, thank you.

 

<tr>
<td style="width: 17%"></td>
<td style="width: 83%">
 
{assign var=black value=[0,0,0]}{assign var=white value=[255,255,255]}
{assign var=stuff value=['position'=>'S', 'border'=>false, 'padding'=>4, 'fgcolor'=>$black, 'bgcolor'=>$white, 'text'=>false, 'font'=>'helvetica', 'fontsize'=>8, 'stretchtext'=>4]}
{assign var=params value=TCPDF::serializeTCPDFtagParameters(array($order->getUniqReference(), 'C39', '', '', 40, 15, 0.4, $stuff, 'N'))}
<tcpdf method="write1DBarcode" params="{$params}" />
 
</td>
</tr>

 

HAIRWEBSHOP

HAIRWEBSHOP

Hello,

I have found this code to add a barcode from the order reference to our invoice template, but instead of the order reference we want to generate a URL for each product on the invoice.

What do I hace to replace $order->getUniqReference()  with to achieve this? 

Please note that we're not interested in buying modules, thank you.

 

<tr>
<td style="width: 17%"></td>
<td style="width: 83%">
 
{assign var=black value=[0,0,0]}{assign var=white value=[255,255,255]}
{assign var=stuff value=['position'=>'S', 'border'=>false, 'padding'=>4, 'fgcolor'=>$black, 'bgcolor'=>$white, 'text'=>false, 'font'=>'helvetica', 'fontsize'=>8, 'stretchtext'=>4]}
{assign var=params value=TCPDF::serializeTCPDFtagParameters(array($order->getUniqReference(), 'C39', '', '', 40, 15, 0.4, $stuff, 'N'))}
<tcpdf method="write1DBarcode" params="{$params}" />
 
</td>
</tr>

 

×
×
  • Create New...