Index rebuild job
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!
- VirtualSpy
- Advanced
- Posts: 122
- Joined: 05 Jul 2022, 07:55
Index rebuild job
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
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
Re: Index rebuild job
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, give us a star
If you like Aimeos, give us a star