Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

removing powered by xcart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 07-19-2009, 01:25 PM
 
benjyboy benjyboy is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 38
 

Default 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!
__________________
X-Cart 4.2.2 Pro
Apache/2.0.52 (Red Hat)
PHP 4.4.9
MySQL 5.0.83
Reply With Quote
  #12  
Old 07-20-2009, 04:21 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: removing powered by xcart

Post your code
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #13  
Old 07-22-2009, 12:30 AM
 
benjyboy benjyboy is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 38
 

Default 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}
__________________
X-Cart 4.2.2 Pro
Apache/2.0.52 (Red Hat)
PHP 4.4.9
MySQL 5.0.83
Reply With Quote
  #14  
Old 07-22-2009, 04:19 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #15  
Old 07-22-2009, 04:33 AM
 
benjyboy benjyboy is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 38
 

Default Re: removing powered by xcart

What I want really, is the link on all pages
__________________
X-Cart 4.2.2 Pro
Apache/2.0.52 (Red Hat)
PHP 4.4.9
MySQL 5.0.83
Reply With Quote
  #16  
Old 07-22-2009, 04:38 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default 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>
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #17  
Old 07-22-2009, 05:50 AM
 
benjyboy benjyboy is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 38
 

Default 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?
__________________
X-Cart 4.2.2 Pro
Apache/2.0.52 (Red Hat)
PHP 4.4.9
MySQL 5.0.83
Reply With Quote
  #18  
Old 07-22-2009, 05:51 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote

The following user thanks carpeperdiem for this useful post:
gabor jakab (09-30-2009)
  #19  
Old 07-22-2009, 08:03 AM
 
benjyboy benjyboy is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 38
 

Default 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?
__________________
X-Cart 4.2.2 Pro
Apache/2.0.52 (Red Hat)
PHP 4.4.9
MySQL 5.0.83
Reply With Quote
  #20  
Old 07-23-2009, 04:29 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
gabor jakab (09-30-2009)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:48 AM.

   

 
X-Cart forums © 2001-2020