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

What files can add content to the very left and right column

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-26-2005, 09:03 PM
 
azo313 azo313 is offline
 

Newbie
  
Join Date: Mar 2005
Posts: 3
 

Default What files can add content to the very left and right column

There are so many TPL files I have no idea which does what.

I am wondering which TPL file(s) to edit to add content to the very left and right columsn at the bottom. For example, under the "help" box on the left, and under the "authentication" box on the right.

Is there any type of instruction list that tells what files can change what portions of the site?

Also, how can I edit what links show up in the "Help" box on the left. How can I edit the content in the existing links, and more importantly, add new links (of new pages) in there?

Thanks!
__________________
Version 4.0.12
Reply With Quote
  #2  
Old 03-27-2005, 12:42 AM
 
Bella Forma Bella Forma is offline
 

Senior Member
  
Join Date: Nov 2004
Location: Australia
Posts: 150
 

Default

skin1/customer/home.tpl is your starting point that's where you will find the layout.

To find out what templates are being called from a particular page your viewing you can use webmaster mode, if you haven't discovered it yet have a look in the manual it is described in there.

Regarding the links in the help box have a look in skin1/help.tpl (which is called from skin1/customer/home.tpl)

Hope that helps... have fun!
__________________
X-Cart Gold 4.0.12
X-AOM, X-RMA, X-FancyCat
Apache/Linux Server
PHP 4.3.8
Reply With Quote
  #3  
Old 03-27-2005, 11:27 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default Adding another box on the right/left

I have the same question...I know the Home.tpl, but the question is how to add it? What's the code for it? Are there any other files that I need to add or modify to get it work?
I do have some JavaScript knowledge, but not sure how these files are associated with one and another to make it work.

I actually, need at least two more boxes: one on the righ hand side, I would like to include a picture and text underneath it. the other on the left hand side that contains other static pages (e.g. photo album, size reference chart etc..).

One more question: I would like to add the greeting customer by first name inside the minicart...will I be able to do it? and how?

Can anyone help with more details?




http://www.PetAdorn.com
p.s. I just purchased the X-cart this month.
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
  #4  
Old 03-28-2005, 01:06 AM
 
Alphatim Alphatim is offline
 

Newbie
  
Join Date: Mar 2005
Location: Portugal, Lisboa
Posts: 4
 

Default

Hello Myth,

Maybe is better if you start to understand the template engine that x-cart uses: Smarty

You have to know a bit of html, if so, keep reading.

As you can see, inside your "customer/home.tpl" you have:
Code:
{include file="customer/menu_cart.tpl"}
You see a smarty function (include) that tells to smarty include the template file named "menu_cart.tpl". Ok, let's open this tpl that is located at "customer/".

Once is open you can see at the top:
Code:
{include file="customer/main/minicart.tpl"}
Oh! Another include! Once again, let's follow the path and open the "minicart.tpl". Voilц║, you are inside your "minicart.tpl", now you only have to insert the welcome msg:
Code:
{if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "")} {$lng.lbl_welcome_back}, {$smarty.cookies.GreetingCookie|replace:"\'":"'"} {/if}
I didn't invent this peace of code, I just copy from customer/main/welcome.tpl. How did I found this tpl? Like Bella Forma said:
Quote:
To find out what templates are being called from a particular page your viewing you can use webmaster mode, if you haven't discovered it yet have a look in the manual it is described in there.
Everything you need is inside the template files; you only have to search and copy/past/add/modify a bit. It is easier to achieve your needs if you start to understand how smarty works and how x-cart works with smarty. Hope this helps you a bit.

Best regards.
__________________
X-Cart: Gold 4.0.13
OS: Linux (Fedora)
PHP: 4.3.10
MySQL: 4.0.22
Reply With Quote
  #5  
Old 03-28-2005, 11:58 AM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default

Thank you \ Alphatim
It works!!!
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:48 AM.

   

 
X-Cart forums © 2001-2020