Jump to content

How To Disable Useless Order States ?


USB83

Recommended Posts

Thank you Bill,

 

I already edited some order statuses in Orders > Statuses but they don't seem to be disableable.

 

My goal is not to have them in the state update select list that appears when viewing/managing an order.

 

Thanks again.

Link to comment
Share on other sites

No, i didn't delete any status. 

I don't think that's even possible.

 

What i am trying to do is to have, in the dropdown box, only the four statuses that are useful to me

Payment accepted, preparation, shipped & Order Canceled.

 

whereas now, i have wait statuses that i don't need in the dropdown box (waiting for cod validation, out of stock, refund, payment error ..

 

Thank you for your time

Link to comment
Share on other sites

Yea, since the store is live and it's working correctly, I prefer not to take the risk and break something.

I mean as long as it's just store front template files, emails sent out by prestashop etc..  i like to hack around but this was just to make things easier in the backoffice, but since it's not a big deal, it's not worth breaking stuff :)

 

I'll do a backup and play around with a local copy and see what happens.

 

Thanks a lot anyway for the time you took to look into this.

Based on your profile picture, i assume you're in/from canada. It sounds like a real cool place to live. The echo i'm getting (from friends & relatives who visited) is it's like the US only wiser  :lol:

 

Cheers

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
  • 6 months later...

Hi:

Other solution:

 

Go to  /admin/themes/default/template/controllers/orders/helpers/view/view.tpl

 

Change this:

<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" disabled="disabled"{/if}>{$state['name']|escape}</option>
{/foreach}

</select>

 

to

<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" disabled="disabled"{/if}>{$state['name']|escape}</option>
{/foreach}
-->
<option value="6">Cancelado</option>
<option value="2">Pago aceptado</option>
<option value="7">Reembolso</option>
</select>

 

And Voila!!!

 

In Spanish: http://wmotion.net/blog/10_eliminar-de-prestashop-estados-de-pedidos-que-no-se-usan.html

  • Thanks 1
Link to comment
Share on other sites

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...