cancel
Showing results for 
Search instead for 
Did you mean: 

how to show a custom attribute in a product tab?

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 ?

Tags (1)
5 REPLIES

Re: how to show a custom attribute in a product tab?

@spyrule

 

Follow this:http://www.mcnab.co/blog/e-commerce/magento/custom-attribute-tab-in-magento-easy-tabs/

It will help you out.

Found something useful, please give "Kudos" or "Accept as Solution" for Token of Appreciation.
Free Magento Extensions : https://magecomp.com/free-magento-extensions.html

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>

Re: how to show a custom attribute in a product tab?

@spyrule

 

Do you want to display the attribute html or just value which is set for the product?

Found something useful, please give "Kudos" or "Accept as Solution" for Token of Appreciation.
Free Magento Extensions : https://magecomp.com/free-magento-extensions.html

Re: how to show a custom attribute in a product tab?

Just the value that is set for the currently selected product.

Re: how to show a custom attribute in a product tab?

help? Smiley Very Happy