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

how to add custom side blocks?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-18-2005, 11:56 AM
 
liaison liaison is offline
 

Newbie
  
Join Date: Dec 2004
Posts: 8
 

Default how to add custom side blocks?

Hello, this question has probberbly been asked b4,

is there a way i can add credit card logos and my digicert ssl logo to my shop front in a block on the left hand side? i am new to x-cart so please excuse my n00b'nes.
__________________
x-cart-4.0.9gold
Reply With Quote
  #2  
Old 01-18-2005, 12:47 PM
 
wapiticboy wapiticboy is offline
 

Advanced Member
  
Join Date: Feb 2004
Location: Colorado Springs, CO
Posts: 57
 

Default Look at mine

look at my site..you will see mine..if that is how you wanna do it can tell you how..
__________________
Al
Wapiticboy
\"When all else fails...PUNT!
X-Cart 4.0.18 & 4.1.2 Pro versions installed on various websites
FreeBSD 4.8-RELEASE
MySQL 4.0.27
PERL v5.008008
PHP 4.4.2
Net::SSLeay 1.30
libCURL libcurl/7.15.3
OpenSSL/0.9.7e zlib/1.2.2
Reply With Quote
  #3  
Old 01-18-2005, 01:29 PM
 
liaison liaison is offline
 

Newbie
  
Join Date: Dec 2004
Posts: 8
 

Default

Yeah thats what i want to do! :P hows it done???
__________________
x-cart-4.0.9gold
Reply With Quote
  #4  
Old 01-18-2005, 01:46 PM
 
wapiticboy wapiticboy is offline
 

Advanced Member
  
Join Date: Feb 2004
Location: Colorado Springs, CO
Posts: 57
 

Default How I did it

you can build a .tpl for each logo/etc. you want in that box area or you can build one with all the logos/etc in one tpl.

I would recommend you put one logo/etc. in an individual tpl for each..that way it is easily changed/added/deleted etc.

my tpl named "authorizenet_logo.tpl in the store's root in my case located at ecomm/authorizenet_logo.tpl
here is the code I used..

<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td align="center" valign="top">
[img]{$ImagesDir}/anetpow.gif[/img]
</tr>
</table>


once you build the tpl you want then go to ..customer/home.tpl
open home.tpl and then
add the link to your new tpl under the last menu file call which is usually help.tpl

my home.tpl currently reads as follows:
{* include file="help.tpl" *} (note that I have this disabled in my design
{include file="secure_cert.tpl"}
{include file="bbbonline.tpl"}
{include file="scanalert.tpl"}
{include file="cspringsonline_link.tpl"}
{include file="authorizenet_logo.tpl"} the new one you would add with your named file

the beauty of making one logo per tpl is that you can move them wherever you want in your design..

OBTW:
here is my code for my credit card image string:
file name: ccards_accepted.tpl

<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td align="center" valign="top">
[img]{$ImagesDir}/payments_accepted.gif[/img]
</tr>
</table>[/img]
__________________
Al
Wapiticboy
\"When all else fails...PUNT!
X-Cart 4.0.18 & 4.1.2 Pro versions installed on various websites
FreeBSD 4.8-RELEASE
MySQL 4.0.27
PERL v5.008008
PHP 4.4.2
Net::SSLeay 1.30
libCURL libcurl/7.15.3
OpenSSL/0.9.7e zlib/1.2.2
Reply With Quote
  #5  
Old 01-18-2005, 03:04 PM
 
liaison liaison is offline
 

Newbie
  
Join Date: Dec 2004
Posts: 8
 

Default

Thanks i am giving it a go now :P

~Edit to avoid double posting~

Wow thanks the code works great!!!! :P
__________________
x-cart-4.0.9gold
Reply With Quote
  #6  
Old 01-18-2005, 06:42 PM
 
wapiticboy wapiticboy is offline
 

Advanced Member
  
Join Date: Feb 2004
Location: Colorado Springs, CO
Posts: 57
 

Default YW

YW
__________________
Al
Wapiticboy
\"When all else fails...PUNT!
X-Cart 4.0.18 & 4.1.2 Pro versions installed on various websites
FreeBSD 4.8-RELEASE
MySQL 4.0.27
PERL v5.008008
PHP 4.4.2
Net::SSLeay 1.30
libCURL libcurl/7.15.3
OpenSSL/0.9.7e zlib/1.2.2
Reply With Quote
  #7  
Old 01-19-2005, 02:40 PM
 
g0t0pless g0t0pless is offline
 

eXpert
  
Join Date: Jul 2003
Posts: 360
 

Default

I've got a similar one on my website www.sarversystems.com
__________________
4.1.7
X-Cart Gold
Product Configurator Module
Advanced Order Management Module
RMA Module
Feature Compare Module
Blue Dream theme by 7Dana.com
Reply With Quote
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 09:50 AM.

   

 
X-Cart forums © 2001-2020