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)
-   -   Howto create a new module (https://forum.x-cart.com/showthread.php?t=61464)

wank3r 11-03-2011 09:56 AM

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!

qualiteam 11-08-2011 04:48 AM

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


All times are GMT -8. The time now is 11:27 PM.

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