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();