1

My Search bar is currently on my Homepage

Code is:

<reference name="header">
    <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/>
</reference>

I want to make the search bar appear on my New products Page

  • <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/> – Pawankumar May 15 '17 at 10:51
  • <?php echo $this->getChildHtml(‘topSearch’) ?> in template you can call like this – Pawankumar May 15 '17 at 10:51
1

in your local.xml

<catalog_product_view>
   <reference name="product.info">
      <block type="core/template" name="product.view.search" as="productViewSearch" template="catalogsearch/form.mini.phtml"/>
   </reference>
</catalog_product_view>

then in app/design/frontend/rwd/default/template/catalog/product/view.phtml add call children

<?php echo $this->getChildHtml('productViewSearch') ?>
  • yes first of all, dont mind to asking here brother, i will remove these comments surely. but there is one editor for formatting the content. thats y i used to be the content in better view. you rejected that chance also. – Teja Bhagavan Kollepara May 16 '17 at 12:35

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.