Jump to content

Make current category clickable


Guest rhyan

Recommended Posts

Guest rhyan

I'm working on a new design and it's near completion. One thing I'd like to do is make the currently selected category clickable. I think this would be a great convenience.

For example, if I select a product in Statuary, which is under the parent category Patio & Garden the following is displayed in the product header:

Location: /Patio & Garden/Statuary

The parent category, Patio & Garden, is clickable, but the category the product is actually in, Statuary, is not.

I've looked through styleTemplates/content/viewProd.tpl and found that what needs to be changed is the php {CURRENT_DIR} refers to, but I'm not sure how to change this. styleTemplates/content/viewCat.tpl also calls for {CURRENT_DIR} in the category header.

I've looked through includes/content/viewProd.inc.php and found the line:

$view_prod->assign("CURRENT_DIR",getCatDir($prodArray[0]['cat_name'],$prodArray[0]['cat_father_id'], $prodArray[0]['cat_id'],$link=TRUE));
 but I have no idea what I would change in here, if anything at all.



A similar line appears in includes/content/viewCat.inc.php:		
$view_cat->assign("CURRENT_DIR",getCatDir($currentCat[0]['cat_name'],$currentCat[0]['cat_father_id'], $currentCat[0]['cat_id'], $link=TRUE));

I'm still a novice when it comes to php. Any suggestions?

Thank you,

Rhyan

;)

Link to comment
Share on other sites

  • 1 year later...

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...