Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2009
    Posts
    86
    Plugin Contributions
    0

    Default adding manufacturers id to advanced search button

    Trying to create a button for advanced search, trying to add to this statement:
    /index.php?main_page=advanced_search_result&search_in_description=1 &keyword="+document.getElementById('partnum1').value;

    Trying to add $manufacturer_id=1, tried both:

    /index.php?main_page=advanced_search_result&$manufacturer_id=1&search_in_descript ion=1&keyword="+document.getElementById('partnum1').value;
    /index.php?main_page=advanced_search_result&search_in_description=1&keyword="+doc ument.getElementById('partnum1').value+"&$manufacturer_id=1";
    neither 1 works, bith show a blank page after the heading and generate an error log :
    PHP Fatal error: Call to undefined function zen_get_products_model() in /home/total/public_html/includes/modules/total/product_listing.php on line 140
    Pulling what little hair i have left out, and advice would be great.
    Jeff
    oh, link lol:
    http://totalequipmentparts.com/index..._page=home_dev

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: adding manufacturers id to advanced search button

    Quote Originally Posted by jeffiec View Post
    PHP Fatal error: Call to undefined function zen_get_products_model() in /home/total/public_html/includes/modules/total/product_listing.php on line 140
    That means exactly what it says: the function zen_get_products_model() is not defined. Is that an extra_function eg part of some plugin? And what is the function supposed to do?

    I believe your template name is yorkshire_clean, so where does includes/modules/total/product_listing.php come from?

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: adding manufacturers id to advanced search button

    /index.php?main_page=advanced_search_result&$manufacturer_id=1&search_in_descript ion=1&keyword="+document.getElementById('partnum1').value;
    You never use a $ (indicating a PHP variable) this way in a URL. Try &manufacturer_id=1 in the URL. (This will most likely not affect the other error you are getting.)

    Also make sure that manufacturer_id is the correct name of the variable.
    Last edited by gjh42; 15 Jul 2013 at 11:03 PM.

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: adding manufacturers id to advanced search button

    Continuing from Glenn's post the correct variable is $manufacturers_id (or manufacturers_id depending where it is used).

 

 

Similar Threads

  1. v139h Some Manufacturers in Advanced Search not showing
    By llynix in forum General Questions
    Replies: 2
    Last Post: 27 Feb 2013, 01:49 AM
  2. Problem showing all manufacturers in advanced search
    By chriscops in forum General Questions
    Replies: 3
    Last Post: 11 Nov 2010, 05:30 PM
  3. Advanced Search: Trouble searching manufacturers
    By AmirGTR in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 5 Jan 2010, 05:48 AM
  4. Advanced search - search manufacturers without keywords
    By etrader in forum General Questions
    Replies: 4
    Last Post: 19 Sep 2006, 06:16 AM

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