Integrate search bar (like in product controller for packs) in custom module controller - prestashop

I'm facing an issue when I'm try to integrate the same search bar as the one in product controller for product packs.
(this one)
I've been scrolling through the whole product controller but didn't find where the search bar is rendered.
I found few parts nearly related of the input in product.js, but nothing really interesting.
What I'm trying to do is implement the same search bar with product suggestions, I will find out later how to "save" it like in product controller when you create a pack.

Backoffice product page had been migrated in Symfony, form is built in a twig template inside:
src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Panels/essentials.html.twig
src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig
While JS handler is here :
admin/themes/new-theme/js/product-page/product-search-autocomplete.js

Related

Rendering a different view for each product category in an ecommerce website

I'm currently building an e-commerce website and I want to render a different view for each product category or the view that a vendor chose to use. Please how can I do this using Laravel
I have tried conditional rendering in my blade but it seems not to work since the master view template is not changing. All I want to do it to change the master view layout completely and render new UI

Is there a way to create tabs and mark selected tab based on page loaded in spartacus

I am using spartacus framework for storefront. I want to show tabs in my application and load pages based on selected tab. Is there any existing cms component or configuratio with which we can do or can i extent the cmscategorynavigation component and customize?
The CMSTabParagraphContainer is used on the product details page to display tabs. A CMSTabParagraphContainer can contain SimpleCMSComponents but not for example ContentPages. You would have to extend the CMSTabParagraphContainer on the backend to also accept ContentPages, ProductPages etc. and then extend the frontend components as well. To extend Spartacus components have a look at: https://sap.github.io/spartacus-docs/customizing-cms-components/
To be honest: This seems like a lot of work if you just want a visual change to the navigation

Sitefinity's Default list (mvc) widget disappeared on news details page?

I have to show Listing using the sitefinity's default List widget on my news details page where my list widget disappeared because of news detail's url because my list widget also consider it as details page while I have to show listing only.
To resolve this error I have used the article . And this is working fine in case off multiple news widgets i.e one to always display listing and other to display details but same did't work in case of list widget.(I am using mvc widgets for both news and List,with Sitefinity 10.1.6502.0)
Need your help!
It looks like for whatever reason the list widget doesn't implement an override of the HandleUnknown action. (The code for that controller is here: link) You can see similar methods in other widgets that return the index action. (e.g. the blog post widget)

Lazy load pages in PrestaShop?

By default, pagination in PrestaShop is available in every product page (displaying up to 10 items per page).
But according to my project requirements, I need a lazy loading page (only 10 products need to displayed before trying to scroll down the page). Does PrestaShop have this feature ?
This is not possible by default.
You have to create your own module or buy/use available product like:
Masonry All Products
Infinite Scroll for Prestashop
3. Answer by thepsyntist from https://www.prestashop.com/forums/
[...] I successfully implemented an infinite scroll module on
Prestashop 1.6.0.11 (A custom theme) and 1.6.1.0 (Default theme). I
found this module on GitHub a couple of months ago and finally today I
got success implementing it. Hence I have no direct link for it or
know who created it. Link to the module.
If you'd like to load images the same way, there is one another module.

prestashop layered navigation block

normally layered navigation block is only displayed on a few pages like category page, search pages. However I want to show it in the "manufacturer" page/controller. If someone clicks the "manufacturer" menu to show up all the manufacturers, I want to show the "layered navigation" on the left column of the manufaturer controller.
Does someone know how to do that ?
I am using prestashop 1.5.6.2 and a premium responsive 3 column theme.
I would appreciate any help. Thanks.
I want update this topic because now the addon to handle filtering on manufacturer product pages is available on official prestashop addons store and works perfectly :
Download blocklayeredmanufacturer module here
Best Regards