Jump to content

Sub-categories box


Guest neil_r

Recommended Posts

Guest neil_r

Hello all,

I'd like to create a new version of categories.inc.php to give a list of links to the sub-categories of a specific category.

I can create the new box and alter the global templates to show it; my problem is that I don't know how to alter the new version of categories.inc.php (let's call it sub_categories.inc.php) so that it only pulls certain (or any!) subcategories from the database. It appears that this was easy in v3 beacause you only needed to alter the cat_father_id in the line

$results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0");

CC 4 doesn't use this method. So my question is, how do I alter my new file sub_categories.inc.php to achieve this?

Regards,

Neil

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...