Only some products using proper theme in Magento - 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

Related

Hide magento default configurable option and create own

I want to hide default magento 1.9 configurable option selection on product page and create my own for selection of product Like Size, Colour etc.
How i can do this in magenot 1.9
You can replace the default template for your configurable options with the following addition to /app/design/frontend/[your]/[theme]/layout/local.xml:
<PRODUCT_TYPE_configurable>
<reference name="product.info.options.configurable">
<action method="setTemplate"><template>path/to/your/template.phtml</template></action>
<reference>
</PRODUCT_TYPE_configurable>
I would recommend starting with a copy of /app/design/frontend/base/default/template/catalog/product/view/type/options/configurable.phtml for reference, so you can see the code to pull relevant data.
Otherwise, you can customize your code in app/design/frontend/[your]/[theme]/template/path/to/your/file.phtml 'til your heart's content!

Different look for bundle-product

I need to apply a different style for the bundle-products within a magento-project. And I'd like to know which would be the best routine to do so?
Changing the layout with the layout updates directly in the dashboard
Making a new layout-template explicitely for these products and apply
this layout on all bundles
I have severally (>20) bundled products and want to use a quite different look for these. What would be the best routine therefore?
Is it just styling changes, or differences at the page template level? If it's just styling, you can create custom CSS using the .bundle-product selector to apply the changes to bundle product types only. If you want to customise on the product level, the body tag will include a class built from the product identifier (e.g. product-type-my-amazing-product), which again you can target to apply styling changes on a per-product level.
For template overrides on the other hand, you'll need to use layout updates using the corresponding layout handles:
<PRODUCT_TYPE_bundle>
<reference name="product.info">
<action method="setTemplate">
<template>catalog/view/bundle.phtml</template>
</action>
</reference>
</PRODUCT_TYPE_bundle>
And then create the catalog/view/bundle.phtml file in your custom theme. Again, the same can be achieved on a per-product level: a product page can be targeted for a layout update using the layout handle where X is the (numeric) ID of your product.

Removing Masshead Magento Extension from certain categories

As I describe in the title, what i want to do is to remove the Masshead extension from certain categories in magento. Any ideas how can that be done?
The module will be most likely including a block on the categories page. This block will be defined in the modules layout xml file. You need to find the definition to identify the name of the block and the name of the parent block/container it is being included in. As you want to keep it on some categories but remove it from others, the simplest solution I can think of would to be to use Magento's Administration Area for the categories you want to remove it from and add some layout update xml to these specific categories.
I normally do this with statements like the following under Admin->Catalog->Manage Categories. Select the appropriate category and then click on Custom Design where you will find the Custom Layout Update field to out the XML in;
<reference name="content">
<remove name="masshead.blockname" />
</reference>
You could go about it the other way and remove it from all categories by changing the layout xml file of the module to not include it and use layout update xml in the admin area per each category you want to include it on. Really depends on if there are more categories you want on it than not or vice versa.

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

Display Price Once on Magento Product Page

I want to show the product price only once on the Magento product page. Currently, it is displayed twice.
I tried to change app/design/frontend/base/default/template/catalog/product/price.phtml,
but didn't get it. I also tried app/design/frontend/base/default/template/catalog/view.phtml, but when I edited price.phtml the price is not up.
So how can I do it? Any ideas?
Thanks.
This depends on which one you want to keep. The price at the top of the page is generally displayed as part of the "product type data". Take a look at template/catalog/product/view/type/simple.phtml, where you should see $this->getPriceHtml($_product);.
The price at the bottom of the catalog page is a little more complicated. If you take a look at layout/catalog.xml, the price block (product.clone_prices) is added to the block product.info.options.wrapper.bottom, which is then added to product.info.container1 and product.info.container2. Depending on the product, one of these will be echoed on the page. You can, however, just remove the line for product.clone_prices and that should remove the price.
Hope that helps!
Thanks,
Joe
Instead of deleting the cloned price from the catalog.xml itself, as suggested by Joseph, a more clean way is to remove the block in your local.xml layout file:
<catalog_product_view>
<reference name="product.info.container2">
<remove name="product.clone_prices"/>
</reference>
</catalog_product_view>
Price blocks are defined within layout files (XML), you just need to call them from within the template files to get them to show.
In your case it seems that you might have possibly defined them twice from two related XML files within the same block, or within one file and two related sections/views. This means that when you call a function $this->getPriceHtml($_product); XMl parser loads the price twice from two different files (tied to a certain block).
Also I've noticed this within catalog.xml file:
<block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/>
If this is what you are looking for then just experiment with blocks within XML files.

Resources