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)
-   -   Customizing content on home page (https://forum.x-cart.com/showthread.php?t=48005)

maximillian 06-09-2009 01:40 AM

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!

ElegantXMods.com 06-09-2009 02:00 AM

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" }

maximillian 06-09-2009 02:58 AM

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.

PhilJ 06-09-2009 04:59 AM

Re: Customizing content on home page
 
For the homepage content, you need to modify skin1/customer/main/welcome.tpl

maximillian 06-09-2009 05:57 AM

Re: Customizing content on home page
 
BINGO!
That's the one I need!
Thanks PhilJ!

carpeperdiem 06-09-2009 06:40 AM

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.

maximillian 06-09-2009 06:46 AM

Re: Customizing content on home page
 
Aaahhh!
I totally forgot about Webmasters mode!
Thanks carpeperdiem!


All times are GMT -8. The time now is 05:17 PM.

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