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

Adding HTML Boxes on Main Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-23-2008, 03:30 PM
 
freemchr freemchr is offline
 

Member
  
Join Date: Apr 2008
Posts: 11
 

Default Adding HTML Boxes on Main Page

Hi Guys

How do I add a HTML box with a banner or some text on the main page? Similar to the news box or others.. Need to add a few different images and things..

Cheers
__________________
Version 4.1.9
Reply With Quote
  #2  
Old 04-23-2008, 03:57 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Adding HTML Boxes on Main Page

To give you an idea of some of the options already available, for some consistency, create a new .tpl inside the skin1/customer/ folder and call it something like, mycustombox.tpl

open up your newly created file (mycustombox.tpl) and add this inside it...
Code:
{capture name=mycustomdialog} I'm a dialog box!! {/capture} {include file="dialog.tpl" title="A Custom Dialog Box" content=$smarty.capture.mycustomdialog extra='width="100%"'} <br /> {capture name=mycustommenu} I'm a menu box!! {/capture} { include file="menu.tpl" dingbats="xlogo.gif" menu_title="A Custom Menu Box" menu_content=$smarty.capture.mycustommenu cellpadding=$fc_cellpadding} <br />


Then open up skin1/customer/home.tpl and locate one of the following TDs and place {include file="customer/mycustombox.tpl"} underneath them.

<td valign="top" width="100%"> (add include below this code for your main content)
<!-- central space -->

or

<td class="VertMenuLeftColumn"> (add include below this part for your left column)

or

<td class="VertMenuRightColumn"> (add include below this part for your right column)

If nothing shows up use cleanup.php to clean the cache.


Hope this helps.
__________________
Doms
kube v4.1.9
Reply With Quote
  #3  
Old 04-24-2009, 03:59 PM
 
Christofer Christofer is offline
 

eXpert
  
Join Date: Apr 2009
Location: Thessaloniki, Greece
Posts: 202
 

Default Re: Adding HTML Boxes on Main Page

can this work for v4.2.x?
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql)
Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server
Modules : X-Offer & X-Aom & One page checkout
Product tabs & Product downloads & many more
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 07:11 PM.

   

 
X-Cart forums © 2001-2020