Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    73
    Plugin Contributions
    0

    Default advanced_search_result.php

    I am trying to call tha advanced search with the following code.... all i get is a 404 error

    <form action="advanced_search_result.php" method="get" name="quick_find" id="quick_find">
    <label class="hidden" for="s"><?php _e('<b>or</b> products:'); ?></label>
    <input type="text" name="keywords">
    <input type="submit" value="Product Search">
    </form>

    searching fro example "cards" which works in the default side bar search gives me >>>

    http://www.###domain name###.co.uk/store/index.php=advanced_search_result?keywords=cards

    404 error

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: advanced_search_result.php

    Quote Originally Posted by BABLTD View Post
    I am trying to call tha advanced search with the following code.... all i get is a 404 error

    <form action="advanced_search_result.php" ...
    Unless you've added some custom files for some reason to create an advanced_search_result.php script to handle your form processing, that's not going to work.

    Try using the Zen Cart URL of index.php?main_page=advanced_search_result
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: advanced_search_result.php

    Thanks for helping...


    So I need to change it to

    <form action="index.php?main_page=advanced_search_result" method="get" name="quick_find" id="quick_find">
    <label class="hidden" for="s"><?php _e('<b>or</b> products:'); ?></label>
    <input type="text" name="keywords">
    <input type="submit" value="Product Search">
    </form>

  4. #4
    Join Date
    Oct 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: advanced_search_result.php

    When I do that I get

    http://www.##domain name##.co.uk/store/index.php?keywords=cards

    and the page remains on the index.......

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: advanced_search_result.php

    What exactly are you trying to accomplish?
    Why aren't you using the built-in search boxes?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Oct 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: advanced_search_result.php

    I have a custom layout so I didn't want to use the side box.

    I was advised the above code would work (which it doesn't).

 

 

Similar Threads

  1. Replies: 3
    Last Post: 10 Apr 2013, 03:46 PM
  2. editing header.php in advanced_search_result
    By simon1066 in forum General Questions
    Replies: 1
    Last Post: 19 Sep 2011, 12:56 PM
  3. Headers Sent Error: advanced_search_result.php
    By itwasntme in forum General Questions
    Replies: 0
    Last Post: 25 Jun 2009, 05:40 PM
  4. modifying the header.php file for advanced_search_result
    By monkeytown in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Jan 2008, 08:53 PM
  5. Replies: 2
    Last Post: 5 Dec 2007, 04:28 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