USB83 Posted December 11, 2015 Share Posted December 11, 2015 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 ! Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 11, 2015 Share Posted December 11, 2015 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 Link to comment Share on other sites More sharing options...
USB83 Posted December 12, 2015 Author Share Posted December 12, 2015 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 More sharing options...
Bill Dalton Posted December 12, 2015 Share Posted December 12, 2015 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? Link to comment Share on other sites More sharing options...
USB83 Posted December 12, 2015 Author Share Posted December 12, 2015 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 More sharing options...
Bill Dalton Posted December 12, 2015 Share Posted December 12, 2015 (edited) 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 December 12, 2015 by Bill Dalton (see edit history) Link to comment Share on other sites More sharing options...
USB83 Posted December 12, 2015 Author Share Posted December 12, 2015 Really, how ? (I looked but couldn't find In the status list or when editing a particular status ? Thanks again Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 12, 2015 Share Posted December 12, 2015 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. Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 12, 2015 Share Posted December 12, 2015 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. Link to comment Share on other sites More sharing options...
USB83 Posted December 12, 2015 Author Share Posted December 12, 2015 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 Cheers 1 Link to comment Share on other sites More sharing options...
lordshop Posted January 19, 2017 Share Posted January 19, 2017 (edited) 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. Edited January 19, 2017 by lordshop (see edit history) 1 1 Link to comment Share on other sites More sharing options...
matracon Posted July 31, 2017 Share Posted July 31, 2017 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 1 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