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)
-   -   removing powered by xcart (https://forum.x-cart.com/showthread.php?t=20317)

benjyboy 07-19-2009 01:25 PM

Re: removing powered by xcart
 
Thankyou very much for your help.
I now (almost) have what I wanted.. It now reads:
Site by My Company Name.
I cannot get the link to work though (a href).

Where the link is supposed to be is underlined, but it just does nothing!

cflsystems 07-20-2009 04:21 AM

Re: removing powered by xcart
 
Post your code

benjyboy 07-22-2009 12:30 AM

Re: removing powered by xcart
 
My code is as follows:
bottom.tpl remains untouched (ie: include file copyright.tpl & main/prnotice.tpl)
prnotice.tpl is:


{*
$Id: prnotice.tpl,v 1.11 2008/10/29 16:50:20 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{*** NOTE: If you are reselling X-Cart stores, please contact us (http://www.x-cart.com) before changing the Powered-by note here. ***}
{if $main eq "catalog" and $current_category.category eq ""}
Site by <a href="http://www.mycompany.co.uk">My Company</a>
{else}
Site by My Company
{/if}

cflsystems 07-22-2009 04:19 AM

Re: removing powered by xcart
 
Link code is ok. The way you have it this is a link only on the home page and that link takes you to the same home page right? So the link works but you probably won't see it because it will just refresh the same page. You could switch the code to show link on all pages and text on home page only.

benjyboy 07-22-2009 04:33 AM

Re: removing powered by xcart
 
What I want really, is the link on all pages

cflsystems 07-22-2009 04:38 AM

Re: removing powered by xcart
 
Then take out the if statement. Like this

Code:


{*
$Id: prnotice.tpl,v 1.11 2008/10/29 16:50:20 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{*** NOTE: If you are reselling X-Cart stores, please contact us (http://www.x-cart.com) before changing the Powered-by note here. ***}
Site by <a href="http://www.mycompany.co.uk">My Company</a>


benjyboy 07-22-2009 05:50 AM

Re: removing powered by xcart
 
Thankyou for that.
Now, I have the wording of the link on all pages (underlined too), but the actual link does not work. However, it works fine in the admin section?

carpeperdiem 07-22-2009 05:51 AM

Re: removing powered by xcart
 
and the http is not needed, as the site path is defined in config.php

Site by <a href="/">My Company</a>

BUT IN MY OPINION this entire template can and should be commented out. NOBODY cares who made your website. Unless the site designer demands such an inclusion (and I would negotiate that out of any deal).

Your site is built to sell your products. Anything that doesn't directly support the goal of the store is fluff.

I would simply remove (comment out) the entire include to the template.

My $.02

benjyboy 07-22-2009 08:03 AM

Re: removing powered by xcart
 
Thanks for the advice - taken on board..
But this is bugging me now (whether I implement it or not, it will annoy me until solved!).
The hyperlink only works on the admin end - the storefront has the wording underlined, but no link?

cflsystems 07-23-2009 04:29 PM

Re: removing powered by xcart
 
I don't know how you have it but this is how I put it on my 4.2.2 test site just to test what you are talking about.

prnotice.tpl file
----------------
{if $main eq "catalog" and $current_category.category eq ""}
Powered by X-Cart <a href="http://www.x-cart.com">{$sm_prnotice_txt}</a>
{else}
Powered by X-Cart {$sm_prnotice_txt}
{/if}
---------------------

Whit this setup the link will be a link only on home page customer side. All other pages including admin will have just text. If you want to have the link as link on all pages including admin just like I said before take out the if statement and leave only the link like this

prnotice.tpl file
----------------
Powered by X-Cart <a href="http://www.x-cart.com">{$sm_prnotice_txt}</a>
---------------------

It does work as I tested it and it does exactly what it supposed to do - show a clickable link on all pages


All times are GMT -8. The time now is 07:49 AM.

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