Results 1 to 10 of 10
  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).

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

    Default Re: advanced_search_result.php

    The simplest way to get the right code is to turn on the search sidebox, test that it works, then use your browser to View Source and grab the HTML that makes up the search box. Then you can insert that into your custom page.
    .

    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.

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

    Default Re: advanced_search_result.php

    Got it all working now - many thanks.

    I have another question that you may well be able to help with :

    In the WOZ install I want to be able to get the WP title and keyword datd to out put instead of the zens cart one.s on the pages that are WP.

    In the header file I wanted to write an if/else statement but this doesnt deem to work.

    I was going to do it the simple way and just have the wp_head loop first to get the titles and keywords out first where they exsist. So i have

    <?php
    /**
    * Common Template
    /**
    * load the module for generating page meta-tags
    */
    require(DIR_WS_MODULES . zen_get_module_directory('meta_tags.php'));
    /**
    * output main page HEAD tag and related headers/meta-tags, etc
    */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>
    <head>
    <?php wp_head(); ?>
    <title><?php echo META_TAG_TITLE; ?></title>
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />

    is there another way of doing this?

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

    Default Re: advanced_search_result.php

    You're posting duplicates of the same question all over the forum.

    Please continue that topic in your original discussion: http://www.zen-cart.com/forum/showthread.php?t=104951
    .

    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.

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

    Default Re: advanced_search_result.php

    Many thanks >>> please take a look.

 

 

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