Jump to content

Recommended Posts

On first category page load, PrestaShop renders the default product listing and default sorting (SSR $listing.sort_orders / $listing.sort_selected).
Amazzing Filter takes over only after user interaction (clicking any filter or sorting option) via AJAX (getFilteredProducts).

However, when I enable PrestaShop debug/profiling mode, it works correctly — Amazzing Filter takes over immediately on the first category load and the listing data differs (e.g. $listing.products|count is 24 in normal mode, but 48 in debug/profiling mode, and the default sorting changes to “Relevance”).

I can force the initial AF takeover by calling:

af.loadProducts('init', true)

on page load, but I want AF to handle the listing immediately without showing the default PrestaShop listing/sorting first.

Important notes / environment:

Cache is disabled (also tested with PrestaShop cache OFF)

LiteSpeed Cache module installed, but disabled (issue still happens)

ps_facetedsearch is disabled/removed

Tested with other modules disabled as well (issue still happens)

I’m using an SEO module: SeoPro - All-In-One SEO & URL - Advanced

Is there any official setting / recommended way to make Amazzing Filter replace the SSR listing, or trigger the initial AJAX load automatically on first page load?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...