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

Howto create a new module

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-03-2011, 09:56 AM
  wank3r's Avatar 
wank3r wank3r is offline
 

eXpert
  
Join Date: Aug 2006
Posts: 291
 

Question Howto create a new module

Hi everyone,

I want to create a custom module in the default template Light & Lucid (2-column), on the left side of the front-end and it should just contain 1 image - an image of a credit card vendor.

All I know is that I must create my own .tpl file and include it in the home.tpl file.

My issues here are:

1. Where should my MYCUSTOM.TPL file be placed?
2. There are several home.tpl files in this template, so which one do I add my custom .tpl file to?
3. How can I create language labels for this module (English and one native language)?

My only reference is this post: http://forum.x-cart.com/showthread.php?t=1480&highlight=create+a+new+modul e+box so can anyone please specify the steps in details on how to accomplish this please?

Thanks in advance!
__________________
Powered by X-Cart Gold: 4.4.4/4.4.5
Reply With Quote
  #2  
Old 11-08-2011, 04:48 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Howto create a new module

skin/%your_skin%/ - contains skin specific files / templates.
skin/common_files/ - contains files and templates used in all skins until they appear in the %your_skin% skin directory.

In other words to customize some common template you should copy it to the skin/%your_skin%/ directory preserving sub-folders structure.

To customize the home page of 2-columns skin copy -> skin/common_files/customer/home.tpl to -> skin/2-columns/customer/home.tpl and make the necessary changes to skin/2-columns/customer/home.tpl

X-Cart:Storefront Design and Layout
X-Cart:Customizing storefront
X-Cart:Editing Skin Files
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
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 11:49 PM.

   

 
X-Cart forums © 2001-2020