Jluis Posted February 7, 2018 Share Posted February 7, 2018 hello, i need to create a new function in order to test if the order is cancelled or not . any suggestion please? Link to comment Share on other sites More sharing options...
jetway Posted February 8, 2018 Share Posted February 8, 2018 What is your situation where you need to do this? Login into the Backend shows you if an order is cancelled or not. Link to comment Share on other sites More sharing options...
Jluis Posted February 8, 2018 Author Share Posted February 8, 2018 i would like to test if it is canceled in order to display return button option , as same as the code below : $order->hasBeenPaid() {if Configuration::get('PS_ORDER_RETURN')} <a id="desc-order-standard_refund" class="btn btn-default" href="#refundForm"> <i class="icon-exchange"></i> {if $order->hasBeenShipped()} {l s='Return products'} {elseif $order->hasBeenPaid()} {l s='Standard refund'} {else} {l s='Cancel products'} {/if} </a> {/if} 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