1

using the template hints feature I noticed that the template used to render the price of each product in the wishlist is

"template/catalog/product/price.phtml".

I would like to change this path to use a custom phtml template, only for the wishlist page, but I can't find the place where it can be changed.

Anyone has suggestions?

1 Answer 1

1

the thing to do is edit the file wishlist.xml in the layout folder of the template and search for the tags that define the layout of the column "price" of the wishlist items. this is the edit:

<block type="wishlist/customer_wishlist_item_column_cart" name="customer.wishlist.item.price" template="wishlist/item/column/price.phtml">
                        <action method="setTitle" translate="title">
                            <title>Price</title>
                        </action>
                        <!-- change the price block for items in wishlist -->
                        <action method="addPriceBlockType">
                            <type>simple</type><block>catalog/product_price</block><template>path/to/custom/price.phtml</template>
                        </action>
                        <action method="addPriceBlockType">
                            <type>grouped</type><block>catalog/product_price</block><template>path/to/custom/price.phtml</template>
                        </action>
                        <action method="addPriceBlockType">
                            <type>configurable</type><block>catalog/product_price</block><template>path/to/custom/price.phtml</template>
                        </action>
                        <action method="addPriceBlockType">
                            <type>virtual</type><block>catalog/product_price</block><template>path/to/custom/price.phtml</template>
                        </action>
                        <action method="addPriceBlockType">
                            <type>bundled</type><block>catalog/product_price</block><template>path/to/custom/price.phtml</template>
                        </action>
                        <block type="wishlist/customer_wishlist_item_options" name="customer.wishlist.item.options" />
</block>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.