- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how to show a custom attribute in a product tab?
Hello,
I've got a theme that came with Easy Tabs, and I'm trying to insert a custom product attribute (it exists on all products) and simply display the content of that attribute.
Can this be done via the CMS > Static Blocks > BLOCKNAME > Content box ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how to show a custom attribute in a product tab?
Follow this:http://www.mcnab.co/blog/e-commerce/magento/custom-attribute-tab-in-magento-easy-tabs/
It will help you out.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how to show a custom attribute in a product tab?
Well,
That sort of helps, except that's pulling entire attribute sets. If I was looking to pull a single attribute from default/general attribute set, and only display that one attribute (call it customshippingvalue ), would I change it like so:
<?php if (0 == strcmp($attributeSetName, 'Default')): ?> <?php echo $_product->getcustomshippingvalue() ?></td>
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how to show a custom attribute in a product tab?
Do you want to display the attribute html or just value which is set for the product?
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how to show a custom attribute in a product tab?
Just the value that is set for the currently selected product.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how to show a custom attribute in a product tab?
help?