New custom theme without copying all the default files - magento

I search how to configure a custom theme in Magento Enterprise ver. 1.12.0.2 without doing a copy of all the base/default files.
The only way I can make it is to create my_theme folder in /var/www/magento/app/design/frontend/enterprise/my_theme and then in system>configuration>design to let enterprise as "Current Package Name" and my_theme as "default" in "themes".
But I'm afraid it's not the ideal way in case of upgrading Magento.
Is anyone have an idea ?
Thanks

You're on the right track. What I typically do is create a new Package and Theme. It will still fallback to base/default so you don't have to copy all of the default files into your package. Leave default empty in the Admin -> General -> Design section. Set the Package Name to your package and the other theme settings except for default to your theme name. You'll only need to copy template and layout files that you plan on customizing, so there's no need to copy everything into your theme.

I've tried already but it didn't worked....
I found why in
http://www.magentocommerce.com/knowledge-base/entry/magentos-theme-hierarchy
"2nd Exception to Rule 6: Enterprise customers for now DO need to copy the files from enterprise/default into their custom package as a starting point. In a future release, the Enterprise files will be folded into the base/default directories but they are not in EEv1.8."

Related

How to create magento theme from scratch in 1.9.1

Whether i have to copy the templates files from default or rwd package to create new theme from scratch.
No need to copy the templates files or layout files unless you have your custom. System will find the template file/layout file from base package or default theme once no existence in your theme.

Prestashop theme not detected

I'm new to Prestashop development. The first thing I've tried is to create a new theme copying the default theme directory in Prestashop 1.6. The problem I have is that, once created, the theme is not detected by Prestashop: is like the directory wasn't there.
If I create a new theme from the admin panel and replace the directory content with the same files, it works ok.
What should I do to make Prestashop detect my theme? I haven't found any information about it.
Thanks a lot.
I already answered on similar question here, there are two ways to solve your issue through backoffice
Copy default theme in Preferences -> Theme press Add new theme
button and then at the bottom Create new theme + choosing Copy missing files from existing theme.
OR if you already copied theme dir/files by FTP
Same steps, but without copy missed files (of course if you have no
missed files) and just put correct new dir name in Name of the theme's directory
This is actually the way it is done - Copying the default theme.
There could be several reasons for that:
Have you changed the name of the copied folder?
Did you use only a single lowercase word as a name?
Did you copy it to the /themes folder?
Here is additonaly info after the copying to do some cleanup: http://doc.prestashop.com/display/PS15/Creating+your+own+theme
Also it is perfectly fine to create a copy of the default theme from the backend. You can find instructions here: http://doc.prestashop.com/display/PS16/Laying+the+Theme's+Foundations#LayingtheTheme'sFoundations-Standingontheshouldersofgiants:copyingthedefaulttheme
For people who are using Prestashop 1.7 or higher and is facing the same problem when copying the Starter Theme, I recommend you to check if you actually have a themes/your_theme/config/theme.yml configuration file because the one that is loaded by default is a theme.dist.yml so Prestashop won't recognize it.

How can I install new theme in Magneto ?

I want to install new theme in magento and I have also followed step of this link (https://www.siteground.com/tutorials/magento/magento_themes.htm) but I am not abling to get theme in magento. Please suggest me how can I install theme in magento ?
Thanks
If you already have the pre-built theme, then in magento project folder navigate to
app/design/frontend/default
Place your theme folder here.
Now to activate your theme. Log in to your admin panel.
Navigate to
system->configuration
Click in the design tab in the left hand side
Under the "Pakage Name" put you package name i.e "default" in this case and under you theme In the "Template" put your theme name "Your_theme_name" i.e your theme folder name that you copied inside default directory.
If you are creating a new theme, just create a new folder inside default directory and follow the step as described above.
In this way you can install a new theme.
Hope this will help.
It depends how theme you want to use is distributed. If it is a package, just extract it to your root folder and you should get proper folders in skin and app/design dirs and what you need to do then is to set correct package and / or theme in backend (Configuration > Web > Design). For full package theme name would probably always be default. Although if you are only adding new theme, you should pick its name app/design/frontend/default/{theme_name} and same in skin folder (if it includes some additional css, images and / or javascript).

Magento Extension/Theme Packaging

just a quick developer question in regards to Magento Extension/Theme Packaging, more specifically, when packaging, would I place the template files, layout files, skin folders etc in the base folder (see path below)(and not overriding any core files either)
app/design/frontend/base/default/template
app/design/frontend/base/default/layout
skin/frontend/base/default/css
and so on? I see this would be most suitable as alot of platform users would have custom themes with maybe custom namespaces for the theme folders. As users would have to stuff around to rename/move files/folders to work with their platform if packaged the default way I have seen in the past (ie in the default/default folder paths).
cheers for any feedback
This is the only way to package extension to use base/default or default/default location for template, layout and skin folders. Because if custom theme is used, then also this will work due to Magento's fallback mechanism. And if user want to add those files in custom theme location, then he/she should manually copy or move files in theme's respective location as you have said. And it is obvious that we can not predict custom theme path while packaging extension.

Backup Magento Theme

I am making some changes to a purchased magento theme. Is there any simpler way to backup my work other than by copying the relevant folders inside app skin and media and their directory structures.
What I recommend that you do is to have your purchased theme as your default theme, i.e. in the "default" folder under your package. You can then declare another theme, e.g. "custom", and copy the path/files to there that you wish to override. You just need to set the "Default" value to "custom" in Admin > System > Configuration > Design > Theme.
Just thought I'd answer this for anyone coming along - as far as i can make out the answer to the question is no, not really - unless I'm doing it the wrong way - ( and I think not ) then the best method of backing up a custom theme is to first compress the entire app, skin and media ( if relevant) directories into one archive file, move this and expand it in an empty directory, then carefully delete all the other theme folders, leaving just the files which you are using and the directory trees which you have created - this preserves any files you have in your custom theme and also the necessary directory structure. If anyone has a better method maybe they'd share it.

Resources