Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2008
    Posts
    217
    Plugin Contributions
    0

    Default Modifying the Advanced Search and similar pages

    I am trying to get my advanced search page to display the products_weight field.

    http://www.bodykits.net/index.php?ma...earch_advanced

    also on similar pages such as http://www.bodykits.net/conversions/honda/civic/

    I have gone into /includes/extra_datafiles/fuctions_products_MY-TEMPLATE/functions_products_bodykits_net.php

    and defined products_weight just as other variables such as products_price and products_msrp are defined.

    I also currently have it set to display right after "Your Price".

    The data never makes it to the page. Clearly I am missing something. Where else do I need to define this field to get it to display?

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

    Default Re: Modifying the Advanced Search and similar pages

    Quote Originally Posted by jbarrick View Post
    /includes/extra_datafiles/fuctions_products_MY-TEMPLATE/functions_products_bodykits_net.php
    I'm not sure why you've got a "fuctions_products_MY-TEMPLATE" folder in there. Only the first level of files inside extra_datafiles is ever used. Subfolders below that are ignored. So, the file you mentioned won't be getting loaded.
    .

    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
    Aug 2008
    Posts
    217
    Plugin Contributions
    0

    Default Re: Modifying the Advanced Search and similar pages

    I found where I needed to add another definition of products_weight

    includes/extra_datafiles/sorter_class.php

    PHP Code:
     public $select = array( 'count'            => array( 'count( p.products_id ) as count' ),
                                
    'products'         => array( 'p.products_id',
                                                             
    'p.products_image',
                                                             
    'p.products_price',
                                                             
    'p.products_msrp',
                                                             

                                                             
    'p.products_weight',

                                                             
    'p.products_year_first',
                                                             
    'p.products_year_last',
                                                             
    'pd.products_name',
                                                             
    'pd.products_description',
                                                             
    'p.manufacturers_id'
                                                            
    ), 

 

 

Similar Threads

  1. Replies: 5
    Last Post: 20 Apr 2010, 12:54 PM
  2. Maintaining the user's search query in the advanced search box?
    By arniesbarmyarmy in forum General Questions
    Replies: 0
    Last Post: 26 Feb 2010, 01:27 PM
  3. Removing the 'Advanced Search' and changing basic search to title only
    By val-ent in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Aug 2008, 11:39 PM
  4. Modifying the Advanced Search Form Fields?
    By uruharacosplay in forum General Questions
    Replies: 0
    Last Post: 4 Mar 2008, 06:43 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