Jump to content

hide status order in IF condition


Mardok

Recommended Posts

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

 <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

  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...