Create a decorator for mshop_price

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!
User avatar
IvanIgniter
Posts: 58
Joined: 01 Dec 2021, 07:41

Create a decorator for mshop_price

Post by IvanIgniter » 15 Dec 2021, 06:48

I am using laravel 6.x, PHP 7.4, Docker desktop/Ubuntu and the Aimeos 2021

I was able to create a decorator for domain product but when I try to add decorator that will call to mshop_price it will cause an "Error retrieving data" when adding this \ext\ai-admin-jqadm\lib\custom\src\MShop\Product\Manager\Decorator\Myproject.php

'min_qty' => [
'code' => 'min_qty',
'internalcode' => 'mpri."min_qty"',
'label' => 'Min. Qty',
'type' => 'integer',
'internaltype' => \Aimeos\MW\DB\Statement\Base::PARAM_INT,
],

I already made a schema which successfully added in the mshop.price after "php artisan aimeos:setup".
Can you please help me how to use a decorator for reference item for product?

User avatar
IvanIgniter
Posts: 58
Joined: 01 Dec 2021, 07:41

Re: Create a decorator for mshop_price

Post by IvanIgniter » 15 Dec 2021, 07:02

Ok.. I got it. I just need to create another decorator for price in \ext\ai-admin-jqadm\lib\custom\src\MShop\Price\Manager\Decorator\Myproject.php

Thanks

Post Reply