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)
-   -   Adding links to Information bar? (https://forum.x-cart.com/showthread.php?t=52020)

dwpers 01-28-2010 12:49 PM

Adding links to Information bar?
 
Hi,

I would like to add 2 links to my information bar on the left that customers see when visiting the site.

I know I can add custom pages and set their order, but I found no place to add custom links. I have 2 other shops that I would like to link to in this manner.

Is this possible to do? Or will I have to be ghetto and create 2 separate pages and then use a meta refresh to the shop urls? :mrgreen:

gizmo 01-28-2010 02:09 PM

Re: Adding links to Information bar?
 
Links to what ? Additional info Or already created links?

If just links to somewhere else you can just edit your template and manually add the links.

Let us know what template your using and where exactly you want the links and maybe help a little here

cflsystems 01-29-2010 03:53 AM

Re: Adding links to Information bar?
 
You just need to find the template for the information bar (url will help here). Are you talking about the default speed bar at the top of page or th eone that's with the search? If it is the speed bar you can add links to it in admin/speed bar

dwpers 01-29-2010 07:16 AM

Re: Adding links to Information bar?
 
I'm using one of the default templates, you can see it here: http://www.royalepro.com

I want to add external links to the Information nav menu on the bottom left that link to my other sites. I haven't been able to find it in the template code yet.

cflsystems 01-29-2010 01:39 PM

Re: Adding links to Information bar?
 
You need to edit skin1/customer/help/menu.tpl

gizmo 01-29-2010 01:42 PM

Re: Adding links to Information bar?
 
Go to skin1/customer/help/menu.tpl

This is what you see as I see your using light and lucid:
ORIGINAL

{*
$Id: menu.tpl,v 1.5 2009/03/18 10:45:28 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{capture name=menu}

<ul>
<li><a href="help.php?section=contactus&amp;mode=update"> {$lng.lbl_contact_us}</a></li>
{foreach from=$pages_menu item=p}
{if $p.show_in_menu eq 'Y'}
<li><a href="pages.php?pageid={$p.pageid}">{$p.title|amp| escape}</a></li>
{/if}
{/foreach}
</ul>

{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_help content=$smarty.capture.menu link_href="help.php" additional_class="menu-help"}

ORIGINAL END

Just add what I have added in red below (works a treat)

MODIFIED

{*
$Id: menu.tpl,v 1.5 2009/03/18 10:45:28 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{capture name=menu}

<ul>
<li><a href="help.php?section=contactus&amp;mode=update"> {$lng.lbl_contact_us}</a></li>
{foreach from=$pages_menu item=p}
{if $p.show_in_menu eq 'Y'}
<li><a href="pages.php?pageid={$p.pageid}">{$p.title|amp| escape}</a></li>
{/if}
{/foreach}<li><a href="http://www.yourlink.com">My Link</a></li>
</ul>

{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_help content=$smarty.capture.menu link_href="help.php" additional_class="menu-help"}

END MODIFIED

So if you want another link just repeat added code below>
<li><a href="http://www.yourlink2.com">My Link 2</a></li>

And so on, hope this helps.

dwpers 02-01-2010 08:33 AM

Re: Adding links to Information bar?
 
Thanks mate! Works a treat!

gizmo 02-01-2010 09:19 AM

Re: Adding links to Information bar?
 
Quote:

Originally Posted by dwpers
Thanks mate! Works a treat!

Your welcome, just a thought if you have links where you want new window just add it this way.

<li><a href="http://www.mylink in newwindow.com" target="_blank">Hello New Window</a></li>

Not sure if you was aware that was all it just adds the target="_blank

And of course if you wanted title etc on mouse over etc, I won't go on, all can be found at w3 or any good css site.

dwpers 02-04-2010 09:03 AM

Re: Adding links to Information bar?
 
Yep, thanks I know HTML ;).

(just not the X-CART/SMARTY system yet)


All times are GMT -8. The time now is 06:55 AM.

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