Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

https://github.com/magesuite/performance-category

A module that collects performance improvements for productscategories.

Installation

Info

This module is required by magesuite-performance module, which is required by core metapackage.

...

Code Block
composer require "creativestyle/magesuite-performance-productcategory" ^1.0.0

Admin settings

Asynchronous price loading for simples of configurable product can be switched off and on in the admin panel.

Stores -> Configuration -> MageSuite -> Performance Improvements

...

Settings:

...

Option

...

Value

...

Comment

...

Async Option Prices

...

Yes/No

Default value: Yes

...

Table of Contents
minLevel1
maxLevel7

Admin settings

No admin settings for this module.

Backend

Note

Add BE documentation

Frontend

Scripts

swatch-async-prices.js mixin is added in order to load price information asynchronously.

Code Block
'Magento_Swatches/js/swatch-renderer': {
    'MageSuite_PerformanceProduct/js/swatch-async-prices': true,
},
'MageSuite_ServerSideSwatches/js/swatch-renderer': {
    'MageSuite_PerformanceProduct/js/swatch-async-prices': true,
},

After a swatch is clicked there is a request to /performance/swatches/prices/product_id/339/[ID] endpoint and options.jsonConfig od swatch-renderer widget is extended with prices data.

...

  • disallowed caching of empty categories

  • decreased amount of SQL queries generated when visiting the category page

  • fixed the issue on the search page (it appears if a request with a specific search phrase returns many results)

Frontend

No frontend code in the module.