Jump to content
USB83

How To Disable Useless Order States ?

Recommended Posts

Hello,

I'm looking for a way to disable or hide order states that aren't useful for my store ?
 

For example : Payment Error, out of stock.

 

Thanks a lot !

 

nTEcIqM.png

Share this post


Link to post
Share on other sites

Order states are here, Orders  > Statuses. But some are controlled elsewhere. Your example Payment Error, out of stock. Preferences  > Products > Products stock > Allow ordering of out-of-stock products  

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Are you saying that you delete a status, but it still appears available in the drop down box in an order? If so which status does this?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Yes it is possible to delete statuses, please go to Orders  > Statuses

 

You can delete and create all you like, or don't like. :) 

Edited by Bill Dalton (see edit history)

Share this post


Link to post
Share on other sites

Really, how ? (I looked but couldn't find :)
In the status list or when editing a particular status ?
djXzCBB.png

HF3fdfr.png

 

Thanks again

Share this post


Link to post
Share on other sites

Sorry, you are using ver 1.6x, you can only delete status you create with that version. I use 1.5x

 

From what I have read in version 1.6x Click "Edit" menu

Select "Hide this status in all customer orders."

 

Please let me know if that works.  :ph34r:

Share this post


Link to post
Share on other sites

That may not remove them from your drop down list. The return states are located in table  ps_order_return_state and table  ps_order_return_state_lang. You should create a copy of your web site before you try deleting the items from the MySQL tables. 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

I am working on prestashop 1.6.11.

I went to table "ps_order_state" and I have update the "deleted" from 0 to 1 for the ID status I don't want to show up on Order update.

post-333998-0-18722200-1484866438_thumb.jpg

Edited by lordshop (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More