PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, November 10, 2022

[FIXED] How to merge product description and additional information tabs?

 November 10, 2022     attributes, magento, magento-1.7, tabs     No comments   

Issue

I am using a Modern theme which separates all information into tabs. I want to merge some of the tabs as visitors hate clicking.

I spent hours searching, but can't fine one that actually works.

Here is example of what I want to achieve:

http://www.teasta.com/chocolate-mint-rooibos-herbal-tea-4oz-tin.html

You can see description appears just above the Additional information (attributes)

How do I do this in Magento 1.7.0?


Solution

For Remove Additional Information Tab comment following code from catalog.xml

<action method="addTab" translate="title" module="catalog"><alias>additional</alias><title>Additional Information</title><block>catalog/product_view_attributes</block><template>catalog/product/view/attributes.phtml</template></action>  

For display Additional Information in Product Description Tab paste following code in
"catalog/product/view/description.phtml" file.

<?php echo $this->getLayout()->createBlock('catalog/product_view_attributes', '', array('template'=> 'catalog/product/view/attributes.phtml'))->toHtml(); ?>


Answered By - Pankaj Pareek
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing