File tree Expand file tree Collapse file tree
src/view/frontend/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 "hyva-themes/magento2-compat-module-fallback" : " *" ,
1212 "hyva-themes/magento2-default-theme" : " ^1.3.15" ,
1313 "php" : " ^8.1" ,
14- "tweakwise/magento2-tweakwise" : " >=8.9.0. "
14+ "tweakwise/magento2-tweakwise" : " >=8.11.0 "
1515 },
1616 "autoload" : {
1717 "files" : [
Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ use Tweakwise\Magento2Tweakwise\Model\NavigationConfig;
88
99/** @var \Tweakwise\Magento2Tweakwise\ViewModel\PersonalMerchandisingAnalytics $viewModel */
1010$ viewModel = $ block ->getData ('viewModel ' );
11- $ analyticsTypes = $ block ->getData ('analyticsTypes ' );
12- $ eventsData = $ viewModel ->getEventsData ($ analyticsTypes );
1311
1412/** @var NavigationConfig $tweakwiseNavigationConfig */
1513$ tweakwiseNavigationConfig = $ block ->getData ('tweakwise_navigation_config ' );
1614$ jsFormConfig = $ tweakwiseNavigationConfig ? json_decode ($ tweakwiseNavigationConfig ->getJsFormConfig ()) : [];
15+ $ twRequestId = $ jsFormConfig ->tweakwiseNavigationForm ->twRequestId ?? '' ;
16+
17+ $ analyticsTypes = $ block ->getData ('analyticsTypes ' );
18+ $ eventsData = $ viewModel ->getEventsData ($ analyticsTypes , $ twRequestId );
1719?>
1820
1921<div x-data='{
@@ -22,7 +24,7 @@ $jsFormConfig = $tweakwiseNavigationConfig ? json_decode($tweakwiseNavigationCon
2224 productListSelector: ".products.wrapper",
2325 productSelector: ".product-item",
2426 analyticsEndpoint: "<?= /* @noEscape */ $ jsFormConfig ->tweakwiseNavigationForm ->analyticsEndpoint ?? '' ; ?> ",
25- twRequestId: "<?= $ escaper ->escapeHtmlAttr ($ jsFormConfig -> tweakwiseNavigationForm -> twRequestId ?? '' ); ?> "
27+ twRequestId: "<?= $ escaper ->escapeHtmlAttr ($ twRequestId ); ?> "
2628 }
2729}' x-init='() => {
2830 Tweakwise_Hyva_Analytics({
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ $hasAlternateSortOrder = $block->hasAlternateSortOrder();
2020?>
2121<div x-data="initTweakwiseNavigationItems()" x-init='sortItems(<?= (int )$ hasAlternateSortOrder ?> )'>
2222 <?php if ($ block ->isSearchable ()): ?>
23- <input aria-hidden="true" tabindex="-1" @keyUp ="filterSearch()" x-ref="tw_filtersearch" x-data="initFilterSearch()" data-max-visible="<?= $ escaper ->escapeHtmlAttr ($ block ->getMaxItemsShown ())?> " type="text" class="tw_filtersearch js-skip-submit" name="tw_filtersearch" placeholder="<?= $ escaper ->escapeHtmlAttr ($ block ->getSearchPlaceholder ()); ?> " >
23+ <input aria-hidden="true" tabindex="-1" @keyup ="filterSearch()" x-ref="tw_filtersearch" x-data="initFilterSearch()" data-max-visible="<?= $ escaper ->escapeHtmlAttr ($ block ->getMaxItemsShown ())?> " type="text" class="tw_filtersearch js-skip-submit" name="tw_filtersearch" placeholder="<?= $ escaper ->escapeHtmlAttr ($ block ->getSearchPlaceholder ()); ?> " >
2424 <div x-ref="search_no_results" style="display: none" class="search_no_results empty"><?= $ escaper ->escapeHtml ($ block ->getSearchNoResultsText ()); ?> </div>
2525 <?php endif ; ?>
2626 <ol class="items" x-ref="items">
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ if (!$swatchData['swatches']) {
9696 data-attribute-code="<?= $ escaper ->escapeHtmlAttr ($ swatchData ['attribute_code ' ]) ?> "
9797 data-attribute-id="<?= $ escaper ->escapeHtmlAttr ($ swatchData ['attribute_id ' ]) ?> ">
9898 <?php if ($ block ->isSearchable ()): ?>
99- <input tabindex="-1" @keyUp ="filterSearch()" x-ref="tw_filtersearch" x-data="initFilterSearch()" data-max-visible="<?= $ escaper ->escapeHtmlAttr ($ block ->getMaxItemsShown ())?> " type="text" class="tw_filtersearch js-skip-submit" name="tw_filtersearch" placeholder="<?= $ escaper ->escapeHtmlAttr ($ block ->getSearchPlaceholder ()); ?> " >
99+ <input tabindex="-1" @keyup ="filterSearch()" x-ref="tw_filtersearch" x-data="initFilterSearch()" data-max-visible="<?= $ escaper ->escapeHtmlAttr ($ block ->getMaxItemsShown ())?> " type="text" class="tw_filtersearch js-skip-submit" name="tw_filtersearch" placeholder="<?= $ escaper ->escapeHtmlAttr ($ block ->getSearchPlaceholder ()); ?> " >
100100 <div x-ref="search_no_results" style="display: none" class="search_no_results empty"><?= $ escaper ->escapeHtml ($ block ->getSearchNoResultsText ()); ?> </div>
101101 <?php endif ; ?>
102102 <div class="swatch-attribute-options clearfix flex flex-row flex-wrap" x-ref="swatch">
You can’t perform that action at this time.
0 commit comments