0

Hi I am getting an error when I try and pull back review stars from Feefo. I have the following code in my list.phtml which works fine when browsing through products. However on the search results page it errors!

<?php echo $this->getChild('feefo_category_product_logo')->setProduct($_product)->toHtml(); ?>
Fatal Error:  Call to a member function setProduct() on a non-object in "/path/list.phtml" on line 98

Does anyone have any idea why it would throw up this error on the search page and not on a category listing page?

Thanks

1

You will need to set child "feefo_category_product_logo" for the catalog search layout also.

Add child in search_result_list reference. you can add it in catalogsearch.xml or local.xml of your theme.

<catalogsearch_result_index translate="label">
  <reference name="search_result_list">
    <!-- add child here-->
  </reference>
</catalogsearch_result_index>
  • Hi and thanks! I have found the location I need to add the child, can you provide an example of how the <!-- add child here --> should be formatted? – KiwisTasteGood Jan 13 '16 at 9:43
  • search "feefo_category_product_logo" word in your theme or find it in catalog.xml or local.xml. you will need to copy same xml code and paste as I shown above in my answer. – Akhilesh Patel Jan 13 '16 at 10:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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