I need all product information like in default magento theme but without tabs. And i need to order of product details like this: first: additional information below it a separator line or box and: second: description below it a line and: Reviews I use magento with rwd theme



Edit above file & comment below lines of code, It will remove your tabs from the product view page.

    <div class="product-collateral toggle-content tabs">
            <?php if ($detailedInfoGroup = $this->getChildGroup('detailed_info', 'getChildHtml')):?>
                <dl id="collateral-tabs" class="collateral-tabs">
                    <?php foreach ($detailedInfoGroup as $alias => $html):?>
                        <dt class="tab"><span><?php echo $this->escapeHtml($this->getChildData($alias, 'title')) ?></span></dt>
                        <dd class="tab-container">
                            <div class="tab-content"><?php echo $html ?></div>
                    <?php endforeach;?>
            <?php endif; ?>

|improve this answer|||||
  • thank you Adeel; but this code disable all product information and i need product information like in magento theme with full description, additional information and Reviews products, but without tabs. – user24183 Apr 9 '15 at 11:30
  • Remove the tab classes form the above code & in css do following .product-collateral > dl > dd {display:block !important;} .product-collateral > dl > dt {display:block !important;} – Adeel Ishfaq Apr 9 '15 at 11:38
  • Thank you, Its work :) and how can i change the order of product information? like this: first "ADDITIONAL INFORMATION" below it "DESCRIPTION" and below it "Reviews" – user24183 Apr 9 '15 at 11:59
  • You can control order from catalog.xml for description & additional information & review.xml for review Check <action method="addToParentGroup"><group>detailed_info</group></action> in both file – Adeel Ishfaq Apr 9 '15 at 12:20

you can display product information to get with help of $this->getChildGroup function

<?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
        <div class="box-collateral <?php echo "box-{$alias}"?> <?php if($alias == "additional") { echo "detail-box alignleft"; } else { echo "detail-box alignright"; }?>">
            <?php if ($title = $this->getChildData($alias, 'title')):?>
            <h2><?php echo $this->escapeHtml($title); ?></h2>
            <?php endif;?>
            <?php echo $html; ?>
<?php endforeach;?>

above will display information from

  <block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
                    <action method="addToParentGroup"><group>detailed_info</group></action>
               <block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml">
                    <action method="addToParentGroup"><group>detailed_info</group></action>

both blocks.

|improve this answer|||||
  • @user24183, its really unfair that you accepted answer before and now change your mind. :( – liyakat Apr 9 '15 at 12:36
  • This is my first post here and i am unfamiliar with the system of this site. I accept Adeel's answer before your answer and with respect to your request, tried to accept both, but i see Adeel's answer unchecked! Adeel have a complete answer and answered before you. – user24183 Apr 9 '15 at 13:09
  • not before me mister.After see my answer he is added some comment you can see time.But no worries.i will be careful to your post second time – liyakat Apr 9 '15 at 14:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.