override save, get functions of Admin Product.

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!
raghibkhesal2001

override save, get functions of Admin Product.

Post by raghibkhesal2001 » 20 Aug 2020, 15:23

Hi,

I need to override save, get functions of Admin Product.
./ext/ai-admin-jqadm/admin/jqadm/src/Admin/JQAdm/Product/Standard.php

I created extension, but can anyone just provide me sample for this and guide me step by step please?

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

Re: override save, get functions of Admin Product.

Post by aimeos » 21 Aug 2020, 19:17

Here's a thread that could help you:
post6044.html#p6044
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

raghibkhesal2001

Re: override save, get functions of Admin Product.

Post by raghibkhesal2001 » 24 Aug 2020, 09:07

Hi,

As per the given guide, i created and copy "./ext/ai-admin-jqadm/admin/jqadm/src/Admin/JQAdm/Product/Standard.php" into "./ext/my-custom-ext/admin/jqadm/src/Admin/JQAdm/Product/ListStandard.php". Then changed the Class name into Liststandard.

Can you please just guide me what information should i require to add in configuration file (i am using laravel). So i can access custom extension -> product -> get function.

raghibkhesal2001

Re: override save, get functions of Admin Product.

Post by raghibkhesal2001 » 24 Aug 2020, 13:45

Thanks for the guide and this work has been done.

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

Re: override save, get functions of Admin Product.

Post by aimeos » 25 Aug 2020, 07:42

To your ./config/shop.php add:

Code: Select all

'admin' => [
	'jqadm' => [
		'plugin' => [
			'name' => 'ListStandard'
		]
	]
], 
to configure the name of your new class to be used instead of the Standard class.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply