0

I have a static block position in my product detail page. what i want to do is call the content inside more information tab data of attributes to show in that static block. any help would be great waiting for your replies this is magento2 i am referring to

explanation if this helps - i am trying to move this data of attributes info http://awesomescreenshot.com/0b2639uq25 to a static block on product view page , static block already exists just need to call this tab information in static block

  • explanation if this helps - i am trying to move this data of attributes info awesomescreenshot.com/0b2639uq25 to a static block on product view page , static block already exists just need to call this tab information in static block – robin Aug 16 '16 at 22:42
0

$_product = $block->getProduct(); $CMS-BLOCK-NAME = $_product->getAttributeText('ATTRIBUTE-NAME'); if ($CMS-BLOCK-NAME): echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId($CMS-BLOCK-NAME )->toHtml(); endif;

try the above, put in your \app\design\frontend\THEME NAME.....\templates\product\VIEW.PHTML Edit and replace CMS-BLOCK-NAME and ATTRIBUTE-NAME and enter yours

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.