Magento - 更新catalog.xml

发布于 2025-01-05 00:19:07 字数 234 浏览 0 评论 0原文

我正在尝试更新 magento 主题(主题名称为 Blank_seo),并且我正在尝试将产品页面默认模板更改为 3 列。我尝试更新 app/design/frontend/default/blank_seo/layout/catalog.xml 文件。但到目前为止没有任何效果。 我找到的唯一解决方案是手动将“页面布局”下拉框更改为 3 列。如果有人有更简单/更快的方法来执行此操作(或者我的catalog.xml 编辑不起作用的原因),我将非常感激!

I'm trying to update a magento theme (the theme name is blank_seo), and i'm trying to change the product page default template to 3 columns. I've tried updating the app/design/frontend/default/blank_seo/layout/catalog.xml file. but so far nothing is working.
The only solution that i've found is manually changing the 'Page Layout' dropbox to 3 columns. If anyone has a simpler/quicker way of doing this (or a reason why my editing of catalog.xml doesn't work), I'd be extremely thankful!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

欢烬 2025-01-12 00:19:07

只需查看我的代码,我就可以毫无问题地执行此操作,您要更改catalog.xml 文件的哪一部分?它应该是 元素,如下所示:

<catalog_product_view translate="label">
    <label>Catalog Product View (Any)</label>
    <!-- Mage_Catalog -->
    <reference name="root">
        <action method="setTemplate"><template>page/1column-productview.phtml</template></action>
    </reference>
    ....
</catalog_product_view>

我在系统中为产品页面设置了一个自定义模板,如您所见。

另外,请确保刷新缓存并检查日志以确保没有遗漏任何错误。

Just looking at the code I have, I have been able to do this without any issue, which part of the catalog.xml file are you changing? It should be the <catalog_product_view> element like so:

<catalog_product_view translate="label">
    <label>Catalog Product View (Any)</label>
    <!-- Mage_Catalog -->
    <reference name="root">
        <action method="setTemplate"><template>page/1column-productview.phtml</template></action>
    </reference>
    ....
</catalog_product_view>

I have a custom template set up in my system for the product page, as you can see.

Also, make sure you refresh your cache and check your logs to ensure you are not missing any errors.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文