Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

manufacturers product listing


Guest

Recommended Posts

Posted

If I select a manufacturer in the manufacturers drop down box in the manufacturer's info box, the search page appears. How do I change it so a listing of all the products appears rather than having to complete the search page? It is rather annoying to have to complete the search form every time.

Posted

hmmmmmm. I thought I had the original code for the manufacturers.php file

 

Looking at /includes/boxes/manufacturers.php I think thtis is thte code that sends me to the search box.

 

'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id());

}

 

From the /includes/boxes/manufacturers_info.php, The file that lists other products by a manufacturer is

 

<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=manufacturer&manufacturers_id=' . $manufacturer['manufacturers_id']) . '" target="_blank">

 

I am not sure how to change the Onchange command to accomplish redirect to a list of products fy manufacturer. Any suggestions?

Posted

here is my code:

which i think is the default

 

--- START CODE

 

'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id());

}

 

new infoBox($info_box_contents);

 

--- END CODE

 

looks the same as yours

 

mine goes to index (list of products) and filters them by manufacturer...

maybe there is a setting in the admin area you have changed but i cant think of one...

always here to offer some useless advice....

Posted

Now this presents a problem. I replaced the manufactures.php file from the original install and the result remains the. Is there a way to to hack the manuafacturers box using the code from the manufacturers_info box file?

Posted

have a look at the index.php there are the filters and also the call to search

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

have :D

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

why don't you just modify the form to send to index.php instead of advanced_search.php?

 

try exchanging MAX MANUFACTURERS LIST for 'index.php' (in the quotes ;) )

 

i would think MAX MANUFACTURERS LIST would be set in includes/languages/english.php as it is displayed every page

always here to offer some useless advice....

Posted

I replaced the MAX MANUFACTURERS LIST for the index.php file with no luck. The same thing happens.

 

 

$info_box_contents[] = array('form' => tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'),

 

'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . 'index.php' . '" style="width: 100%"') . tep_hide_session_id());

}

 

Is there some other MAX MANUFATURERs LIST that should be changed as well.

 

I replace the index file with the I used when I originally installed OScommerce and I receive the same results......... forwarded to the search form.

Posted

Since for whatever reason it is going to the search form, is there a way to deifne the search criteria to include all products and execute the search. THis would accomplish listing all products by a particular manufacturer. The manuafacturer and all catagories is already specified in the search form.

Posted

i see the form is sending by 'GET'

when you inputted 'index.php' as the 'to' page did the manufacturers id come up in the url bar?

 

if so then it is sending it to index.php and for some reason index.php is then forwarding to search page. you vould echo HTTP_GET_VARS['manufacturers_id'] on index to prove this is being passed correctly.

 

if this is the case, have a look in the index page for HTTP_GET_VARS['manufacturers_id'] and see if you can see where it is using it to redirect if it is at all!!

 

this problem is totally confusing me because if you have gone back to default oscommerce i cannot see why it is not doing as expected! but i want to find out!!!

always here to offer some useless advice....

Posted

I think the manufacturers_id is as well as the name is , infact, passed becuase it shows up in the advanced form.

 

I have tried the echo with not success. I placed this is the <body>

 

 

<p><?php echo HTTP_GET_VARS['manufacturers_id'] ?></P>

  • 3 weeks later...
Posted

When a designer( manufacturer) is selected, the page is forwarded to the advanced search form with the designer's name plugged into the form. How would I enter the minimum price as $1.00 and the maxamum price as say $1000.00 and then execute the search. Then all the products for the manufacturer would appear.

 

http://www.needlepointbackbay.com

Posted

your echo is wrong

 

<p><?php echo HTTP_GET_VARS['manufacturers_id'] ?></P>

 

should be

 

<p><?php echo $HTTP_GET_VARS['manufacturers_id'] ?></P>

 

 

i think

always here to offer some useless advice....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...