在Magento产品页面上一次显示价格 [英] Display Price Once on Magento Product Page

查看:42
本文介绍了在Magento产品页面上一次显示价格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想在Magento产品页面上显示一次产品价格.目前,它显示了两次.

I want to show the product price only once on the Magento product page. Currently, it is displayed twice.

我尝试更改app/design/frontend/base/default/template/catalog/product/price.phtml, 但没有得到.我也尝试过app/design/frontend/base/default/template/catalog/view.phtml,但是当我编辑price.phtml时,价格却没有上涨.

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?

谢谢.

推荐答案

这取决于您要保留哪一个.页面顶部的价格通常显示为产品类型数据"的一部分.看看template/catalog/product/view/type/simple.phtml,您应该在其中看到$this->getPriceHtml($_product);.

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);.

目录页面底部的价格稍微复杂一些.如果您查看layout/catalog.xml,则将价格块(product.clone_prices)添加到块product.info.options.wrapper.bottom,然后将其添加到product.info.container1product.info.container2.根据产品的不同,页面上将显示其中之一.但是,您可以删除product.clone_prices的行,然后删除价格.

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.

希望有帮助!

谢谢, 乔

这篇关于在Magento产品页面上一次显示价格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆