Community Forums

Upgrading Templates from 1.4.7 -> 1.4.8

Template support & advice for OpenCart v1.x

Upgrading Templates from 1.4.7 -> 1.4.8

Postby Qphoria » Thu Jun 10, 2010 3:27 pm

These are the only catalog tpl files that have changed:

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
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18209
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Upgrading Templates from 1.4.7 -> 1.4.8

Postby boysnow911 » Mon Jul 19, 2010 8:08 am

i done
boysnow911
 
Posts: 11
Joined: Fri Jul 16, 2010 3:15 pm

Re: Upgrading Templates from 1.4.7 -> 1.4.8

Postby 247TopDeals » Wed Jul 28, 2010 10:50 am

To be honest, reading this makes it sound so easy but I'm afraid I'll fuck it up somehow.



Gerrit :-\
The all new home for 24/7 TopDeals Furniture is here.
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

Postby buckmajor » Thu Jul 29, 2010 6:01 pm

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
buckmajor
 
Posts: 99
Joined: Tue May 04, 2010 3:29 am
Location: Brisbane

Re: Upgrading Templates from 1.4.7 -> 1.4.8

Postby buckmajor » Fri Jul 30, 2010 3:31 am

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 :o

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

Postby sean01 » Thu Aug 26, 2010 5:49 pm

I get these errors
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

Postby Qphoria » Thu Aug 26, 2010 5:56 pm

sean01 wrote:I get these errors
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


delete the template/common/home.tpl file in your custom theme
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18209
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Upgrading Templates from 1.4.7 -> 1.4.8

Postby thegeneral » Thu Sep 23, 2010 2:55 am

Thanks Qphoria your post was very helpfull for us.
Manchester United
User avatar
thegeneral
 
Posts: 5
Joined: Sat Sep 18, 2010 2:52 pm

Re: Upgrading Templates from 1.4.7 -> 1.4.8

Postby readyman » Wed Oct 06, 2010 2:41 am

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
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
User avatar
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

Postby grooverdan » Sat Oct 09, 2010 7:38 am

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

Postby Qphoria » Sat Oct 09, 2010 1:36 pm

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 :laugh:
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18209
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria


Re: Upgrading Templates from 1.4.7 -> 1.4.8

Postby webunit » Sun Jul 10, 2011 12:17 pm

That's helpful.

Thanks
--
Craig
Web Designer UX & UI

Phone: 0871 237 8121
Web: http://www.webunit.co.uk
Email: sales@webunit.co.uk
User avatar
webunit
 
Posts: 8
Joined: Fri May 15, 2009 2:39 pm

Re: Upgrading Templates from 1.4.7 -> 1.4.8

Postby markpollock » Wed Dec 07, 2011 12:55 pm

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

Postby asfuih » Wed Jul 18, 2012 1:49 am

To be honest, reading this makes it sound so easy but I'm afraid I'll fuck it up somehow.

__________________

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

Postby fcslynnlee » Thu Apr 25, 2013 7:10 am

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
fcslynnlee
 
Posts: 2
Joined: Thu Apr 25, 2013 7:05 am

Re: Upgrading Templates from 1.4.7 -> 1.4.8

Postby fcslynnlee » Thu Apr 25, 2013 7:14 am

I think should have no problems with those being transparent.
fcslynnlee
 
Posts: 2
Joined: Thu Apr 25, 2013 7:05 am


Return to Template Support

Who is online

Users browsing this forum: color20, pwood, Xyph3r and 21 guests

Hosted by Arvixe Web Hosting