Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Aug 12, 2024
1 parent 3f74643 commit b1bb8e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion view/frontend/layout/hyva_catalog_product_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<body>
<referenceBlock name="product_breadcrumbs">
<arguments>
<argument name="client_side_rendered_crumbs_template" xsi:type="string">Opengento_ProductBreadcrumbs::hyvä/product/breadcrumbs.phtml</argument>
<argument name="client_side_rendered_crumbs_template" xsi:type="string">Opengento_ProductBreadcrumbs::hyva/product/breadcrumbs.phtml</argument>
</arguments>
</referenceBlock>
</body>
Expand Down
4 changes: 2 additions & 2 deletions view/frontend/templates/hyva/product/breadcrumbs.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
declare(strict_types=1);

use Hyvä\Theme\Model\ViewModelRegistry;
use Hyva\Theme\Model\ViewModelRegistry;
use Magento\Framework\Escaper;
use Magento\Theme\Block\Html\Breadcrumbs as BreadcrumbsBlock;
use Opengento\ProductBreadcrumbs\ViewModel\Product\Breadcrumbs as BreadcrumbsConfig;
Expand All @@ -26,7 +26,7 @@ $config = $viewModels->require(BreadcrumbsConfig::class);
function generateProductBreadcrumbsOnProductPage() {
<?php if (!$config->isServerSideRendered() || $config->isClientSideOverrideAllowed()): ?>
<?php $breadcrumbsTemplate = '<div id="product_breadcrumbs">' . $block->fetchView($block->getTemplateFile('Magento_Catalog::product/view/breadcrumbs.phtml')) . '</div>'; ?>
hyvä.replaceDomElement('#product_breadcrumbs', '<?= $escaper->escapeJs($breadcrumbsTemplate) ?>');
hyva.replaceDomElement('#product_breadcrumbs', '<?= $escaper->escapeJs($breadcrumbsTemplate) ?>');
<?php endif; ?>
}
</script>

0 comments on commit b1bb8e1

Please sign in to comment.