CubeCartForums.org Documentation Area

CubeCartForums.org for CubeCart third-party documentation, modifications, skins and services
Permanent Link   Print This Page
Introduction CubeCart v3 CubeCart v4 Appendix Search

CubeCart Version 4 Documentation - Changing the Global Templates

Google Translate:

Changing the Global Templates


Open 'skins/YOURSKIN/styleTemplates/global'.

New files in v4.0.x

Copy 'index.php' from 'skins/classic/styleTemplates/global' to 'skins/YOURSKIN/styleTemplates/global'.

index.tpl

Change....
<script language="javascript" src="js/jslibrary.js" type="text/javascript"></script>
To...
<link href="skins/{VAL_SKIN}/styleSheets/lightbox.css" rel="stylesheet" type="text/css" media="all, screen" />
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/jslibrary.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
Change....
<body>
To...
<body onload="initialiseMenu();{EXTRA_EVENTS}">
Find....
{MAIL_LIST}
Add AFTER...
{SKIN}
Find....
</body>
Add BEFORE...
{DEBUG_INFO}

cart.tpl

Change....
<body>
To...
<body onload="initialiseMenu();">
Find....
</body>
Add BEFORE...
{DEBUG_INFO}

Misc

You may also have to change the padding amount for {SEARCH_FORM} as we have a new link in there. In index and cart.tpl files find...
<div style="padding-top: 72px;">{SEARCH_FORM}</div>
Change the value 72px to make it fit, this will just be trial and error to fit your site, if its a standard skin try changing to 60px.



Comments, Feedback, Suggestions and Documentation Submissions please post in the Documentation Chat Forum.