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

Customizing content on home page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-09-2009, 01:40 AM
 
maximillian maximillian is offline
 

Advanced Member
  
Join Date: Jan 2009
Posts: 73
 

Default Customizing content on home page

So, I've tried to find soultion for this, but no luck.

1) On the homepage I need Bestsellers to appear below Featured products.

2) Beside Bestsellers and Featured products I need to add another dialog box on homepage, with some static HTML content.

Can anyone point me to right direction? Thanks!
__________________
X-Cart GOLD 4.1.11.
Reply With Quote
  #2  
Old 06-09-2009, 02:00 AM
  ElegantXMods.com's Avatar 
ElegantXMods.com ElegantXMods.com is offline
 

Advanced Member
  
Join Date: Apr 2009
Location: Stirling, UK
Posts: 94
 

Default Re: Customizing content on home page

Hi there,

The file you're looking to modify is skin1/customer/home.tpl (make a backup of this file before proceeding!)

It should be reasonably simple to re-order the content boxes, just cut and paste the relevant sections.

To create new boxes filled with static content, save the following code to a new file (lets say its called static_content.tpl) and place it in your skin1/customer/ folder.

Code:
{capture name=static_content} ... PLACE YOUR CUSTOM HTML HERE {/capture} {include file="customer/menu_dialog.tpl" title="ENTER TITLE OF BOX HERE" content=$smarty.capture.static_content}

Now add the following line in home.tpl where you would like to place the box:

Code:
{include file="customer/static_content.tpl" }
__________________
John
ElegantXMods.com

QuickOrder AJAX-based search and ordering system now available
giving you complete control over how customers browse and search for your products. Click here for details.
PriceSlider - easily filter categories by price range - only $9.99 - details here

X-Cart 4.1, X-Cart 4.2 on Windows/IIS and Linux/Apache.
Reply With Quote
  #3  
Old 06-09-2009, 02:58 AM
 
maximillian maximillian is offline
 

Advanced Member
  
Join Date: Jan 2009
Posts: 73
 

Default Re: Customizing content on home page

That was my idea generally, and this is how I manage to rearrange and add/remove boxes in vertical menus, but it doesn't work when it comes to main content which consists of dialog_message.tpl and home_main.tpl.

I've looked at these tpls, but couldn't find the solution.
__________________
X-Cart GOLD 4.1.11.
Reply With Quote
  #4  
Old 06-09-2009, 04:59 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Customizing content on home page

For the homepage content, you need to modify skin1/customer/main/welcome.tpl
__________________
xcartmods.co.uk
Reply With Quote
  #5  
Old 06-09-2009, 05:57 AM
 
maximillian maximillian is offline
 

Advanced Member
  
Join Date: Jan 2009
Posts: 73
 

Default Re: Customizing content on home page

BINGO!
That's the one I need!
Thanks PhilJ!
__________________
X-Cart GOLD 4.1.11.
Reply With Quote
  #6  
Old 06-09-2009, 06:40 AM
 
carpeperdiem carpeperdiem is offline
 

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

Default Re: Customizing content on home page

Quote:
Originally Posted by maximillian
That was my idea generally, and this is how I manage to rearrange and add/remove boxes in vertical menus, but it doesn't work when it comes to main content which consists of dialog_message.tpl and home_main.tpl.

I've looked at these tpls, but couldn't find the solution.

Learn how to use WEBMASTER MODE. You will never ask "where is this template" again, as webmaster mode will always tell you.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #7  
Old 06-09-2009, 06:46 AM
 
maximillian maximillian is offline
 

Advanced Member
  
Join Date: Jan 2009
Posts: 73
 

Default Re: Customizing content on home page

Aaahhh!
I totally forgot about Webmasters mode!
Thanks carpeperdiem!
__________________
X-Cart GOLD 4.1.11.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:50 AM.

   

 
X-Cart forums © 2001-2020