Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hard code a category link?


renix

Recommended Posts

Posted

I have a category on my site (www.thesailstore.com) called Standard Spinnakers. I would like to have that category link to a new page I've created, instead of it linking to the list of products in that category. Does anyone have any ideas on how this can be accomplished?

 

Thanks,

Mike Harrison

Posted

Hi,

 

If you are happy with your categories - I would simply hardcode the entire category box. Drop the html code into includes/boxes/categories.php between the exisiting html code (as this will affect the page layout) and comment out (//) the exisiting php code.

 

The downside, is that changes will not be automatic, the uspide is that it will reduce dB queries and of course, allow you to send people wherever you want!

HTH

 

BrianD

Posted
Hi,

 

If you are happy with your categories - I would simply hardcode the entire category box. Drop the html code into includes/boxes/categories.php between the exisiting html code (as this will affect the page layout) and comment out (//) the exisiting php code.

 

The downside, is that changes will not be automatic, the uspide is that it will reduce dB queries and of course, allow you to send people wherever you want!

HTH

 

BrianD

 

That's a great idea, Brian, but that would create some problems down the road since I'll be adding a lot of categories. FYI: I did find some threads that helped me solve the problem.

 

This one allows you to hide a category (I hid my Standard Spinnakers category)

http://www.oscommerce.com/forums/index.php?showtopic=176258

 

This one allowed me to add a hard coded category to the dynamic list. So I added a new Spinnakers category and linked it to my new page.

http://www.oscommerce.com/forums/index.php?showtopic=137615

Archived

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

×
×
  • Create New...