Default status "delivery"

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Kevin
Posts: 13
Joined: 28 Nov 2017, 19:54

Default status "delivery"

Post by Kevin » 11 Dec 2017, 09:26

Hi,

How do I change the default delivery status?
By default this is set to -1 in the file /Applications/MAMP/htdocs/snackup/vendor/aimeos/aimeos-core/lib/mshoplib/src/MShop/Order/Item

Code: Select all

	/**
	 * Unfinished delivery.
	 * This is the default status after creating an order and this status
	 * should be also used as long as technical errors occurs.
	 */
	const STAT_UNFINISHED = -1;
As I can not change files in the "vendor" folder, how do I change this value to 4.
Thanks in advance!

Regards,
Kevin

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Default status "delivery"

Post by aimeos » 13 Dec 2017, 00:04

Write a small delivery service provider that sets the delivery status according to your needs and use it in the checkout process:
https://github.com/aimeos/aimeos-core/b ... al.php#L32

Note: You have to execute the "./artisan aimeos:jobs order/service/delivery" command regularly to set the status (https://aimeos.org/docs/Laravel/Configure_cronjobs)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply