mlebreton Posted June 16, 2015 Share Posted June 16, 2015 Bonjour, je souhaiterais afficher le status de la commande id_order_state dans le bon de livraison pdf de façon à afficher un titre "Bon de préparation" quand le status est "en cours de préparation" et "Bon de livraison" quand le status est "commande expediee" je pense que c'est dans classes/pdf/HTMLTemplateDeliverySlip.php que cela se passe, mais je ne sais pas trop comment faire, pouvez vous me donner un coup de main ? merci Link to comment Share on other sites More sharing options...
mlebreton Posted June 16, 2015 Author Share Posted June 16, 2015 il semble que ca fonctionne avec $state = $this->order->getCurrentState(); dans HTMLTemplateDeliverySlip.php $state = $this->order->getCurrentState(); if($state == 3){ $this->title = sprintf(HTMLTemplateDeliverySlip::l('Pre-Delivery #%1$s%2$06d'), $prefix, $this->order_invoice->delivery_number); } if($state == 4){ $this->title = sprintf(HTMLTemplateDeliverySlip::l('Delivery #%1$s%2$06d'), $prefix, $this->order_invoice->delivery_number); } 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