Hide Orders "search Options" By Default In 4.2.4

There has been work arounds for CS 3.X, but i am unable to figure out where to make template edits to fix this in 4.2 (there is no skins templates)?



Hide Orders "Seach Options" - General Questions - CS-Cart Community Forums



Does anyone know how to keep the “Search Options” on the orders page collapsed by default? It takes up way to much space on the order screen. My customers will not want this.



Please try the following solution.


  • Open the design\themes\YOUR_THEME\templates\views\orders\search.tpl
  • Replace:



{include file="common/section.tpl" section_title=__("search_options") section_content=$smarty.capture.section class="ty-search-form"}




with



{include file="common/section.tpl" section_title=__("search_options") section_content=$smarty.capture.section class="ty-search-form" collapse=true}



  • Save the file and check the result

[quote name='eComLabs' timestamp='1430299828' post='212910']

Please try the following solution.


  • Open the design\themes\YOUR_THEME\templates\views\orders\search.tpl
  • Replace:



{include file="common/section.tpl" section_title=__("search_options") section_content=$smarty.capture.section class="ty-search-form"}




with



{include file="common/section.tpl" section_title=__("search_options") section_content=$smarty.capture.section class="ty-search-form" collapse=true}



  • Save the file and check the result

    [/quote]

    Brilliant!!! eComLabs… thank you for this tip. Works exactly the way I envisioned. I just wish these “options / edits” to the templates were a bit more novice friendly.



    I appreciate you taking the time to help me out. Have a great day!

We are glad to help you!

How i can remove it completely?

How i can remove it completely?

Replace

{include file="common/section.tpl" section_title=__("search_options") section_content=$smarty.capture.section class="ty-search-form"}

with

{* include file="common/section.tpl" section_title=__("search_options") section_content=$smarty.capture.section class="ty-search-form" *}

Replace

{include file="common/section.tpl" section_title=__("search_options") section_content=$smarty.capture.section class="ty-search-form"}

with

{* include file="common/section.tpl" section_title=__("search_options") section_content=$smarty.capture.section class="ty-search-form" *}

I replace the code but nothing happens.Menu is still there.Iam using 4.4.2

Did you clear cache?

Yes.

Yes.

It works on my local installation. Try to delete the var/cache directory manually

IT WORKS! Thank you!!!!

You are welcome!

I'm trying to remove it on my site as well, followed the suggestion above and it's still showing. Driving me absolutely crazy.

I'm trying to remove it on my site as well, followed the suggestion above and it's still showing. Driving me absolutely crazy.

Try to delete the var/cache directory manually

Try to delete the var/cache directory manually

Yep, tried that too and still no luck :(
I take my hat off to the patience of web developers.

Yep, tried that too and still no luck :(
I take my hat off to the patience of web developers.

PM me temporary access, we will check