在Magento产品页面上显示价格

use*_*987 6 magento

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

我试图改变app/design/frontend/base/default/template/catalog/product/price.phtml,但没有得到它.我也尝试过app/design/frontend/base/default/template/catalog/view.phtml,但是当我编辑price.phtml价格不高时.

那我该怎么办呢?有任何想法吗?

谢谢.

Jos*_*tey 12

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

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

希望有所帮助!

谢谢,乔