Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need help with this code


sam6

Recommended Posts

Ok I have this for diplaying catagorie name and it works fine it displays the current catagorie.

<?php echo ucwords(strtolower($catagories('catagories_name'))); ?>

 

i would also like to display the parent catagorie when there is one any ideas.

 

thanks

Link to comment
Share on other sites

I cant let dthis one get away i have been working on it all day!

I need to display the catagorie folowed py the sub catagorie cinda like the bread crumbs which i know nothing about yet.

The above code works for diplaying the current catagorie i need to chang or make a nother one for displaying the parent catagorie.

Link to comment
Share on other sites

Ok I have this for diplaying catagorie name and it works fine it displays the current catagorie.

<?php echo ucwords(strtolower($catagories('catagories_name'))); ?>

 

i would also like to display the parent catagorie when there is one any ideas.

 

thanks

Nobody wants to give me help with this?

Link to comment
Share on other sites

Look at how the breadcrumb works.

Ya i looked at how they work not that i understan compleatly!

If i call the breadcrumbs.php it will list all that is in the trail>

I just want to display the parent catagory along side the current catagory.

i have it working for the current catagory the parent catagory is a little more challanging i guse?

 

I will keep trying

thanks

Link to comment
Share on other sites

  • 1 year later...
Ya i looked at how they work not that i understan compleatly!

If i call the breadcrumbs.php it will list all that is in the trail>

I just want to display the parent catagory along side the current catagory.

i have it working for the current catagory the parent catagory is a little more challanging i guse?

 

I will keep trying

thanks

 

Did you ever find the solution for this? I am interested in doing this as well.

Link to comment
Share on other sites

you could duplicate the tep_get_parent_categories - remove the recursion - and make it return the category's parent's name. That function is in the catalog\includes\functions\general.php

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...