Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions view/frontend/templates/powerstep_popup.phtml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/** @var \Clerk\Clerk\Block\PowerstepPopup $block */
$categoryIds = $block->getProduct() ? $block->getProduct()->getCategoryIds() : [];
?>
<?php if ($block->shouldShow()) : ?>
<?php if ($block->shouldShow() && $block->getProduct()) : ?>
$categoryIds = $block->getProduct()->getCategoryIds();
<div id="clerk_powerstep" class="clerk-popup">
<div class="clerk_powerstep_header">
<h2><?php echo $block->getHeaderText(); ?></h2>
Expand Down Expand Up @@ -63,4 +63,4 @@ require(['jquery', 'clerk'], function($, Clerk) {
<?php endif; ?>
});
</script>
<?php endif; ?>
<?php endif; ?>