Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8805917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:59:15+00:00 2026-06-14T01:59:15+00:00

when we upload one product, there is a default attribute set Default, and in

  • 0

when we upload one product, there is a default attribute set “Default”, and in the general tab, there are many default attributes like below image:
enter image description here

well, i added one more custom attribute named “size”, when i drag ‘size’ to general tab on the left, that mean the product has one more attribute. if i want to show the size attribute in the product view page of front end page, i have to put the code: “$_product->getAttributeText(‘size’)”, if i added lots of custom attributes, i have to put lots of codes manually. so, my question is how i can show all custom attributes automatically instead of adding one by one manually ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:59:16+00:00Added an answer on June 14, 2026 at 1:59 am

    This is allready done by magento.
    Mark your attributes as vissible in frontend and thats it.

    Have a look at the template attributes.phtml in path app/design/frontend/yourtheme/default/template/catalog/product/view

    <?php if($_additional = $this->getAdditionalData()): ?>
    <!--h2><?php echo $this->__('Additional Information') ?></h2-->
    <div class="data-table accordion" id="product-attribute-specs-table">
        <?php foreach ($_additional as $_data): ?>
        <?php $_attribute = $_product->getResource()->getAttribute($_data['code']);
        if  (!is_null($_product->getData($_attribute->getAttributeCode()))  &&  ((string)$_attribute->getFrontend()->getValue($_product) != '')) {  ?>
        <div class="clearer <?php echo $this->htmlEscape($this->__($_data['label'])) ?>">
            <div class="trigger"><?php echo $this->htmlEscape($this->__($_data['label'])) ?></div>
            <div class="triggerContent" style="display: none;"><span><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></span></div>
        </div>
    <?php } ?>
    
    </div>
    <script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am created one function to upload image with random name and it worked
I have a JSF datatable like this one: <h:form id=productsBox> <h:dataTable var=product value=#{categoriesBean.category.products} id=productsTable>
Before I get pointed to one of those 'VS.' questions like below... ASP.NET webforms
I've googled but I could only find how to upload one file... and I'm
Can one upload files to a domain other than the domain a script originates
I could test upload of one file attach_file 'photo', File.join(Rails.root, 'public', 'uploads', 'test.png') But
I have one for with 4-5 fields and one Upload button for Uploading One
I have an aspx page with multiple FileUpload controls and one Upload button. In
Before I have tried about doing one attachment (upload) for each record of my
In one of my applications a user can upload images and archives (ZIP, RAR).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.