5. set your theme
based on default Magento
Wednesday, 30 May, 2012
6. first fallback
set your theme
based on default Modern
Wednesday, 30 May, 2012
7. does file exist in yes
package_name/ How stuff works
theme_name/
Magento fall-back logic
no
does file exist in yes
package_name/ display
default/
no
does file exist in yes
base/
default/
no
rendering error
Wednesday, 30 May, 2012
14. does file exist in yes
package_name/ How stuff works
theme_name/
Magento fall-back logic
no
does file exist in yes
package_name/ display
default/
no
does file exist in yes
base/
default/
no
rendering error
Wednesday, 30 May, 2012
15. an existing theme
http://www.flickr.com/photos/popilop/331357312
Wednesday, 30 May, 2012
16. create your own Page generation xml instructions
for each module
app/design/frontend/yourpackage/yourtheme/layout
app/design/frontend/yourpackage/yourtheme/template
Content block .phtml files for
each module
skin/frontend/yourpackage/yourtheme/css
skin/frontend/yourpackage/yourtheme/images
Visual layout info and files &
UI-specific Javascript
Wednesday, 30 May, 2012
17. a well coded theme
should have to following traits
• a single layout file, named local.xml, where all
layout updates are placed.
• no layout files with the same name as any layout
file in the base theme
• no css files with the same name as any css file in
the default skin create local.css
• no .phtml template files, except for those that
were modified to support the new theme.
usually this number will be very small
Wednesday, 30 May, 2012
18. Remove callouts and rarely used stuff
Add the local stylesheet
your theme starts
with local.xml
Wednesday, 30 May, 2012
20. prevent unwanted indexation like Sitemap, Search Results and more
add more to your
with local.xml
thanks to Joachim Houtman
Wednesday, 30 May, 2012
21. timesaver
http://www.flickr.com/photos/maigh/2141921845
Wednesday, 30 May, 2012
22. Magento backend
goto System >> Configuration
goto Developer
change Scope
expand Debug
set Template Path Hints to Yes
save Config
(clean Cache)
Magento frontend
refresh page
Wednesday, 30 May, 2012
23. Magento backend
goto System >> Configuration
goto Developer
change Scope
expand Debug
set Template Path Hints to No
save Config
(clean Cache)
Magento frontend
refresh page
Wednesday, 30 May, 2012
24. also M1.7
http://bit.ly/DeveloperToolbar
Wednesday, 30 May, 2012
25. find the extension key
use it to install
done
I’m a UNIX geek fond of SSH
Wednesday, 30 May, 2012
29. from the book: “I always get my sin”
a child can do the laundry
Wednesday, 30 May, 2012
30. be aware
http://yourmagentosite.com/developertoolbar/
index/hints/enabled/1/type/front/
more serious
http://yourmagentosite.com/
developertoolbar/index/url/enabled/1/
broken links all over the place!
Wednesday, 30 May, 2012
31. analytics
http://www.flickr.com/photos/playerdue/5285272605/
Wednesday, 30 May, 2012
69. thank your for your time
http://about.me/hans2103
hans2103
http://slideshare.net/hans2103
http://www.flickr.com/photos/trasimac/1217071176
Wednesday, 30 May, 2012