export orders
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
export orders
I've initiated an order export from the sales page in admin, I'm told it will be available in a few minutes
I haven't customized this at all, it's all the job files from the aimeos vendor code
The only thing I've done is to add the location for the file in shop php:
But when the cron job containing /export/csv runs,
It fails with this:
I haven't customized this at all, it's all the job files from the aimeos vendor code
The only thing I've done is to add the location for the file in shop php:
Code: Select all
'controller' => [
'jobs' => [
'order'=> [
'email' => [
'voucher' => [
'status' => [
'0'=>'5',
'1'=>'6',
],
],
],
'service' => [
'payment' => [
'name' => 'KlarnaKco'
],
],
'export' => [
'csv' => [
'location' => public_path( 'aimeos/exports' ),
],
],
],
],
],
It fails with this:
Code: Select all
Invalid controller "" in "/export/csv"#0 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/JobsCommand.php(54): Aimeos\Controller\Jobs::create(Object(Aimeos\MShop\Context\Item\Standard), Object(Aimeos\Bootstrap), '/export/csv')
#1 [internal function]: Aimeos\Shop\Command\JobsCommand->Aimeos\Shop\Command\{closure}(Object(Aimeos\MShop\Context\Item\Standard), Object(Aimeos\Bootstrap), '/export/csv')
#2 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Pcntl.php(181): call_user_func_array(Object(Closure), Array)
#3 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Pcntl.php(116): Aimeos\MW\Process\Pcntl->exec(Object(Closure), Array)
#4 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Decorator/Check.php(61): Aimeos\MW\Process\Pcntl->start(Object(Closure), Array, false)
#5 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/JobsCommand.php(63): Aimeos\MW\Process\Decorator\Check->start(Object(Closure), Array, false)
#6 [internal function]: Aimeos\Shop\Command\JobsCommand->Aimeos\Shop\Command\{closure}(Object(Aimeos\MShop\Context\Item\Standard), Object(Aimeos\Bootstrap))
#7 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Pcntl.php(181): call_user_func_array(Object(Closure), Array)
#8 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Pcntl.php(116): Aimeos\MW\Process\Pcntl->exec(Object(Closure), Array)
#9 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Decorator/Check.php(61): Aimeos\MW\Process\Pcntl->start(Object(Closure), Array, false)
#10 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/AbstractCommand.php(67): Aimeos\MW\Process\Decorator\Check->start(Object(Closure), Array, false)
#11 /Users/dansegolson/Documents/code/dinsaluhall/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/JobsCommand.php(69): Aimeos\Shop\Command\AbstractCommand->exec(Object(Aimeos\MShop\Context\Item\Standard), Object(Closure), 'default')
#12 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Aimeos\Shop\Command\JobsCommand->handle()
#13 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#14 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#15 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#16 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#17 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\Container\Container->call(Array)
#18 /Users/dansegolson/Documents/code/dinsaluhall/vendor/symfony/console/Command/Command.php(299): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#19 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#20 /Users/dansegolson/Documents/code/dinsaluhall/vendor/symfony/console/Application.php(978): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /Users/dansegolson/Documents/code/dinsaluhall/vendor/symfony/console/Application.php(295): Symfony\Component\Console\Application->doRunCommand(Object(Aimeos\Shop\Command\JobsCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /Users/dansegolson/Documents/code/dinsaluhall/vendor/symfony/console/Application.php(167): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Console/Application.php(92): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /Users/dansegolson/Documents/code/dinsaluhall/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 /Users/dansegolson/Documents/code/dinsaluhall/artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#26 {main}Process (PID "1100") failed with status "256"%
_____________
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25
Re: export orders
What is the exact command you are executing to run the job?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: export orders
First I'm clicking on the export icon in the orders list, I select export orders
Then I run this cron-job:
php artisan aimeos:jobs "order/export/csv order/email/delivery order/email/payment order/email/voucher order/service/delivery subscription/export/csv customer/email/account" default
Either the full one or just php artisan aimeos:jobs order/export/csv default
Then I run this cron-job:
php artisan aimeos:jobs "order/export/csv order/email/delivery order/email/payment order/email/voucher order/service/delivery subscription/export/csv customer/email/account" default
Either the full one or just php artisan aimeos:jobs order/export/csv default
_____________
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25
Re: export orders
The command works without problems. Do you have a white space or newline in "order/export/csv" in your crontab?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: export orders
Sorry for late reply, I had no new lines or anything in the commands, but it was something on my side, after reverting some stuff it started working locally. Still need to get it working on the stage site though, there I have no error, but no files are generated.
Thank's for your help!
Thank's for your help!
_____________
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25
Laravel 8 with Aimeos 2021.10.7 + Marketplace. Setup via composer. Mac with Valet and MySql 8.0.25