Index rebuild job

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
VirtualSpy
Advanced
Posts: 122
Joined: 05 Jul 2022, 07:55

Index rebuild job

Post by VirtualSpy » 03 Feb 2023, 13:52

laravel version 9.48.0 , Aimeos version 2022.10.4 and PHP version 8.1.3 (Win)

i want to modify index rebuild job for mshop_index_text table , there i want to insert product name only in content coloumn
i got manager for text "\vendor\aimeos\aimeos-core\src\MShop\Index\Manager\Text\Standard.php" but i could not understand exectly what should i implement here by extending it .... please help me for this task .....Thanks in Advance

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

Re: Index rebuild job

Post by aimeos » 04 Feb 2023, 07:57

Create a file src\MShop\Index\Manager\Text\Myproject.php in you Aimeos extension and use this class definition:

Code: Select all

<?php

namespace Aimeos\MShop\Index\Manager\Text;

class Myproject extends Standard
{
	protected function saveTexts( \Aimeos\Base\DB\Statement\Iface $stmt, \Aimeos\MShop\Product\Item\Iface $item )
	{
		// change the saveTexts() code from the original file according to your neeeds
	}
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply