| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Is this possible? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Is this possible?
I have a main catagory navigation list, then sub catagories. My customer wants to be able to click the name of the sub catagory and be taken to an external link in a new window. Its really just a link. I guess the question is, how do I make the name of the subcatagory a clickable link?
|
|||||||
#2
|
|||||||||
|
|||||||||
Does it have to be a subcategory ? If not just add a link to the categories menu to go where you like.
or How about add a bit of text including a link to the description part of the category so that it shows up when you click the category
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||
|
|||||||
He wanted it to be a sub..
The customer wanted it to be a subcatagory, but I talked him out of it completely and were just gonna make a new page with a tab to link to it.
|
|||||||
#4
|
|||||||
|
|||||||
Hello poboy,
If you would still like to create a link for your client, then in your subcategories.tpl locate your <a href> links to your home.php section. Please put them BEFORE your {section} code: {if $location.1 ne ""} {assign var="new_window" value="`target="_blank" `"} {/if} Please note the backticks within value. In your <a href> link do: <a {$new_window}href="home.php?cat={$cat}"> *sorry I might have not gotten the syntax correct, it's from memory.* Not the most elegant method, but I think it'll work.
__________________
Best Regards! Alan Search is my friend |
|||||||
#5
|
|||||||
|
|||||||
Thank you
Thanks for the help, I'll try it out.
|
|||||||
|
|||
X-Cart forums © 2001-2020
|