Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Category specific banners


beckerm

Recommended Posts

Posted

Does anyone know how i can add category specific banners to the site??? I would like to offer sponsors for each category and have their banner show up for specific category.

Posted

the banner HTML code is in catalog\includes\footer.php It calls the banner functions (includes\functions\banner.php) where you could test a variable like $current_category_id.

 

In the banner manager you add an extra field to store the categories_id, a specific banner is shown.

 

Then in the banner function you adjust the query to pickup banners shown for this category and return the banner_url

Posted

http://www.oscommerce.com/community/contributions,2511/

 

I have installed this and I am very happy. Just need to figure out the french is all.

 

 

the banner HTML code is in catalog\includes\footer.php It calls the banner functions (includes\functions\banner.php) where you could test a variable like $current_category_id.

 

In the banner manager you add an extra field to store the categories_id, a specific banner is shown.

 

Then in the banner function you adjust the query to pickup banners shown for this category and return the banner_url

Archived

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

×
×
  • Create New...