Results 1 to 5 of 5
  1. #1

    Default modifying the header.php file for advanced_search_result

    If there is a better way to do this, please let me know.

    I have set up a store for the company I work for. We currently have an Ecom site that is basically crap, so we are developing our own in Zen. We offer around 36000 items, but we are limiting the number that you can browse. Still we want all 36000 to be available through search.

    The way I am handling that is to have levels (products_status) of items. Status 1 is of course a regular item that you can click through the catagories to get to. Status 2 is only searchable so you can only see these items if you search for them, or use an item number (out of one of our catalogs). There is actually a 3rd level where you can only order an item by using the Quick Order mod and typing in an item number.

    All that to set up my actual question. I have it working by modifying the header.php file located at

    includes/modules/pages/advanced_search_result/header.php

    I have tried to override this file, but I was unsure of the path I needed to use to override it. I have tried several things, but none of them have worked. Perhaps I just need to overwrite the file instead of overriding it.

    Any help is appreciated. Also, like I said, if I there is a better way to do this whole system then let me know.
    Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: modifying the header.php file for advanced_search_result

    products_status is a field used extensively in the core code to manage products ...

    You should really look at adding your own field for this as you are changing the logic of the code in a bazzilion places ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3

    Default Re: modifying the header.php file for advanced_search_result

    Shouldn't the rest of the code just ignore anything that isn't status 1?
    Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.

  4. #4

    Default Re: modifying the header.php file for advanced_search_result

    Eh, I am already seeing the pitfalls in this... unfortunately I don't know if I can modify it before my deadline of next Monday...
    Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.

  5. #5

    Default Re: modifying the header.php file for advanced_search_result

    I think I have found a nice solution using the hideCategories mod. I can set my 3rd level (order by item number only) products as completely hidden and my 2nd level products (search, item entry only) to hidden from display. I think this will suit our needs. Without testing extensively, this seems to work and is much slicker and doesn't ruin the code as my previous method was.
    Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.

 

 

Similar Threads

  1. editing header.php in advanced_search_result
    By simon1066 in forum General Questions
    Replies: 1
    Last Post: 19 Sep 2011, 12:56 PM
  2. Is there a way to override the pages header.php file...
    By retched in forum Contribution-Writing Guidelines
    Replies: 3
    Last Post: 10 Jun 2011, 08:14 PM
  3. Problems after modifying header.php
    By eazy in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jan 2010, 07:17 AM
  4. How can I include a php file in the header section?
    By Andy_R in forum General Questions
    Replies: 3
    Last Post: 11 Sep 2009, 05:50 PM
  5. advanced_search_result.php
    By BABLTD in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 12 Aug 2008, 11:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg