Jump to content

Changing default order state for cashondeliverywithfee


kuba2908

Recommended Posts

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

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

@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

@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

  • 4 months 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...