Skip to main content
deleted 15 characters in body
Source Link

I'd change the default catalog/product/price.phtml

I've tried already:

        <reference name="catalog_product_price_template">
        <action method="addPriceBlockType"><type>simple</type><block>catalog/product_price</block><template>catalog/product/custom-price.phtml</template></action>
    </reference>

but using xdebug I've seen that the addPriceBlockType method is not used for the simple product, so it returns the default template.

where I'm wrong? thank you

I'd change the default catalog/product/price.phtml

I've tried already:

        <reference name="catalog_product_price_template">
        <action method="addPriceBlockType"><type>simple</type><block>catalog/product_price</block><template>catalog/product/custom-price.phtml</template></action>
    </reference>

but using xdebug I've seen that the addPriceBlockType method is not used for the simple product, so it returns the default template.

where I'm wrong? thank you

I'd change the default catalog/product/price.phtml

I've tried already:

<reference name="catalog_product_price_template">
     <action method="addPriceBlockType"><type>simple</type><block>catalog/product_price</block><template>catalog/product/custom-price.phtml</template></action>
</reference>

but using xdebug I've seen that the addPriceBlockType method is not used for the simple product, so it returns the default template.

where I'm wrong? thank you

Source Link
apedic
  • 923
  • 12
  • 37

Replace default price template in product view

I'd change the default catalog/product/price.phtml

I've tried already:

        <reference name="catalog_product_price_template">
        <action method="addPriceBlockType"><type>simple</type><block>catalog/product_price</block><template>catalog/product/custom-price.phtml</template></action>
    </reference>

but using xdebug I've seen that the addPriceBlockType method is not used for the simple product, so it returns the default template.

where I'm wrong? thank you