figou75014 Posted December 8, 2017 Share Posted December 8, 2017 Bonjour, J'ai ajouté un champ 'amazon' en dernière colonne de la table ps_orders de la base de données prestashop. Cette colonne contient une référence de commande Amazon (marketplace). Je veux afficher la valeur de ce champ sur la facture (invoice tpl), j'ai essayé de modifier HTMLTemplateInvoice.php en faisant $this->smarty->assign('amazon', $this->order->amazon);, mais ça ne fonctionne pas, quelqu'un peut-il m'aider ? Par avance, Merci. Link to comment Share on other sites More sharing options...
tuk66 Posted December 12, 2017 Share Posted December 12, 2017 As-tu essayé Have you tried $order->amazon dans un template /pdf/invoice*.tpl? in a /pdf/invoice*.tpl template? Link to comment Share on other sites More sharing options...
JamesBen08 Posted December 13, 2017 Share Posted December 13, 2017 18 hours ago, tuk66 said: As-tu essayé Have you tried $order->amazon dans un template /pdf/invoice*.tpl? in a /pdf/invoice*.tpl template? Et s'il s 'agit d'une table qui n'est pas dans ps_order on peut le faire aussi ? Link to comment Share on other sites More sharing options...
tuk66 Posted December 13, 2017 Share Posted December 13, 2017 $order ne contient que des données de commande. J'ai déjà fait un modèle avec des données Amazon en utilisant cette approche: $order holds only order data. I already made a template with Amazon data using this approach: https://www.prestashop.com/forums/topic/270613-module-m4-pdf-extensions-with-online-editor/?page=3&tab=comments#comment-1668332 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