Upgrading Templates from 1.4.7 -> 1.4.8
17 posts
• Page 1 of 1
Upgrading Templates from 1.4.7 -> 1.4.8
These are the only catalog tpl files that have changed:
Most themes, if created properly with fallback, should only have to worry about updating
catalog\view\theme\default\template\common\header.tpl
And if there are some product or home layout changes, you might need to update:
catalog\view\theme\default\template\common\home.tpl
catalog\view\theme\default\template\product\product.tpl
The rest are rarely changed between themes and you should have no problems with those being transparent.
The only changes to the stylesheet were mostly additions at the bottom and a few minor changes to different sections.
1. CHANGE:
TO:
2. CHANGE:
TO:
3. ADD TO THE BOTTOM:
That is all that was changed from 1.4.7 to 1.4.8
catalog\view\theme\default\template\checkout\cart.tpl
catalog\view\theme\default\template\checkout\confirm.tpl
catalog\view\theme\default\template\checkout\guest_step_1.tpl
catalog\view\theme\default\template\checkout\guest_step_2.tpl
catalog\view\theme\default\template\checkout\payment.tpl
catalog\view\theme\default\template\checkout\shipping.tpl
catalog\view\theme\default\template\common\header.tpl
catalog\view\theme\default\template\common\home.tpl
catalog\view\theme\default\template\information\contact.tpl
catalog\view\theme\default\template\mail\order_confirm.tpl
catalog\view\theme\default\template\module\bestseller.tpl
catalog\view\theme\default\template\module\cart.tpl
catalog\view\theme\default\template\module\featured.tpl
catalog\view\theme\default\template\module\latest.tpl
catalog\view\theme\default\template\module\special.tpl
catalog\view\theme\default\template\payment\worldpay_failure.tpl
catalog\view\theme\default\template\payment\worldpay_success.tpl
catalog\view\theme\default\template\product\category.tpl
catalog\view\theme\default\template\product\manufacturer.tpl
catalog\view\theme\default\template\product\product.tpl
catalog\view\theme\default\template\product\search.tpl
catalog\view\theme\default\template\product\special.tpl
Most themes, if created properly with fallback, should only have to worry about updating
catalog\view\theme\default\template\common\header.tpl
And if there are some product or home layout changes, you might need to update:
catalog\view\theme\default\template\common\home.tpl
catalog\view\theme\default\template\product\product.tpl
The rest are rarely changed between themes and you should have no problems with those being transparent.
The only changes to the stylesheet were mostly additions at the bottom and a few minor changes to different sections.
1. CHANGE:
- Code: Select all
#content .middle {
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
background: #FFFFFF;
padding: 10px 10px 1px 10px;
min-height: 380px;
}
TO:
- Code: Select all
#content .middle {
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
background: #FFFFFF;
padding: 10px 10px 1px 10px;
min-height: 30px;
}
2. CHANGE:
- Code: Select all
#content .bottom .center {
background: url('../image/content_bottom_center.png') repeat-x;
height: 5px;
margin-left: 5px;
margin-right: 5px;
}
TO:
- Code: Select all
#content .bottom .center {
background: url('../image/content_bottom_center.png') repeat-x;
height: 5px;
margin: 0 5px 10px 5px;
}
3. ADD TO THE BOTTOM:
- Code: Select all
.tags, .tags a {
font-style: italic;
font-size: x-small;
}
#module_cart .middle {
padding: 5px;
}
.cart_module_total {
padding: 0 3px 0 3px;
font-size: 0.9em;
color: #222;
}
.cart_remove {
margin-top: 3px;
background: url('../image/list_remove_btn.gif') no-repeat left center transparent;
padding-right:10px;
cursor:pointer;
}
.cart_remove_loading {
margin-top: 3px;
background: url('../image/ajax_load.gif') no-repeat transparent;
padding-right:10px;
}
.button_add_small, a.button_add_small:visited {
margin-top: 3px;
background: url('../image/button_add_small.png') no-repeat left center transparent;
padding:5px;
text-decoration: none;
cursor:pointer;
}
#content .middle .box {
float: left;
margin: 0 6px 10px 6px;
min-height: 0px;
}
#content .middle .box .middle {
width: 158px;
min-height: 0px;
}
That is all that was changed from 1.4.7 to 1.4.8

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18209
- Joined: Mon Jul 21, 2008 7:02 pm

Re: Upgrading Templates from 1.4.7 -> 1.4.8
To be honest, reading this makes it sound so easy but I'm afraid I'll fuck it up somehow.
Gerrit
Gerrit

The all new home for 24/7 TopDeals Furniture is here.
Traditional, Rustic and Stylish oak and pine, bedroom and living room furniture.
Traditional, Rustic and Stylish oak and pine, bedroom and living room furniture.
- 247TopDeals
- Posts: 22
- Joined: Thu Feb 11, 2010 11:31 am
- Location: United Kingdom
Re: Upgrading Templates from 1.4.7 -> 1.4.8
Hey Q,
How do we update the changes apart from the CSS? Do we copy the listed files you mentioned in v1.4.8 to our custom template?
Just having problems trying to work this.
Thanks
How do we update the changes apart from the CSS? Do we copy the listed files you mentioned in v1.4.8 to our custom template?
Just having problems trying to work this.
Thanks
- buckmajor
- Posts: 99
- Joined: Tue May 04, 2010 3:29 am
- Location: Brisbane
Re: Upgrading Templates from 1.4.7 -> 1.4.8
Sweet, I got it going. That was very hard for me, I can imagine the hard work you guys put in, every time you work on an upgrade or latest version of opencart
I solved it by updating my CSS, and replacing the listed files to the latest version.
I solved it by updating my CSS, and replacing the listed files to the latest version.
- buckmajor
- Posts: 99
- Joined: Tue May 04, 2010 3:29 am
- Location: Brisbane
Re: Upgrading Templates from 1.4.7 -> 1.4.8
I get these errors
what changes do i need to make?
Sean
Notice: Undefined variable: text_latest in /home/public_html/mysite.co.uk/jokenny/catalog/view/theme/black_shadow/template/common/home.tpl on line 12
Notice: Undefined variable: products in /home/public_html/mysite.co.uk/jokenny/catalog/view/theme/black_shadow/template/common/home.tpl on line 14
what changes do i need to make?
Sean
- sean01
- Posts: 4
- Joined: Thu Jul 08, 2010 5:49 pm
Re: Upgrading Templates from 1.4.7 -> 1.4.8
sean01 wrote:I get these errorsNotice: Undefined variable: text_latest in /home/public_html/mysite.co.uk/jokenny/catalog/view/theme/black_shadow/template/common/home.tpl on line 12
Notice: Undefined variable: products in /home/public_html/mysite.co.uk/jokenny/catalog/view/theme/black_shadow/template/common/home.tpl on line 14
what changes do i need to make?
Sean
delete the template/common/home.tpl file in your custom theme

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18209
- Joined: Mon Jul 21, 2008 7:02 pm

Re: Upgrading Templates from 1.4.7 -> 1.4.8
Thanks Qphoria your post was very helpfull for us.
Manchester United
-

thegeneral - Posts: 5
- Joined: Sat Sep 18, 2010 2:52 pm
Re: Upgrading Templates from 1.4.7 -> 1.4.8
I don't really like this template fallback scenario. The default template is full of tabled layouts and inline styles... why would I want to default fallback onto that?
-- my 2C
-- my 2C
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
Follow me on twitter.com/alreadymade
-

readyman - Global Moderator
- Posts: 731
- Joined: Tue May 19, 2009 9:16 pm
- Location: Sydney
Re: Upgrading Templates from 1.4.7 -> 1.4.8
readyman wrote:I don't really like this template fallback scenario. The default template is full of tabled layouts and inline styles... why would I want to default fallback onto that?
I agree the inline styles are painful.
I've done a patch http://code.google.com/p/opencart/issues/detail?id=196 to handle all those themes that mainly just change the images used. On two sites I manage I've got one site's theme directory down to only a set of images in the theme directory. The other one still has the inline styles which makes it hard to update all the fixes that got put into them. Getting these into a the style sheet would be great.
Improvement ideas welcome.
Note: anyone who wants to apply the patches needs to work that bit out themselves
- grooverdan
- Posts: 28
- Joined: Sun Jul 04, 2010 1:08 am
Re: Upgrading Templates from 1.4.7 -> 1.4.8
readyman wrote:I don't really like this template fallback scenario. The default template is full of tabled layouts and inline styles... why would I want to default fallback onto that?
-- my 2C
You override whatever you want overridden. Granted it could be cleaner, but people add the "payment" tpl folder to their custom templates. Why? You are not likely going to have custom skinned payment forms. The fallback is there for theme that are really done right and use mostly css.
For inspiration, look here:
http://www.mezzoblue.com/zengarden/alldesigns/
This is a site where a single html base is used and hundreds of completely different and unique designs are made using only css and images. The html never changes. Seems more theme devs could stand to learn these techniques. But I'm not a theme developer so maybe I'm wrong but I've already been wrong once this year so it's not likely


Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18209
- Joined: Mon Jul 21, 2008 7:02 pm

Re: Upgrading Templates from 1.4.7 -> 1.4.8
Upgrading Templates from 1.4.8 -> 1.4.9
??
??- quocbinhvip
- Posts: 52
- Joined: Sun Mar 20, 2011 7:58 am
Re: Upgrading Templates from 1.4.7 -> 1.4.8
That's helpful.
Thanks
Thanks
--
Craig
Web Designer UX & UI
Phone: 0871 237 8121
Web: http://www.webunit.co.uk
Email: sales@webunit.co.uk
Craig
Web Designer UX & UI
Phone: 0871 237 8121
Web: http://www.webunit.co.uk
Email: sales@webunit.co.uk
-

webunit - Posts: 8
- Joined: Fri May 15, 2009 2:39 pm
Re: Upgrading Templates from 1.4.7 -> 1.4.8
thats call a real revenge
- markpollock
- Posts: 1
- Joined: Wed Dec 07, 2011 12:53 pm
Re: Upgrading Templates from 1.4.7 -> 1.4.8
To be honest, reading this makes it sound so easy but I'm afraid I'll fuck it up somehow.
__________________
Sonnenbrillen Mit Sehstärke
__________________
Sonnenbrillen Mit Sehstärke
- asfuih
- Posts: 2
- Joined: Wed Jul 18, 2012 1:33 am
Re: Upgrading Templates from 1.4.7 -> 1.4.8
I think should have no problems with those being transparent.
____________________________________
love me little love my happiness
Guild Wars 2 Gold
Diablo 3 Gold
RS Gold
____________________________________
love me little love my happiness
Guild Wars 2 Gold
Diablo 3 Gold
RS Gold
- fcslynnlee
- Posts: 2
- Joined: Thu Apr 25, 2013 7:05 am
Re: Upgrading Templates from 1.4.7 -> 1.4.8
I think should have no problems with those being transparent.
- fcslynnlee
- Posts: 2
- Joined: Thu Apr 25, 2013 7:05 am
17 posts
• Page 1 of 1
Who is online
Users browsing this forum: color20, pwood, Xyph3r and 21 guests













