Forums / Templates, Stylesheets, Page Layout / Modifying the Advanced Search and similar pages

Modifying the Advanced Search and similar pages

Locked

Views: 640

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
3 Aug 2009, 11:24 PM
#1
jbarrick avatar

jbarrick

Zen Follower

Join Date:
Aug 2008
Posts:
218
Plugin Contributions:
0

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?main_page=search_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?

3 Aug 2009, 11:38 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Modifying the Advanced Search and similar pages

jbarrick:

/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.

4 Aug 2009, 12:32 AM
#3
jbarrick avatar

jbarrick

Zen Follower

Join Date:
Aug 2008
Posts:
218
Plugin Contributions:
0

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

 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'
                                                        ),