Tax rate for each product
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!
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: Tax rate for each product
This is the point where I get the error when trying to send email with cron or manually:
https://github.com/aimeos/aimeos-core/b ... e.php#L317
Please, check it. I am not sure but seems some changes were made to addresses after last aimeos updates.
In my case it tries to get payment address with position = 0; But $this->addresses is empty array in my case. But why empty array ? Payment address is set ...
Thank you a lot for support and great responsibility !
https://github.com/aimeos/aimeos-core/b ... e.php#L317
Please, check it. I am not sure but seems some changes were made to addresses after last aimeos updates.
In my case it tries to get payment address with position = 0; But $this->addresses is empty array in my case. But why empty array ? Payment address is set ...
Thank you a lot for support and great responsibility !
Re: Tax rate for each product
Can you please post the stack trace of the exception as well?
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
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: Tax rate for each product
Hmmm, now I made test order on my local development shop with prepay payment service. Then I executed manually:
And now I got another problem, and seems it is not touched to my customization:
Code: Select all
php /var/www/schmuck/artisan aimeos:jobs "order/email/delivery order/email/payment order/email/voucher order/service/delivery"
And now I got another problem, and seems it is not touched to my customization:
Code: Select all
Call to a member function getTaxValue() on array#0 /var/www/schmuck/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/View/Standard.php(257): include()
#1 /var/www/schmuck/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/View/Standard.php(239): Aimeos\MW\View\Standard->includeFile('/var/www/schmuc...')
#2 /var/www/schmuck/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/View/Helper/Partial/Standard.php(36): Aimeos\MW\View\Standard->render('email/common/te...')
#3 [internal function]: Aimeos\MW\View\Helper\Partial\Standard->transform('email/common/te...', Array)
#4 /var/www/schmuck/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/View/Standard.php(88): call_user_func_array(Array, Array)
#5 /var/www/schmuck/ext/ai-client-html/client/html/templates/email/payment/text-body-standard.php(76): Aimeos\MW\View\Standard->__call('partial', Array)
#6 /var/www/schmuck/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/View/Standard.php(257): include('/var/www/schmuc...')
#7 /var/www/schmuck/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/View/Standard.php(239): Aimeos\MW\View\Standard->includeFile('/var/www/schmuc...')
#8 /var/www/schmuck/ext/ai-client-html/client/html/src/Client/Html/Email/Payment/Text/Standard.php(107): Aimeos\MW\View\Standard->render('email/payment/t...')
#9 /var/www/schmuck/ext/ai-client-html/client/html/src/Client/Html/Email/Payment/Standard.php(96): Aimeos\Client\Html\Email\Payment\Text\Standard->getBody('')
#10 /var/www/schmuck/ext/ai-client-html/controller/jobs/src/Controller/Jobs/Order/Email/Payment/Standard.php(262): Aimeos\Client\Html\Email\Payment\Standard->getBody()
#11 /var/www/schmuck/ext/ai-client-html/controller/jobs/src/Controller/Jobs/Order/Email/Payment/Standard.php(225): Aimeos\Controller\Jobs\Order\Email\Payment\Standard->processItem(Object(Aimeos\Client\Html\Email\Payment\Standard), Object(Aimeos\MShop\Order\Item\Standard), Object(Aimeos\MShop\Order\Item\Base\Standard), Object(Aimeos\MShop\Order\Item\Base\Address\Address))
#12 /var/www/schmuck/ext/ai-client-html/controller/jobs/src/Controller/Jobs/Order/Email/Payment/Standard.php(129): Aimeos\Controller\Jobs\Order\Email\Payment\Standard->process(Object(Aimeos\Client\Html\Email\Payment\Standard), Array, 4)
#13 /var/www/schmuck/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/JobsCommand.php(69): Aimeos\Controller\Jobs\Order\Email\Payment\Standard->run()
#14 [internal function]: Aimeos\Shop\Command\JobsCommand->Aimeos\Shop\Command\{closure}(Object(Aimeos\MShop\Context\Item\Standard), Object(Aimeos\Bootstrap), 'order/email/pay...')
#15 /var/www/schmuck/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Pcntl.php(177): call_user_func_array(Object(Closure), Array)
#16 /var/www/schmuck/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Pcntl.php(112): Aimeos\MW\Process\Pcntl->exec(Object(Closure), Array)
#17 /var/www/schmuck/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Process/Decorator/Check.php(61): Aimeos\MW\Process\Pcntl->start(Object(Closure), Array, true)
#18 /var/www/schmuck/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/JobsCommand.php(72): Aimeos\MW\Process\Decorator\Check->start(Object(Closure), Array, true)
#19 [internal function]: Aimeos\Shop\Command\JobsCommand->handle()
#20 /var/www/schmuck/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#21 /var/www/schmuck/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#22 /var/www/schmuck/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#23 /var/www/schmuck/vendor/laravel/framework/src/Illuminate/Container/Container.php(576): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#24 /var/www/schmuck/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\Container\Container->call(Array)
#25 /var/www/schmuck/vendor/symfony/console/Command/Command.php(255): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#26 /var/www/schmuck/vendor/laravel/framework/src/Illuminate/Console/Command.php(170): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#27 /var/www/schmuck/vendor/symfony/console/Application.php(934): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#28 /var/www/schmuck/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Aimeos\Shop\Command\JobsCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#29 /var/www/schmuck/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#30 /var/www/schmuck/vendor/laravel/framework/src/Illuminate/Console/Application.php(90): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#31 /var/www/schmuck/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(133): Illuminate\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#32 /var/www/schmuck/artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#33 {main}
Re: Tax rate for each product
You have a local copy of this template where the these lines are not up to date:
https://github.com/aimeos/ai-client-htm ... #L196-L204
https://github.com/aimeos/ai-client-htm ... #L196-L204
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
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: Tax rate for each product
Hm, I deleted all extensions, vendor folder and executed composer install. But the same problem.. Why do I got old files ..
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: Tax rate for each product
Sorry, it was stupid question, I had overwritten this template in my extension. I didn't notice it at once. Thank you for the support!