ameunier Posted March 26, 2020 Share Posted March 26, 2020 Bonjour à tous. Le confinement me permet de reprendre ma liste de chose a faire J'ai mon problème de code barre sur les factures qui ne fonctionne plus depuis la migration de Prestashop 1.6 vers 1.7 En 1.6 je rajoutait le code suivant dans le fichier .tpl pour ajouter le code barre du N° de documents et pouvoir traiter mes commandes <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> En 1.7 j'ai du supprimer car cela me générais l'erreur suivante : Quote Using $this when not in object context avez vous une idée. Merci et bon confinement à tous !!! Link to comment Share on other sites More sharing options...
Bastien M Posted November 11, 2020 Share Posted November 11, 2020 salut tu a trouvé la solution a ton problème Link to comment Share on other sites More sharing options...
ameunier Posted February 2, 2023 Author Share Posted February 2, 2023 OUI j'ai la solution Link to comment Share on other sites More sharing options...
vipier Posted March 13, 2023 Share Posted March 13, 2023 Bonjour, j'ai exactement le meme probleme. Pourriez vous nous partager la solution que vous avez trouvé s'il vous plait? S'agit-t-il d'installer une font et convertir le texte? Merci Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now