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 ?

5 REPLIES 5

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.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

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?

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

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