i'm creating a magento shop.
I've downloaded a new Template.
The template has an own "package" folder and has its phtml files in the "default" folder inside the package.
Now i begun to add a theme folder in this package to customize the downloaded template.
Everything is working fine.
But now i want to create sub-designs for this customized version, to make some shop-categories look different (I can change the theme for single categories in the backend).
is it possible?
what can you recommend?
I think Aoe_DesignFallback extension will help you http://www.fabrizio-branca.de/custom-design-fallbacks-in-magento.html
You can create as many theme variations as you want inside your custom package
package/default
package/theme1
package/theme2
...
package/themeN
Inside these themes you can customize as many files as you want. For example, you can edit only one specific template for on specific theme. Because of Magento fall-back mechanism all the rest files will be used from 'default' theme of your package and then from 'default' theme of 'base' package
Read this guide:
http://info.magento.com/rs/magentocommerce/images/MagentoDesignGuide.pdf
You need to make different designs for different categories, and at the backend,
Catalog > Manage Categories > for each categories > Custom Design Tab
You can select the design you want for that particular category.
You can also add something in Custom Layout Update as per your need.
You can even give time range that design will be shown and automatically display the default design after that time.
The only fallback mechanism for themes in Magento is between the supplied 'base' theme and your selected theme. That is, Magento will look for files in your selected theme, and, if any specific file is not found, will fallback to the supplied 'base' theme.
So, you can probably merge your desired theme with the 'base' theme, and replace the 'base' theme with this newly-created theme. Then, you can create one single sub-theme that can fallback on the new 'base' theme. I will not recommend you doing this, as this will make upgrading to new versions of Magento very difficult.
If you really want to make this work, I will recommend having a workflow outside of Magento to handle your files in the themes and sub-themes. Perhaps some sort of scripts that take files from the main theme and merge them into the sub-themes before copying all the themes and sub-themes folders into Magento.
Related
I've recently added the faqfield module - but when reviewing this in the content editor the fields are spewing over the container.
I fixed the issue by adjusting the textarea.form-textarea css to min-width:100% in chrome console -- but I am not sure how to apply this fix to the site itself. Is there a way of adding into the db level an override css for the admin theme? Or do I create an overriding change in the theme folder - and if so how?
before quick fix
after quick fix
You can create a new custom admin theme and have it use the contributed admin theme you're using as a base.
You can then just override stuff as needed:
In your my_theme.info.yml in the top section add:
base theme: contrib_admin_theme_name
You then use your own custom theme as the admin theme, but it well use everything from the contributed admin theme, except for the stuff you overwrite.
The best way is to go to Drupal.org and submit it as a patch (you'd be doing it in the Drupal core issue queue since Seven is a core theme). If you don't want to do that then you'd create a subtheme based on the Seven theme, and add your CSS in there. You don't wan to update the theme directly as anytime you update the Drupal core it'll overwrite your changes.
I have installed Magento CE 1.9.1.0 with sample data. I have copied the default theme of interface rwd and rename it as test theme. Update the package and theme from the admin panel and Save the same. But when refresh the front panel from browser no data will be displayed including images etc. Please help me to know what are the tricks behind the same.
Why data is lost while new theme has been activated?
How to see the sample data?
What are the files am I need to configure more?
you want to Customize RWD theme.in your rwd package you can make a new theme like
design/frontend/rwd/yourtheme and start copying the files which you want to customize in yourtheme.
copy files from design/frontend/rwd/default to design/frontend/rwd/yourtheme and start customization.
and also check this link too
If my understanding is right, you already create your own theme package and set it in the System > Configuration > Design (and correctly followed the magento fallback system) Link
Next, if your working on locally, make sure to set the cache as disabled. Navigate to System > Cache management and select all, refresh and then disabled it.
I’m fairly new to Magento themes and have been looking around for best practices for building them. I have an understanding of creating a skeleton structure for my theme and copying template files from the base theme. What I’m not sure of is, if for example I wanted to customise the product view, is it best practice to remove blocks from the view.phtml file or should I remove them in the layout file? I want a fairly simple product page with wishlist, compare, tags etc removed.
Many thanks in advance for your advice.
You need to remove from both from xml you will find handle catalog_product_view you need to remove code as well as you need to remove from view.phtml file in folder of your new theme. At the end your code will be cleared and will take less time to execute.
I am working on an existing magento project. Previous development team used custom design. I have enabled multiple shipping address from admin side, and cleared all cache. But am not able to see multiple address option in checkout page.
Since you have custom design, if the previous development team didn't override the default magento theme, you can switch to it from System > Configuration > General > Design
If they have written their changes directly into the default theme, then you can just rename the base/default (from design and skin) into something like custom/default and copy/paste the base/default from a Magento archive matching your version.
This way you can see if shipping to multiple addresses works or not. If it works then it means it was removed from the custom design - you have to check the design/skin files.
If it doesn't work then either you didn't configure something, or the code was overriden you have to check files under app/code/local (code/community or worse case code/core) .
In Magento I took and duplicated a theme and made a few changes to the second one. Called it recipes, removed the price, etc. All worked out fine except! When I add a related product it shows up and says "other featured products". This is what the old theme said.
After some research i am seeing it is pulling this file from the "app/design/frontend/base/template/catalog/product/list folder instead of the theme folder ?
http://www.colbrookkitchen.com/recipes/pico-de-gallo.html
Turn on template/path hints in your administration area:
System -> Config / Advanced -> Developer
This will show you exactly which template and block it belongs to. The product list template you are referring to just renders the products, it's possible the theme does not also include the header in that file.
Alternatively, a quick grep (or search via IDE if you are on Windows) for 'Other Featured Products' is a good solution, since that should be a fairly unique string.