Jluis Posted February 6, 2018 Share Posted February 6, 2018 Salut , comment tester si la commande à été annulé ou pas (par exemple $order->hasBeenPaid() , y a t'il une fonction qui retoure cette état? Merci Link to comment Share on other sites More sharing options...
Ryan Hidri Posted February 7, 2018 Share Posted February 7, 2018 je suis pas sur de la reponse, mais peut etre que ca peut t aider essaye d'uutiliser getCurrentState() (ou getCurrentStateFull($id_lang) ) ou getHistory($id_lang, $id_order_state = false, $no_hidden = false) j ai trouvé ca dans ce lien (ils n ont pas mentionné la version de PS) : https://github.com/pal/prestashop/blob/master/classes/Order.php Link to comment Share on other sites More sharing options...
Ryan Hidri Posted February 7, 2018 Share Posted February 7, 2018 sinontu peux fouiller le fichier classes/order/order.php c est le fichier d implementation de la class order (commande) 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