php shopping cart
free shopping cart   shopping cart software

Free Shopping Cart PHP Software


Back to Functions List
This Function Has Been Available Since:
(AFCommerce v 2.1,     Functions v 1.1)

Retrieves the names of the categories passed to this function.


array = afc_get_all_product_category_names (categories)

This function gets the category names of each category id that is passed to this function. This function can be used with another AFCommerce function, afc_get_all_product_categories, which will get all category ids for a particular product. Well this function takes an array of category id numbers, and returns an array with the names of each categories. Both arrays will match up with the same array indexes, so the first element of the category id array will match the first element of the returned array of names.


categories (string) - This MUST be an array with category id numbers. You may not pass a single category id, if you only want one name, you must declare the variable an array, set the first element to the category id you want the name of, and then pass it to this function.

Return Values

Returns an array of category names that match the category ids passed to this function.

Open Source: No

Paul's Examples

There are currently no examples for this function.

Back to Functions List


There are currently no posts for this topic.

AFCommerce Documentation

High End Website DevelopmentCompletely Free
Dating Service
Copyright 2004 - 2006
AFCommerce Website
And Cart Builder