My size button
To integrate the "My Sizes" button on a category page, the LS-script must be placed on all site pages or category pages on which this button should be displayed.
The script will determine if data is available for the "My Sizes" functionality (category + brands).
If the data is available, the button "My sizes" will be built.
After clicking on the "My Sizes" button, depending on the settings, the specified JS function with the LSuserKey parameter will be called, or redirected to the current page with the additional GET parameter LSuserKey
After receiving the LSuserKey parameter, you can use the API (method getDataByBrand ) to receive a JSON object with a list of all brands for which it was possible to determine the size based on the user parameters.
Based on this data, you need to display products by such filters as Brand and Size.