registry = $registry; } public function getCustomAttribute() { $product = $this->registry->registry('current_product'); // Replace 'your_custom_attribute_code' with your actual attribute code return $product->getData('kai_attribute'); } }