Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need a function


rodanny

Recommended Posts

Posted

Hello,

I need a function . I would like to input a category ( name or id) and return all path in backwards to root or one category parent, predefined.

 

ex.

 

root_category

subcategory1

subcategory2

subcategory21

subcategory22

subcategory221

Products_0

subcategory23

subcategory3

 

function tep_return_tree2prod(Producst_0)

 

------------------

Return:

Products_0

subcategory221

subcategory22

subcategory2

root_category

 

or.....

 

function tep_return_tree2prod(Producst_0,subcategory2)

 

---------------

Return

 

Products_0

subcategory221

subcategory22

subcategory2

 

Thank's and sorry for my poor english. ;)

Have a nice day

Danny

Posted

there is one called tep_generate_category_path in your catalog\admin\includes\functions\general.php

Archived

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

×
×
  • Create New...