Giter Site home page Giter Site logo

shellpea / advanced-elasticsuite-catalog Goto Github PK

View Code? Open in Web Editor NEW
21.0 1.0 3.0 98 KB

Advanced Elasticsuite Catalog Module for Hyva Theme

Home Page: https://gitlab.hyva.io/hyva-themes/hyva-compat/magento2-shellpea-advanced-elasticsuite-catalog

License: MIT License

PHP 22.39% JavaScript 0.17% HTML 77.44%

advanced-elasticsuite-catalog's Introduction

Magento 2 Advanced Elastisuite Catalog Module

Magento 2 module enhancing ElasticSuite features for Hyva Theme. Adds smart ajax filtering, dynamic loading of products with infinite scroll.

Key Features

  • Multiple Ajax filtering without page reloads
  • Multiselect Ajax Swatches
  • Expandable and configurable Infinite Scroll

Installation

Hyva Theme version <=1.1.23

composer require "shellpea/magento-advanced-elasticsuite-catalog":"^1.0.0"

Hyva Theme version >=1.2.x || 1.3.x

composer require "shellpea/magento-advanced-elasticsuite-catalog":"^1.2.6"

Admin Configurations

General

  • Active: Yes/No

Infinite Scroll

  • Active: Yes/No
  • Button Label: String for infinite scroll button on Catalog Page Infinite Scroll button

Slider Configuration

Direct Mode Active: Yes/No Admin Configurations

advanced-elasticsuite-catalog's People

Contributors

alexdroomer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

advanced-elasticsuite-catalog's Issues

Price filter is not updated when active filter is removed

Steps to reproduce:

  1. Open category page with price filter (as as slider) active
  2. Adjust the slider, so the price is used as a filter and click on 'OK'
  3. Remove the active price filter individually or by the 'Clear all' button

Expected result
The price filter isn't active anymore and the slider is reset to the orignal value.

Actual result
The price filter isn't active anymore, but the slider still has the value that was selected before.

Magento version: 2.4.4-p2
PHP version: 7.4
Module version: 1.2.2

Exception #0 (RuntimeException): Product is not set on ProductRegistry.

I just got an exception after installing this extension v1.2.3 @ Magento CE v2.4.5-p5
i tried to disable the settings in backend without luck. Reindex did not help.
Google gives me 0 result for that error message >.<

Stacktrace:

1 exception(s):
Exception #0 (RuntimeException): Product is not set on ProductRegistry.

Exception #0 (RuntimeException): Product is not set on ProductRegistry.
<pre>#1 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:71]
#2 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#3 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#4 Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#5 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:23]
#6 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/magento/framework/View/Element/Template.php:263]
#7 Magento\Framework\View\Element\Template->fetchView() called at [generated/code/Magento/Framework/View/Element/Template/Interceptor.php:77]
#8 Magento\Framework\View\Element\Template\Interceptor->fetchView() called at [vendor/magento/framework/View/Element/Template.php:293]
#9 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1117]
#10 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1121]
#11 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:670]
#12 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#13 Magento\Framework\View\Element\Template\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#14 Magento\Framework\View\Element\Template\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/Element/AbstractBlockPlugin.php:63]
#15 MSP\DevTools\Plugin\View\Element\AbstractBlockPlugin->aroundToHtml() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#16 Magento\Framework\View\Element\Template\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#17 Magento\Framework\View\Element\Template\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Element/Template/Interceptor.php:302]
#18 Magento\Framework\View\Element\Template\Interceptor->toHtml() called at [vendor/shellpea/magento-advanced-elasticsuite-catalog/view/frontend/templates/product/list/item.phtml:165]
#19 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:71]
#20 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#21 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#22 Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#23 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:23]
#24 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/magento/framework/View/Element/Template.php:263]
#25 Magento\Framework\View\Element\Template->fetchView() called at [generated/code/Magento/Catalog/Block/Product/AbstractProduct/Interceptor.php:284]
#26 Magento\Catalog\Block\Product\AbstractProduct\Interceptor->fetchView() called at [vendor/magento/framework/View/Element/Template.php:293]
#27 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1117]
#28 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1121]
#29 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:670]
#30 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#31 Magento\Catalog\Block\Product\AbstractProduct\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#32 Magento\Catalog\Block\Product\AbstractProduct\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/Element/AbstractBlockPlugin.php:63]
#33 MSP\DevTools\Plugin\View\Element\AbstractBlockPlugin->aroundToHtml() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#34 Magento\Catalog\Block\Product\AbstractProduct\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#35 Magento\Catalog\Block\Product\AbstractProduct\Interceptor->___callPlugins() called at [generated/code/Magento/Catalog/Block/Product/AbstractProduct/Interceptor.php:509]
#36 Magento\Catalog\Block\Product\AbstractProduct\Interceptor->toHtml() called at [vendor/hyva-themes/magento2-theme-module/src/ViewModel/ProductListItem.php:172]
#37 Hyva\Theme\ViewModel\ProductListItem->renderItemHtml()
#38 call_user_func_array() called at [vendor/hyva-themes/magento2-theme-module/src/ViewModel/ProductListItem.php:192]
#39 Hyva\Theme\ViewModel\ProductListItem->withParentChildLayoutRelationshipExecute() called at [vendor/hyva-themes/magento2-theme-module/src/ViewModel/ProductListItem.php:134]
#40 Hyva\Theme\ViewModel\ProductListItem->getItemHtmlWithRenderer() called at [vendor/hyva-themes/magento2-theme-module/src/ViewModel/ProductListItem.php:217]
#41 Hyva\Theme\ViewModel\ProductListItem->getItemHtml() called at [vendor/shellpea/magento-advanced-elasticsuite-catalog/view/frontend/templates/product/list.phtml:97]
#42 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:71]
#43 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#44 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#45 Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#46 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:23]
#47 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/magento/framework/View/Element/Template.php:263]
#48 Magento\Framework\View\Element\Template->fetchView() called at [generated/code/Shellpea/AdvancedElasticsuiteCatalog/Block/ListProduct/Interceptor.php:455]
#49 Shellpea\AdvancedElasticsuiteCatalog\Block\ListProduct\Interceptor->fetchView() called at [vendor/magento/framework/View/Element/Template.php:293]
#50 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1117]
#51 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1121]
#52 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:670]
#53 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#54 Shellpea\AdvancedElasticsuiteCatalog\Block\ListProduct\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#55 Shellpea\AdvancedElasticsuiteCatalog\Block\ListProduct\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/Element/AbstractBlockPlugin.php:63]
#56 MSP\DevTools\Plugin\View\Element\AbstractBlockPlugin->aroundToHtml() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#57 Shellpea\AdvancedElasticsuiteCatalog\Block\ListProduct\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#58 Shellpea\AdvancedElasticsuiteCatalog\Block\ListProduct\Interceptor->___callPlugins() called at [generated/code/Shellpea/AdvancedElasticsuiteCatalog/Block/ListProduct/Interceptor.php:671]
#59 Shellpea\AdvancedElasticsuiteCatalog\Block\ListProduct\Interceptor->toHtml() called at [vendor/magento/framework/View/Layout.php:578]
#60 Magento\Framework\View\Layout->_renderBlock() called at [vendor/magento/framework/View/Layout.php:555]
#61 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:149]
#62 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:510]
#63 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#64 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#65 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/LayoutPlugin.php:102]
#66 MSP\DevTools\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#67 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php:77]
#68 Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#69 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#70 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:140]
#71 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Element/AbstractBlock.php:517]
#72 Magento\Framework\View\Element\AbstractBlock->getChildHtml() called at [generated/code/Magento/Catalog/Block/Category/View/Interceptor.php:302]
#73 Magento\Catalog\Block\Category\View\Interceptor->getChildHtml() called at [vendor/magento/module-catalog/Block/Category/View.php:100]
#74 Magento\Catalog\Block\Category\View->getProductListHtml() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#75 Magento\Catalog\Block\Category\View\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#76 Magento\Catalog\Block\Category\View\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#77 Magento\Catalog\Block\Category\View\Interceptor->___callPlugins() called at [generated/code/Magento/Catalog/Block/Category/View/Interceptor.php:23]
#78 Magento\Catalog\Block\Category\View\Interceptor->getProductListHtml() called at [vendor/hyva-themes/magento2-default-theme/Magento_Catalog/templates/category/products.phtml:21]
#79 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:71]
#80 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#81 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#82 Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#83 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:23]
#84 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/magento/framework/View/Element/Template.php:263]
#85 Magento\Framework\View\Element\Template->fetchView() called at [generated/code/Magento/Catalog/Block/Category/View/Interceptor.php:140]
#86 Magento\Catalog\Block\Category\View\Interceptor->fetchView() called at [vendor/magento/framework/View/Element/Template.php:293]
#87 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1117]
#88 Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}() called at [vendor/magento/framework/View/Element/AbstractBlock.php:1121]
#89 Magento\Framework\View\Element\AbstractBlock->_loadCache() called at [vendor/magento/framework/View/Element/AbstractBlock.php:670]
#90 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#91 Magento\Catalog\Block\Category\View\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#92 Magento\Catalog\Block\Category\View\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/Element/AbstractBlockPlugin.php:63]
#93 MSP\DevTools\Plugin\View\Element\AbstractBlockPlugin->aroundToHtml() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#94 Magento\Catalog\Block\Category\View\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#95 Magento\Catalog\Block\Category\View\Interceptor->___callPlugins() called at [generated/code/Magento/Catalog/Block/Category/View/Interceptor.php:365]
#96 Magento\Catalog\Block\Category\View\Interceptor->toHtml() called at [vendor/magento/framework/View/Layout.php:578]
#97 Magento\Framework\View\Layout->_renderBlock() called at [vendor/magento/framework/View/Layout.php:555]
#98 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:149]
#99 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:510]
#100 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#101 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#102 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/LayoutPlugin.php:102]
#103 MSP\DevTools\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#104 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php:77]
#105 Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#106 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#107 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:140]
#108 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:606]
#109 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:557]
#110 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:149]
#111 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:510]
#112 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#113 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#114 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/LayoutPlugin.php:102]
#115 MSP\DevTools\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#116 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php:77]
#117 Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#118 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#119 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:140]
#120 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:606]
#121 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:557]
#122 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:149]
#123 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:510]
#124 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#125 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#126 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/LayoutPlugin.php:102]
#127 MSP\DevTools\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#128 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php:77]
#129 Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#130 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#131 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:140]
#132 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:606]
#133 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:557]
#134 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:149]
#135 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:510]
#136 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#137 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#138 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/LayoutPlugin.php:102]
#139 MSP\DevTools\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#140 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php:77]
#141 Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#142 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#143 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:140]
#144 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:606]
#145 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:557]
#146 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:149]
#147 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:510]
#148 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#149 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#150 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/LayoutPlugin.php:102]
#151 MSP\DevTools\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#152 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php:77]
#153 Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#154 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#155 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:140]
#156 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:606]
#157 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:557]
#158 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:149]
#159 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:510]
#160 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#161 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#162 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/LayoutPlugin.php:102]
#163 MSP\DevTools\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#164 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php:77]
#165 Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#166 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#167 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:140]
#168 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:606]
#169 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:557]
#170 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:149]
#171 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:510]
#172 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#173 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#174 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/LayoutPlugin.php:102]
#175 MSP\DevTools\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#176 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php:77]
#177 Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#178 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#179 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:140]
#180 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:606]
#181 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:557]
#182 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:149]
#183 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:510]
#184 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#185 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#186 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/msp/devtools/Plugin/View/LayoutPlugin.php:102]
#187 MSP\DevTools\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#188 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/honl/magento2-templatehints/Plugin/View/LayoutPlugin.php:77]
#189 Ho\Templatehints\Plugin\View\LayoutPlugin->aroundRenderElement() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#190 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#191 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:140]
#192 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:975]
#193 Magento\Framework\View\Layout->getOutput() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#194 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#195 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#196 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:347]
#197 Magento\Framework\View\Layout\Interceptor->getOutput() called at [vendor/magento/framework/View/Result/Page.php:260]
#198 Magento\Framework\View\Result\Page->render() called at [vendor/magento/framework/View/Result/Layout.php:171]
#199 Magento\Framework\View\Result\Layout->renderResult() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#200 Magento\Framework\View\Result\Page\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#201 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#202 Magento\Framework\View\Result\Page\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:95]
#203 Magento\Framework\View\Result\Page\Interceptor->renderResult() called at [vendor/magento/framework/App/Http.php:120]
#204 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
#205 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#206 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:30]
</pre>

Show more products button doesn't work

show more product button is not working in category pages. I can see below console error on category page.
image
and get below error when I click on show more button.
image

Hyva Theme version is 1.3.2

Ajax Layered Navigation Price slider not updating on other product attribute filter apply

I am having shellpea/magento-advanced-elasticsuite-catalog:1.2.6 installed along with hyva theme 1.3.7

Steps to reproduce:

Open category page with price filter (as as slider) active
Click on product attribute filter like brand, color, etc. -> Apply filter

Expected result
The price slider should also update as range of product collection and product count should also applied (like other product attribute)

Actual result
The price slider is not update on ajax request / It update when we do page refresh manually.

Magento version: 2.4.6-p1
PHP version: 8.1
Module version: 1.2.6

Errors after clear all active filters

When you visit a URL directly with one or more filters active and clear those filters, the console will be full of errors (see screenshot below).

Steps to reproduce

  1. Visit the product overview page
  2. Select an attribute filter
  3. Reload the page, or re-enter the current URL. So you're now visiting a URL with a filter active directly
  4. Click the 'Clear all' button to remove all active filters

What is expected to happen

The active filters will be cleared and the product list is updated.

What actually happens

The active filters are cleared, the product list is updated, but also the console is full of errors.
Also, all the filters are expanded with a 'Show more' button.

image

Weird behaviour of the Show More / Show Less buttons

After you check a filter, the filter content box automatically gets expanded and the "Show more" button is still showing up at the end of the list.

Screenshot 2023-06-28 at 17 02 47

And after you interact with the Show more / less buttons, the previously selected filter gets un-checked (only visually because the product list still shows the correct products)

Screenshot 2023-06-28 at 17 05 45

Issue with Varnish cache

Hi, we have an issue with this module in combination with Varnish FPC.

Steps to reproduce:

  • Open category page and apply a filter (for example the price filter), this works correctly (when the url is not cached before).
  • Remove the active filter individually or by the 'Clear all' button

Expected result

  • The filtered collection is restored and all products from that category are shown.

Actual result

  • There is an error throwned -> "SyntaxError: Unexpected token '<', " <!doctype "... is not valid JSON"

This is because the fetch gets the full html response from the Varnish cache instead of the JSON. Also when you refresh a page when filtered (for example ?price=17-56 is in the url), you will see a json output instead of the page.

image

Magento version: 2.4.4-p2
PHP version: 7.4
Module version: 1.2.3
Varnish 6

Javascript breaks when HTML minify is enabled.

In vendor/shellpea/magento-advanced-elasticsuite-catalog/view/frontend/templates/configuration.phtml Line 17 there is a return statement that uses JS template literals:

get clearUrl() {
    const { protocol, host, pathname, searchParams } = new URL(window.location)

    return `${protocol}//${host}${pathname}${searchParams.has('q') ? '?q=' + searchParams.get('q').toString() : ''}`;
},

Screenshot 2023-06-28 at 16 02 48

The problem is that there is a double back-slash string inside that template literal and the HTML minifier cannot interpret that properly in .phtml files in this context. My guess is that it turns everything after "//" into a comment.

I suggest replacing the clearUrl() method with something like:

get clearUrl() {
    const { protocol, host, pathname, searchParams } = new URL(window.location),
    qParam = searchParams.has('q') ? '?q=' + searchParams.get('q').toString() : '',
    endParam = protocol + '//' + host + pathname + qParam;

    return endParam;
},

Slider attribute is adding filter value twice to url

We have an attribute set to be displayed as a slider which continuously adds the value you select to the url (even though there is already a value present);

Example
https://some-url/products?slider=1-2
If you would then select a new value for the "slider" attribute you would get
https://some-url/products?slider=1-2&slider=1-3

This keeps repeating everytime you select a value.

I traced the code back to /view/frontend/templates/catalog/layer/filter/js/slider-filter-js.phtml in this section

_applyRange: function () {
    var range = {
        from: this._getOriginalValue(this.minprice) * (1 / this.rate),
        to: this._getOriginalValue(this.maxprice) * (1 / this.rate),
    };
    const searchParams = () => {
        let searchParams = new URL(window.location).searchParams
        searchParams.delete('price')
        searchParams.delete('q')

        return searchParams.size !== 0 ? '&' + searchParams.toString() : ''
    }
    this.url = this._unescape(this.options.urlTemplate.replace('<%- from %>', range.from).replace('<%- to %>', range.to) + searchParams());
},

Also unsure why the "price" and "q" are already being removed;
It could seem logical for price because this bug would also apply for that attribute if it's displayed as a slider, but "q" I have no idea.

Using

smile/elasticsuite: 2.11.6.1
hyva-themes/magento2-smile-elasticsuite: 1.2.3
shellpea/magento-advanced-elasticsuite-catalog: v1.2.6

Module breaks the search results page

Hello!

Using this module on a Hyva project (Default un-modified Hyva theme):

smile/elasticsuite: 2.11.1.1
hyva-themes/magento2-smile-elasticsuite: 1.2.0
hyva-themes/magento2-default-theme: 1.2.3

But the search results page breaks with the following error:

Error: Call to a member function setUniqueId() on bool in /vendor/shellpea/magento-advanced-elasticsuite-catalog/view/frontend/templates/catalog/layer/filter/attribute.phtml:16

This seems to be happening because in:

  • In vendor/shellpea/magento-advanced-elasticsuite-catalog/view/frontend/layout/hyva_catalogsearch_result_index.xml the "attribute-filter-js" block is removed

Screenshot 2023-05-25 at 11 34 58

  • In vendor/shellpea/magento-advanced-elasticsuite-catalog/view/frontend/templates/catalog/layer/filter/attribute.phtml the "attribute-filter-js" block is being loaded.

Screenshot 2023-05-25 at 11 35 09

Is this intended or am I missing something?

Thank you!

Ajax Layered Navigation Filter Randomly error in Hyva theme

I have installed the module using composer with below command

composer require "shellpea/magento-advanced-elasticsuite-catalog":"^1.2.1"

It seems all good while i am doing test on product listing page with shop by filters i see following errors on random result.

Even i did checked the inspect element the component is there.

Reference error is attached.

attribute

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.