Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need a little code help


bill110

Recommended Posts

Posted

this code is from a contribution for a search box. I want to be able to use the catagory names in the drop down list it creates as a link. What I want it to do is when you click the catagory name, go to the DEFAULT page with the selected catagory as the page to display. Here is the code for the drop down

<?php echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES)))) ?>

I am putting this in the header so I can remove the categories box.

I have tried using the tep_href_link function but I am unsure how to use this code in conjunction with it.

Any help is appreciated.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted

I now have It linking but I lose the session. Here is what I have now

<?php echo '<form action="' . tep_href_link(FILENAME_DEFAULT) . '" method="get">'. tep_draw_pull_down_menu('cPath', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES))), $cPath,'onchange="this.form.submit();"') ?>

Any ideas on how to keep the session?

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted

Force cookies to true is the simplest option.

else in tep_href_link(FILENAME_DEFAULT) see to it that oscid is passesd as a get argument.

 

Satish Mantri

 

I now have It linking but I lose the session. Here is what I have now

<?php echo '<form action="' . tep_href_link(FILENAME_DEFAULT) . '" method="get">'. tep_draw_pull_down_menu('cPath', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES))), $cPath,'onchange="this.form.submit();"') ?>

Any ideas on how to keep the session?

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Archived

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

×
×
  • Create New...