Mardok Posted October 3, 2021 Share Posted October 3, 2021 hello , I would like to know if it is possible to make sure that when the order status changes to "payment accepted" the "canceled" item is not visible. ex: {if $state['id_order_state'] == 2} code that causes the "canceled" status to no longer be selected in the drop-down menu {/if} please help me! Link to comment Share on other sites More sharing options...
Mardok Posted October 3, 2021 Author Share Posted October 3, 2021 in view.tpl file (of my marketplace module) Link to comment Share on other sites More sharing options...
Mardok Posted October 3, 2021 Author Share Posted October 3, 2021 <select id="id_order_state" class="chosen form-control" name="id_order_state" > {foreach from=$states item=state} <option value="{$state['id_order_state']|intval}"{if isset($currentState) && $state['id_order_state'] == $currentState->id} { selected="selected"{/if} {if $state['id_order_state'] == 2} HERE {/if} >{$state['name']|escape}</option> {/foreach} Link to comment Share on other sites More sharing options...
Mardok Posted October 3, 2021 Author Share Posted October 3, 2021 I'm sorry I'm not very experienced and I don't know what you mean Link to comment Share on other sites More sharing options...
walidkira Posted December 25, 2023 Share Posted December 25, 2023 Hi @Mardok Have u find a solution ? i'm trying to affect statut order to employee it work in 1.6 but in v8 Not working do you find a solution 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