Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
产品视图页面上的Magento custom price.phtml_Magento - Fatal编程技术网

产品视图页面上的Magento custom price.phtml

产品视图页面上的Magento custom price.phtml,magento,Magento,我想在我的magento网站上设置一个自定义的product_price_page.phtml,它只会在product view页面上被调用。我完全不知道如何做到这一点 如果想要直接 <?php echo $this->getLayout()->createBlock('catalog/product')->setProduct($product)->setTemplate('catalog/product/custom-price.phtml')->toHt

我想在我的magento网站上设置一个自定义的product_price_page.phtml,它只会在product view页面上被调用。我完全不知道如何做到这一点

如果想要直接

<?php
echo $this->getLayout()->createBlock('catalog/product')->setProduct($product)->setTemplate('catalog/product/custom-price.phtml')->toHtml();
?>
在这里您将更改price.phtml

其他位置是Mage\u目录\u块\u产品\u摘要

Mage_Catalog_Block_Product function  getPriceHtml();