0

in configurable products I need to display the value of a custom attribute when all select fields are filled.

It seems that only images and price are updated (js). In my case I need to display qtaxconf custom attribute. This attribute has values only in few simple products of configurable ones.

My code in Magento_ConfigurableProduct/templates/product/price/final_price.phtml

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManager->get('Magento\Framework\Registry')->registry('current_product');//get current product
echo $product->getCustomAttribute('qtaxconf')

Thank you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.