kuba2908 Posted December 6, 2012 Share Posted December 6, 2012 Hello! The online store I work at uses PrestaShop 1.2.2.0. I installed cashondeliverywithfee v0.5 module, also ship2pay v0.1. All modules work fine, but I don't know how to change the default status of the new order in "Orders" tab in admin panel. Now the default for 'cash on delivery' is ~Under preparing (it's in Polish actually). I'd prefer to change it, because this status is used for other shipping method. I want to make the different default state for the 'Cash on delivery' shipment. Does anyone know how to do it? I tried to find somethnig in module *.php files, but I can't find to way to do it. I appreciate every advices. Best regards, Jakub from Poland Link to comment Share on other sites More sharing options...
safa Posted December 6, 2012 Share Posted December 6, 2012 you ps version 1.2.2 right?? this is very old version . anyway open this file modules/cashondelivery/validation.php find this line. $cashOnDelivery->validateOrder(intval($cart->id), _PS_OS_PREPARATION_, $total, $cashOnDelivery->displayName); replace _PS_OS_PREPARATION_ to order status id. example 4 , 5 , 6 .... etc. you can find id number orders/statues tab. regards Link to comment Share on other sites More sharing options...
kuba2908 Posted December 7, 2012 Author Share Posted December 7, 2012 @safa - thank you very much! Your solution worked. According to our Presta version, I know 1.2.2 is an old version, but I just started my experience with Presta and I decided to get on well with it at first, then try to make any changes. It may sound stupid, but in fact that's true. Probably in a few days, when I find some free time at work, I'll do this. Once more thanks a lot! Link to comment Share on other sites More sharing options...
safa Posted December 7, 2012 Share Posted December 7, 2012 @safa - thank you very much! Your solution worked. According to our Presta version, I know 1.2.2 is an old version, but I just started my experience with Presta and I decided to get on well with it at first, then try to make any changes. It may sound stupid, but in fact that's true. Probably in a few days, when I find some free time at work, I'll do this. Once more thanks a lot! you're welcome, i'am glad for you. be careful for update. (sometimes to be hard) -regards Link to comment Share on other sites More sharing options...
blueraccoon Posted April 23, 2013 Share Posted April 23, 2013 Hi Safa, I am trying to find the same solution using a new order status that I have added myself. How do I assign the new order status in validation.php? I am running 1.5.3.1. Thanks for your help 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