X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Is this possible? (https://forum.x-cart.com/showthread.php?t=2708)

poboy 05-14-2003 04:44 PM

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?

shan 05-15-2003 01:57 AM

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

poboy 05-16-2003 04:32 AM

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.

Alan 05-17-2003 12:03 AM

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.

poboy 05-17-2003 06:46 AM

Thank you
 
Thanks for the help, I'll try it out.


All times are GMT -8. The time now is 11:36 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.