Changing the Box Templates
Open 'skins/YOURSKIN/styleTemplates/boxes'.
New files in v4.0
Copy 'index.php' and 'skin.tpl' from 'skins/classic/styleTemplates/boxes' to 'skins/YOURSKIN/styleTemplates/boxes'.
popularProducts.tpl
Change....
href="index.php?act=viewProd&productId={DATA.productId}"
To...
href="index.php?_a=viewProd&productId={DATA.productId}"
randomProd.tpl
Change....
href="index.php?act=viewProd&productId={PRODUCT_ID}"
To...
href="index.php?_a=viewProd&productId={PRODUCT_ID}"
Change....
href="index.php?act=viewProd&productId={PRODUCT_ID}"
To...
href="index.php?_a=viewProd&productId={PRODUCT_ID}"
saleItems.tpl
Change....
href="index.php?act=viewProd&productId={DATA.productId}"
To...
href="index.php?_a=viewProd&productId={DATA.productId}"
siteDocs.tpl
Change....
href="index.php?act=viewDoc&docId={DATA.doc_id}"
To...
href="index.php?_a=viewDoc&docId={DATA.doc_id}"
mailList.tpl
Change....
<strong>{LANG_EMAIL}</strong> <input name="email" type="text" size="14" maxlength="255" class="textbox" />
To...
<strong>{LANG_EMAIL}</strong>
<input name="email" type="text" size="14" maxlength="255" class="textbox" value="{LANG_EMAIL_ADDRESS}" onclick="this.value='';" />
language.tpl
Change....
value="switch.php?r={VAL_CURRENT_PAGE}&lang={LANG_VAL}"
To...
value="index.php?_g=sw&r={VAL_CURRENT_PAGE}&lang={LANG_VAL}"
currency.tpl
Change....
value="switch.php?r={VAL_CURRENT_PAGE}¤cy={VAL_CURRENCY}"
To...
value="index.php?_g=sw&r={VAL_CURRENT_PAGE}¤cy={VAL_CURRENCY}"
searchForm.tpl
Change....
<!-- BEGIN: search_form -->
<form action="index.php" method="get">
<span class="txtSession"><strong>{LANG_SEARCH_FOR}</strong></span> <input name="searchStr" type="text" class="searchBox" id="searchStr" value="{SEARCHSTR}" size="20" />
<input type="hidden" name="act" value="viewCat" />
<input name="Submit" type="submit" class="searchBtn" value="{LANG_GO}" />
</form>
<!-- END: search_form -->
To...
<!-- BEGIN: search_form -->
<form action="?" method="get">
<span class="txtSession"><strong>{LANG_SEARCH_FOR}</strong></span> <input name="searchStr" type="text" class="searchBox" id="searchStr" value="{SEARCHSTR}" size="20" />
<input type="hidden" name="_a" value="viewCat" />
<input name="Submit" type="submit" class="searchBtn" value="{LANG_GO}" />
<br /><a href="index.php?_a=search" class="txtLink" style="font-size: 9px;">{LANG_ADVANCED_SEARCH}</a>
</form>
<!-- END: search_form -->
session.tpl
Change....
class="txtSessionGrey">{LANG_WELCOME_GUEST}</span> <span class="txtSession">[</span><a href="index.php?act=login&redir={VAL_SELF}" class="txtSession">{LANG_LOGIN}</a> <span class="txtSession">|</span> <a href="cart.php?act=reg&redir={VAL_SELF}"
To...
class="txtSession">{LANG_WELCOME_GUEST} [</span><a href="index.php?_a=login&redir={VAL_SELF}" class="txtSession">{LANG_LOGIN}</a> <span class="txtSession">|</span> <a href="index.php?_g=co&_a=reg&redir={VAL_SELF}"
Change....
class="txtSessionGrey">{LANG_WELCOME_BACK} {TXT_USERNAME}</span> <span class="txtSession">[</span><a href="index.php?act=logout" class="txtSession">{LANG_LOGOUT}</a> <span class="txtSession">|</span> <a href="index.php?act=account"
To...
class="txtSession">{LANG_WELCOME_BACK} {TXT_USERNAME} [</span><a href="index.php?_a=logout" class="txtSession">{LANG_LOGOUT}</a> <span class="txtSession">|</span> <a href="index.php?_a=account"
shoppingCart.tpl
Change....
href="index.php?act=viewProd&productId={PRODUCT_ID}"
To...
href="index.php?_a=viewProd&productId={PRODUCT_ID}"
Change....
<div style="text-align: center; padding-top: 3px;"><a href="cart.php?act={CART_STEP}" class="txtviewCart">{LANG_VIEW_CART}</a></div>
To...
<!-- BEGIN: view_cart -->
<div style="text-align: center; padding-top: 3px;"><a href="index.php?_g=co&_a={CART_STEP}" class="txtviewCart" id="flashBasket">{LANG_VIEW_CART}</a></div>
<!-- END: view_cart -->
categories.tpl
Replace the entire contents with...
<!-- BEGIN: categories -->
<div class="boxTitleLeft">{LANG_CATEGORY_TITLE}</div>
<div class="boxContentLeft" style="padding: 2px;">
<ul>
<li class="bullet"><a href="index.php" class="txtDefault">{LANG_HOME}</a></li>
<!-- BEGIN: a -->
<!-- BEGIN: ul_start -->
<ul class="ul-nav">
<!-- END: ul_start -->
<li class="bullet"><a href="index.php?_a=viewCat&catId={DATA.cat_id}" class="txtDefault">{DATA.cat_name}</a></li>
<!-- BEGIN: ul_end -->
</ul>
<!-- END: ul_end -->
<!-- END: a -->
<!-- BEGIN: gift_certificates -->
<li class="bullet"><a href="index.php?_a=giftCert" class="txtDefault">{LANG_GIFT_CERTS}</a></li>
<!-- END: gift_certificates -->
<!-- BEGIN: sale -->
<li class="bullet"><a href="index.php?_a=viewCat&catId=saleItems" class="txtDefault">{LANG_SALE_ITEMS}</a></li>
<!-- END: sale -->
</ul>
</div>
<!-- END: categories -->
|