We offer professional Design/Code Customisation and Website Optimisation Service Request Customisation
  • Status: Closed
  • Closed by: Marek (marek)
  • Closed on: 29.08.17, 22:44
  • Reason: Closed
  • Comment: Glad to help!

Ticket #10596 - Product detail : Exception after the update PS to 1.7.2

Hello, when I tried to display product detail after update to latest stable version 1.7.2 I got the following exception. <code> ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 151: Notice: Undefined index: manufacturer_name</code> How can I solve it, please?

This ticket does not depend on any other tickets.

Marek (marek) 25 Jul 2017, 11:38

Now it should be ok, Please check it out

Jiri (askingGe) 25 Jul 2017, 11:58

Which files have been updated, please? I will move on the new server and I cannot filter via FTP client which files have been changed. Thank You very much.

Marek (marek) 25 Jul 2017, 12:06

The file is "/themes/alysum/templates/catalog/_partials/miniatures/product.tpl"

Jiri (askingGe) 25 Jul 2017, 15:02

OK, now I see the difference in the template but the problem remains the same. When I removed all block with the condition: <code>{if (isset($smarty.cookies.pm_brand) && ($smarty.cookies.pm_brand == true)) || (isset($pkts.pm_brand) && $pkts.pm_brand == true) && (isset($product.manufacturer_name))} {block name='product_manufacturer'} <h6 class="product-brand ellipsis">{$product.manufacturer_name}</h6> {/block} {/if}</code> It works. But this is a temporary solution.

Marek (marek) 25 Jul 2017, 15:28

I don't understand why it's a temporary solution. The condition is easy if (isset($product.manufacturer_name)) -> show manufacturer