Skip to content

getSkinSettings(): TSkinSettings

The getSkinSettings method allows you to retrieve settings of a currently active skin in the shop.

Returned value

A returned value has a type of TSkinSettings.

Example

In this example we make a StorefrontSettingsApi call to retrieve settings of a currently active skin.

    useStorefront(async (storefront) => {
        const storefrontSettingsApi = storefront.getApiSync('StorefrontSettingsApi');

        const skinSettings = storefrontSettingsApi.getSkinSettings();

        if (skinSettings.isBuyingEnabledToUnregistered) {
            // do something
        }
    });

Storefront Settings API methods reference

Objects reference