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 CubeCart v5 Appendix Search

CubeCart Version 4 Documentation - Upgrading the Content Templates

Google Translate:

Upgrading the Content Templates


Open 'skins/YOURSKIN/styleTemplates/content'.

New files in v4.3.7

Copy 'error.tpl', 'giftCert.tpl', 'search.tpl', 'recaptcha.tpl' and 'index.php' files from 'skins/classic/styleTemplates/content' to 'skins/YOURSKIN/styleTemplates/content'.

account.tpl

Only the address paths changed in this file.

Change....
<li class="account"><a href="index.php?act=profile" class="txtDefault">{TXT_PERSONAL_INFO}</a></li>
<li class="account"><a href="cart.php?act=viewOrders" class="txtDefault">{TXT_ORDER_HISTORY}</a></li>
<li class="account"><a href="index.php?act=changePass" class="txtDefault">{TXT_CHANGE_PASSWORD}</a></li>
<li class="account"><a href="index.php?act=newsletter" class="txtDefault">{TXT_NEWSLETTER}</a></li>
To...
<li class="account"><a href="index.php?_a=profile" class="txtDefault">{TXT_PERSONAL_INFO}</a></li>
<li class="account"><a href="index.php?_g=co&amp;_a=viewOrders" class="txtDefault">{TXT_ORDER_HISTORY}</a></li>
<li class="account"><a href="index.php?_a=changePass" class="txtDefault">{TXT_CHANGE_PASSWORD}</a></li>
<li class="account"><a href="index.php?_a=newsletter" class="txtDefault">{TXT_NEWSLETTER}</a></li>

cart.tpl

Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

changePass.tpl

Only the address paths changed in this file.

Change....
<form action="index.php?act=changePass" target="_self" method="post">
To...
<form action="index.php?_a=changePass" target="_self" method="post">

confirmed.tpl

Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

forgotPass.tpl

Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

gateway.tpl

Copy the entire template over, as it is unlikely your template would have been altered. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

index.tpl

Change....
<div class="boxContent">
To...
<div class="boxContent">
<!-- BEGIN: welcome_note -->
Change....
<!-- BEGIN: latest_prods -->
To...
<!-- END: welcome_note -->
<!-- BEGIN: latest_prods -->
Only the address paths have changed in the 'latest products area'. If your template latest products has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template and just change the file path references. Otherwise, just copy and past the code below... Change....
<a href="index.php?act=viewProd&amp;productId={VAL_PRODUCT_ID}"><img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" title="{VAL_PRODUCT_NAME}" /></a>
<br />
<a href="index.php?act=viewProd&amp;productId={VAL_PRODUCT_ID}" class="txtDefault">{VAL_PRODUCT_NAME}</a>
To...
<a href="index.php?_a=viewProd&amp;productId={VAL_PRODUCT_ID}"><img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" title="{VAL_PRODUCT_NAME}" /></a>
<br />
<a href="index.php?_a=viewProd&amp;productId={VAL_PRODUCT_ID}" class="txtDefault">{VAL_PRODUCT_NAME}</a>

login.tpl

Copy the entire template over, as it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

newsletter.tpl

Change....
<form action="index.php?act=newsletter" target="_self" method="post">
To...
<form action="index.php?_a=newsletter" target="_self" method="post">

profile.tpl

Copy the entire template over, as most of it is different and it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

reg.tpl

Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

step1.tpl

Copy the entire template over, as it's unlikely you would have customised this file. If your template has been customised, you can follow these simple changes.

Find this...
<span class="txtContentTitle">{LANG_LOGIN_TITLE}</span>
Paste below...
<div style="text-align: center; height: 25px;">
<div class="cartProgress">
{LANG_CART} --- <span class="txtcartProgressCurrent">{LANG_CHECKOUT}</span> --- {LANG_PAYMENT} --- {LANG_COMPLETE}
</div>
</div>

Change....
<form action="index.php?act=login&amp;redir={VAL_SELF}" target="_self" method="post">
To...
<form action="index.php?_a=login&amp;redir={VAL_SELF}" target="_self" method="post">

Change....
<a href="index.php?act=forgotPass"
To...
<a href="index.php?_a=forgotPass"

Change....
<a href="cart.php?act=reg"
To...
<a href="index.php?_g=co&amp;_a=reg&amp;co=1"

tellafriend.tpl

Copy the entire template over, as it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

unsubscribe.tpl

Copy the entire template over, as it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

However only the address paths changed in this file if you did want to upgrade.

Change....
<form action="index.php?act=unsubscribe" target="_self" method="post" style="text-align: center;">
To...
<form action="index.php?_a=unsubscribe" target="_self" method="post" style="text-align: center;">

viewCat.tpl

Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

viewOrder.tpl

Copy the entire template over, as a lot of it is different and it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

viewOrders.tpl

Copy the entire template over, as most of it is different and it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.

viewProd.tpl

Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.



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