custom layout settings won't apply - magento

I have small problem with Magento. I'm not Magento guru but i'm trying to figure out this error.
And this 1column page won't be 1 column, it always two-column. Where can i check it?
I set in admin to this page custom layout - 1 column and for all others - use parent settings, on root category i set 2 column with left pad - no luck.
Inside theme/package/layout/local.xml the template for catalog pages was set to:
<catalog_category_layered translate="label">
<reference name="root">
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</reference>
For this one page the settings on admin was set to: Page Layout: 1 column.
These settings are not stable. In case the page is reloaded several times in a row, sometimes, I see, that the template for this page is "2-columns-left.phtml", sometimes - it is correct and is "1column.phtml"
Please i'll be glad for any help.
Edited:
How can i set this page to be always 1 column?
I've tried to comment template section in local.xml and setup Catalog->Manage categories->My_category->Custom design->Page layout to "1 column" but page still be sometimes loaded 1 column and sometimes 2 columns.

Kindly check the complete tutorial on http://www.exinent.com/magento-custom-theme-development/

please check if you don't have template set in cms: go to admin>Catalog>Manage Categories> [select your category] > Custom Design Tab > Page Layout - change to No layout updates
catalog_category_layered mostly is set if you have anchored category, check this, also try catalog_category_default handler

There is another way to change the custom layout settings for the category page.
Go to admin panel Catalog > Manage Categories > Edit any category > Custom Design > Page Layout.
Here you can change the page layout for the category page.

Related

Only some products using proper theme in Magento

This has been very frustrating and I cannot figure it out. I recognize the answer is most likely simple.
I have a my own package and all the desired pages except for some products are not using the desired theme product view layout.
Compared the data in mysql against a product that is displaying properly. Both records match.
In Catalog/Manage products - I have performed a side by side comparison of the products in magento admin (including design). both match.
In Catalog/Manage Categories - All categories set to apply to products and to use parent as default.
The default category is using my theme and applying to products.
Set the proper template in my local.xml file however this did not work.
<catalog_product_view>
<reference name="root">
<action method="setTemplate">
<template>page/2columns-right.phtml</template>
</action>
</reference>
</catalog_product_view>
In system/configuration/design I have the current package name set to my package for the Default Config. Any children from there are checked to use default.
I tried several configurations with flushing cache and re indexing just in case.
This is and example of the site the correct display (please note design not complete).
Page using correct Theme
Here is example of product using base theme
Page using BASE Theme
Any suggestions. I understand that I could Manually select the desired template for each product and I would sooner jump off bridge. I must be overlooking something. Appreciate any advice.
Please check to admin>product here each product can select difference type of custom design

Different layout for main category and sub category

So I have this weird problem that is bugging me for a few days now. I'm making a new theme for a magento shop, the design asks me to create a different layout for the main category page and a sub category page.
The normal way of doing this is to create or use a other layout in the backoffice (Catalog > Manage Categories > ... > Custom Design > Page Layout). However, the sub-category page keeps using the layout set in the main category. Use Parent Category Settings is off on the main category, however this option is not available in the sub category. I tried using the normal layouts to start with, main category on 1 column, sub category on 2 column, but it just keeps loading the 1 column on the sub category page. I also tried setting a default layout in a local.xml file and keeping the page layout option empty for the sub category, that doesn't work either.
Some other info, I'm using Magento 1.9 with the new RWD theme as base. Hoping someone can help me with this.
You can check the category level in category controller view action and add custom layout handle:
$update->addHandle('catalog_category_inner');
and then update your layout xml (catalog.xml) to use this handle. For example:
<catalog_category_inner translate="label">
<reference name="category.products">
<action method="setTemplate"><template>catalog/category/view_inner.phtml</template></action>
</reference>
</catalog_category_inner>
Anyway solution depends on layouts difference you need to implement. But the idea would be the same anyway. If you need somehow to implement different layouts, use custom layout handles
It turned out that the shop used an importer for their products. The importer forgot to import the "Use Parent Category Settings" that's why it didn't show that option within the sub categories. Because the option could not be set it was set to indeed use the parent settings thus explaining why the sub category used the layout of the root, even if you set a other layout on the sub category.

Magento 1.8.1 / Category layout for specific categories

I am working on Magento 1.8.1 site and have a problem, for which I hope to find the solution here - after googling for several days.
I want to set different/custom page layout for category and its child categories, but I am stuck.
So, I have a 2-level category:
First category (for example CLOTHES) has a default 2-column page layout (because I want to have an additional navigation).
I would like that second category (for example LEVIS) would have 1-column page layout, but it's impossible to set it. It overrides all subcategory specific settings, it just accepts parent category settings.
I tried will all various possible settings, even with another theme. I also disabled inheritance of page layout from parent category.
Is this a known bug or did I do something wrong?
Thanks for your help,
B
you can easily set different layout for each category
just go to manage category and select category and go to custom design tab
and set use Use Parent Category Settings to no and set page layout according to your design just see image
If you do not specify values of "Use Parent Category Settings" and "Page Layout" under "Custom Design" tab of category, then Magento uses default page layout from layout xml file (under layout folder of theme).
If you want to specify custom layout for particular category, then you need to specify it for that category.
For example "CLOTHES" is your parent category and "LEVIS" is child category (for which you want to set different layout).
Then you need to specify values of "Use Parent Category Settings" to "No" and "Page Layout" to whatever layout you want to set for specific category.
Just save it and you can see reflection on front-end.
please refer screen-shots if you have any problem.
Let me know if you have any query.
Not sure if this is a Magento thing, or Argento, as I'm unable to revert to the default theme. Anyway, what ended up working was a Custom Layout Update for the category:
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
I have a solution in 1.7.0.2 as I had the same problem and this fixed it.
For each Category that is inheriting that should not be
Set "Use Parent Category Settings" to "Yes", save, then set it back to "No" and save.
You might also want to check that Store view settings are not overriding global view settings
Hope that helps someone.

Magento Adding a Custom Layout to individual product

Hi
I have an online estore setup using magento 1.6.2 CE, an have a very novice like question!!
THE SITUATION / FACTS:
1. I have created Categories and sub categories.
2. To categories i have added a custom template for left navigation.
3. I want this template to also apply to products that i have applied to the category/ sub category. For this, i have selected Apply To Products under Custom Design to Yes.
4. i want custom left navigations for products in different categories./p>
HOw ITS ACTING:
when i access the product using the category name/ sub category name, the template is applied to it on the individual products page. For example, say the category is MENS, and the product name is shirts, so when i access it using www.mydomain.com/MENS/shirts.html the template is applied and i see the custom left menu.
PROBLEM:
when the shirts page is accessed directly, like magento does, ie www.mydomain.com/shirts.html, the custom template is not applied. it shows blank.
what is the possible workaround for this? I have tried setting APPLY TO PRODUCTS to NO, and then adding custom layout template to each product individually... but this is too cumbersome..
Thanks
Moody
Can't you just set 'Use Categories Path for Product URLs' to yes in Configuration > Catalog > Search Engine Optimization?
Navigate to your catalog.xml file in
app>design>frontend>base>default>layout>catalog.xml
You may already have this file located in your theme folder, if not copy it across.
Search for
<catalog_product_view translate="label">
<label>Catalog Product View (Any)</label>
<!-- Mage_Catalog -->
<reference name="root">
the line below this should state something like the following:
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
</reference>
Edit this so that it states this instead
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</reference>
Notice the column denotation has changed from right to left, re-upload the file. Hey presto it is done!
emagen - Magento Designers, Shepherds Bush, West London

Magento dynamic block adding contents

I am new to Magento CMS, i have configured products using admin panel, at the home page
I want to list down random famous
products from different categories
dynamically.
When i list the products they appear
in the menu by their categories,
when i chose page type 3 columns
where are the source files for
column 1 and 3 how can i
change/configure them.
I installed Magento with sample data
from home page when i click upon any
item it does not display data.
I see default home page using
dynamic contents block from where to
create it and how to see it ?
I think it's better to split questions into individuals one, in order to get more accurate answers. Anyway:
1. Yoast Landing Pages allows you to create products listings of any attribute you want
2. I'm not sure to understand you, but I think what you're looking for is in app/design/frontend/[package]/[template]/layout/catalog.xml. Inside <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"> add/modify <action method="setColumnCount"><columns>2</columns></action>
3. It seems you don't have mod_rewrite enabled in your server
4. If you're using Magento's sampla data, it is not dynamic content: check in your admin CMS -> Pages -> (Title) Home Page
Strategy for you:
make a new extension with a block and a layout file
have your layout file define the block output and use the product list template and your block
in your block make a query to magento popular products report to get the popular stuff you need
design the hell out of it and $$$$

Resources