0

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

4

2 回答 2

0

导航到您的 catalog.xml 文件

应用>设计>前端>基础>默认>布局>catalog.xml

如果没有复制它,您可能已经在您的主题文件夹中拥有此文件。

搜索

<catalog_product_view translate="label">
        <label>Catalog Product View (Any)</label>
        <!-- Mage_Catalog -->
        <reference name="root">

此下方的行应说明如下内容:

<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
    </reference>

编辑此内容,使其改为说明此内容

<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
        </reference>

注意列表示已从右到左更改,重新上传文件。嘿,它已经完成了!

emagen - Magento 设计师,Shepherds Bush,西伦敦

于 2013-02-12T11:38:42.253 回答
0

您不能在配置 > 目录 > 搜索引擎优化中将“使用产品 URL 的类别路径”设置为是吗?

于 2012-10-31T20:34:58.943 回答