How to get a custom CMS block on Product page through attributes

by Valentin PKStore   Last Updated July 18, 2018 12:09 PM

I would like to do the following:

- Have a two custom product attributes
- Attribute One should be called as a static CMS block (e.g. if I type in "test123" in the product configuration, Magento should load the custom block with the ID "test123" and display it on the product page
- Attribute 2 should just be displayed. If I type in "test123" I just want it to appear as "test123" on the product page

What I tried to do is edit this code and apply it on product pages, but it created an error that didn't even go away when I uninstalled the module and I had to run a backup.. Call CMS Block with Category name as Identifier

Does anyone know how to do that or how to correctly edit the code I was using?

Thank you very much in advance!

Tags : magento2 product


Related Questions




Grouping Product or Creating into a set

Updated September 12, 2017 04:09 AM