How to i can add attribute text in pdf invoice after product name in Magento 2.4.0 ?
I am writing this code but not effecting.
$id = $item->getProductid();
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManager->get('Magento\Catalog\Model\Product')->load($id);
$preorder = $product->getAttributeText('preorder');
if($preorder == "Yes") {
$lines[][] = [
'text' => $this->string->split('Pre Order', 10, true, true),
'feed' => 125,
'height' => 0,
];
}