0

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!

4
  • Please share code in question which you used in product view page. Commented Jul 18, 2018 at 11:31
  • I posted a link in the question @PrincePatel Commented Jul 18, 2018 at 12:01
  • The link is for the category page. Please update question with code which you used for product page Commented Jul 18, 2018 at 12:16
  • I uninstalled the plugin and run a backup -> I don't have the code anymore. But basically, I changed "category" to "configurable-product", changed the extensions names and the ID the block was called with. I did not expect it to work, just expected to be able to experiment with it, but did not happen @PrincePatel Commented Jul 18, 2018 at 19:37

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.