From 5ed0a153630dd35ce5a2105e8704f2c5b2c59422 Mon Sep 17 00:00:00 2001 From: azambon Date: Tue, 4 Aug 2020 09:55:58 +0200 Subject: [PATCH] Fails gracefully if it's not possible to retrieve the product that was added --- view/frontend/templates/powerstep_popup.phtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/view/frontend/templates/powerstep_popup.phtml b/view/frontend/templates/powerstep_popup.phtml index 844dc28..74c2830 100644 --- a/view/frontend/templates/powerstep_popup.phtml +++ b/view/frontend/templates/powerstep_popup.phtml @@ -1,8 +1,8 @@ getProduct() ? $block->getProduct()->getCategoryIds() : []; ?> -shouldShow()) : ?> +shouldShow() && $block->getProduct()) : ?> +$categoryIds = $block->getProduct()->getCategoryIds();

getHeaderText(); ?>

@@ -63,4 +63,4 @@ require(['jquery', 'clerk'], function($, Clerk) { }); - \ No newline at end of file +