Set number of days for a return policy

Edit on GitHub

To define a period within which an item can be returned, in Pyz\Zed\SalesReturn\SalesReturnConfig, redefine the config by adding the following:

protected const GLOBAL_RETURNABLE_NUMBER_OF_DAYS = {{Number of days}};

Where {{Number of days}} is the time period in days after the item purchase within which the item can be returned.

Example with the 30 days return policy:

namespace Pyz\Zed\SalesReturn;

use Spryker\Zed\SalesReturn\SalesReturnConfig as SprykerSalesReturnConfig;

class SalesReturnConfig extends SprykerSalesReturnConfig
{
    protected const GLOBAL_RETURNABLE_NUMBER_OF_DAYS = 30;
}