File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/PageBuilder/view/frontend/templates/catalog/product/view Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 14
14
$ helper = $ this ->helper (Magento \Catalog \Helper \Output::class);
15
15
$ product = $ block ->getProduct ();
16
16
?>
17
- <?php if ($ additional = $ block ->getAdditionalData ()) : ?>
17
+ <?php if ($ product && ( $ additional = $ block ->getAdditionalData () )) : ?>
18
18
<div class="pagebuilder-attributes-wrapper">
19
19
<?php foreach ($ additional as $ data ) : ?>
20
20
<div class="product-full-width-section">
Original file line number Diff line number Diff line change 9
9
*
10
10
* @var \Magento\Framework\View\Element\Template $block
11
11
*/
12
- $ childHtml = $ block ->getChildHtml ();
12
+ $ childHtml = $ block ->getProduct () ? $ block -> getChildHtml () : '' ;
13
13
?>
14
14
<?php if (trim ($ childHtml ) !== "" ) : ?>
15
15
<div class="product-full-width-section">
You can’t perform that action at this time.
0 commit comments