Next Webinar: Maximizing Magento - Get the Most out of Promotions. Register Today!

Magento

Open Source eCommerce Evolved

Magento Forum

   
Poll
How much would you want pay for a magento theme?
$100 - $199 32
$200 - $300 7
$300 - $400 4
$400 - $500 1
More than $500 4
Total Votes: 48
You must be a logged-in member to vote
How Can We Package Themes into Magento packages? 
 
VisualFrames
Sr. Member
 
Avatar
Total Posts:  105
Joined:  2008-04-03
New York, NY
 

1. Is there a way to package magento themes into packages so the users can upload the packages to their store and have it installed automatically?

2. Would the magento team have any documentation that could help?

3. Would we need to develop a package uploader extension to deliver through magentoconnect and outside of magentoconnect?

We look forward to some answers or leads,

Thanks,
Visual Frames

 Signature 

http://www.eCommerce-Themes.com
Now offering: Lots of Magento Premium Themes, Magento Professional Services, Custom Extension Dev and Hosting!
An Accent on Quality! For all your Magento design needs

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1771
Joined:  2007-08-07
Los Angeles
 

1. Themes can be packaged into extension the same way as modules are packaged.

A theme is a customization of an interface. That means that theme will contain only components necessary for the customization.

A customization could be of different levels.

a) CSS/Images - in this case, only files in /skin/<interface>/<theme>/ folder that differ from original interface theme will be needed.
For missing files Magento will fallback to “default” theme or whatever is marked as default theme in the configuration for this store.
Currently Magento will recognize existance of the theme by folder app/design/<interface>/<theme> folder, so you will need to put there README.txt file or other small file that identifies your theme, and to be included in MagentoConnect extension package.

b) Templates - If there was an HTML change, files in /app/design/<interface>/<theme>/template should be included. Again, Magento will fallback to the default theme for missing files. It is suggested to keep all templates made by you in specially designated folder uniquely named similar to your themes or extensions.

c) Layouts changes - If you include in your theme files in /app/design/<interface>/<theme>/layout, the default theme layout update files with same names will not be loaded. That means you will have to include all layout updates in your files that were in original files. If you wish to ADD layout updates on top of default layouts, you should create a new layout XML file, or even a directory within /layout/ folder, if you intend on having more than few extensions or themes that involve layout updates. To let Magento know of your layout XML file, include a file in app/etc/modules/ folder named similarly to your theme that will include XML configuration in following suggested format:

<?xml version="1.0"?>
<config>
  <
frontend>
    <
layout>
      <
updates>
        <
mynamespace_interfacename_themename> <!-- unique identifier -->
          <
file>mynamespace/themename.xml</file>
        </
mynamespace_interfacename_themename>
      </
updates>
    </
layout>
  </
frontend>
</
config>

d) Custom block functionality - for this you will need to create a module and add Block classes.

2. We expect documentation to be available in the months ahead. If you have any specific qustions, please don’t hesitate to ask and we’ll do our best to reply.

3. The extension release package file will be generated automatically after filling out the “Package Extension” form as explained in this page:
http://www.magentocommerce.com/wiki/packaging_a_magento_extension

It is also possible to just make a tarball with files needed for a theme and share with friends

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
Magento Community Magento Community
Magento Community
Magento Community
 
VisualFrames
Sr. Member
 
Avatar
Total Posts:  105
Joined:  2008-04-03
New York, NY
 

Thanks a lot for taking the time to describe this Moshe.

We’ll give it a try and let you know.

 Signature 

http://www.eCommerce-Themes.com
Now offering: Lots of Magento Premium Themes, Magento Professional Services, Custom Extension Dev and Hosting!
An Accent on Quality! For all your Magento design needs

 
Magento Community Magento Community
Magento Community
Magento Community
 
jwebber
Member
 
Avatar
Total Posts:  33
Joined:  2008-03-12
 

@Moshe:

In regards to your comment:

“It is also possible to just make a tarball with files needed for a theme and share with friends”

Once we have the tarball, how would someone else install it? Just upload to their var/pear folder and load? I guess I am a bit confused on how people will install Commercial Extensions.

thanks!
john

 Signature 

-John Webber
My company: Ad Stream, Inc.
My test Magento setup: http://www.magthemes.com/magento/
Free & Paid Magento Themes

 
Magento Community Magento Community
Magento Community
Magento Community
 
alistek
Sr. Member
 
Total Posts:  293
Joined:  2008-04-02
Normal, IL
 

Well if you are just sharing a tarbell with friends all they have to do is untar it into the folders and it will be recognized automatically, granted you have to pick the theme to use but still.  All that means is that you are just sharing the files as if you had developed it on your system.  It just wouldn’t be in Magento Connect and you don’t necessarily have to package it up exactly as Magento Connect requires.

-Adam

EDIT: I also meant to say that you would just put untar the theme (if it is a theme) into your frontend/default/new_theme etc. (or frontend/new_interface/new_theme)

 
Magento Community Magento Community
Magento Community
Magento Community
 
iPhony
Member
 
Avatar
Total Posts:  37
Joined:  2007-09-01
 

@Moshe

I would agree that the tarball would be for manual upload of files.

However Moshe I would like to know if the “load” package under Manage Extension > Package Extensions page in the magento admin can also be used to load custom packages that one would get from someone else or if it can only load packages that have been uploaded to magento connect?

 
Magento Community Magento Community
Magento Community
Magento Community
 
sdb
Sr. Member
 
Avatar
Total Posts:  221
Joined:  2007-11-13
coastal California, USA
 

great thread, this shows how easy it can be to make a theme. so if i am reading this right, the only thing i need to include are the files that i have changed or added, because everything else will default to default?

 Signature 

my preferred host: http://www.schostpro.com

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
41090 users|815 users currently online|87761 forum posts