Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

modifying values for categories/cpath, "Home" Category


ThinkDirect

Recommended Posts

Just wanted to start off by saying hi to everyone and that I am new here. I recently found oscommerce and its everything I have hoped for so far.

 

I've been changing around a bit of code and have found myself in a bit of a problem. I downloaded the Dynamenu contribution and it works great. I decided I wanted to do a dynamic (nested) horizontal menu along the top. To do this, I removed the line thats along the header: Top->Catalog, etc.

 

Not sure if I can explain it right, but here it goes. On my left menu, I want it to show:

 

Home

Computers

Electronics

etc etc

 

I want the same on my Horizontal Menu. However, if I make a category called home, it uses a cpath for it automatically instead of me being able to modify it to my liking. Its the only one I want differently, so I can link it back to my 'home' page. Not quite sure how to go about doing this, for I am still pretty new to it.

 

I checked the categories.php (under /includes/boxes/) and tried looking through that. spent a few hours with no luck. Am I overlooking something simple? :lol: I just hope this can be resolves without removing the code completely and having me to input the data/cpaths on the menu manually for every page. :sweating:

 

Thanks.

Link to comment
Share on other sites

home would not be a category, it would be an html link

 

use the tep href function to keep sessions but it is easy enough, like this

<A HREF=<?=tep_href_link('index.php')?>></A>

 

HTH

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...