Jump to content

Help: How to make the location a link?


Guest

Recommended Posts

Hello! Thanks for dropping in...

I am attempting to make the current category a link on the view product page.

This is the relevant code in viewProd.tpl

<strong>{LANG_DIR_LOC}</strong> {CURRENT_DIR} > {TXT_PRODTITLE}




And this is what I believe to be the relevant code in viewProd.inc.php




$view_prod->assign("CURRENT_DIR",getCatDir($prodArray[0]['cat_name'],$prodArray[0]['cat_father_id'],$prodArray[0]['cat_id'],$link=TRUE));

At present,

Clicking on a product will take you to its page and shows the following at the top:

Location: > Category-subcat-is-in > Subcat-the-product-is-in

The Category-subcat-is-in is a link to the category the sub-category is in.

I want Subcat-the-product-is-in to be a link as well (to the sub-category).

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