Site Management Tools Customization for Commerce Websites

Enable site administrators to customize Commerce website styles using Site Management Tools. Learn essential customization practices.

·3 min read·View Oracle Docs

Enabling site administrators to customize a Commerce website's appearance and functionality is essential for tailored user experiences. This article explores how theme developers can leverage Site Management Tools (SMT) for enhancing looks and layouts efficiently.

How Can Developers Customize Commerce Websites?

As a theme developer, you have the ability to expose variables that site administrators can use to modify various aspects of design and UX. Here’s how:

  • Expose Variables: Use protocols to enable settings modifications, as detailed in the section about exposing Sass variables.
  • Organize Variables: Structure exposed variables for clarity. This makes it easier for site administrators to find and use them effectively.
  • Create Preset JSON Files: Offer a robust set of predefined settings to streamline customization workflows.

What is the Theme Skin Manager?

The Theme Skin Manager included in SMT Version 3 allows administrators to modify the styles and layouts of an active theme based on predefined settings. The flexibility provided by this manager enables:

  • Changes to individual settings.
  • Application of skins that change multiple settings simultaneously.

Exposing Sass Variables for Customization

To configure your theme for customization:

  1. Open the Sass File: Identify the file containing the variable you wish to expose.
  2. Use Comments: Follow any variable declaration with an inline or block comment.
  3. Editable Function: Utilize the editable() function within the comment to declare your variable as editable.
  4. Save and Publish: Save the file, ensuring your new settings are included in the theme’s manifest so they’re available for SMT.
  5. Testing: Use theme developer tools to verify your theme post-modification.
css
$sc-primary-color: red; //
$sc-primary-color: red; /* */

Organizing Exposed Variables

To enhance user experience, organize the exposed variables using groups:

  1. Open the Relevant Sass File: Access the Sass file containing the variable.
  2. Define Groups: Use the group() function within the comment tags to catalog variables logically.
  3. Save Changes: Ensure all new organizational structures are saved, activating them within the SMT as needed.

Example of Grouping Variables

The group() function can be implemented anywhere within your Sass files, though it's best to associate it with the relevant variable for clarity.

css
// Group variables for colors
// { "id": "color-group", "label": "Color Settings" }

By following these structured approaches, developers can ensure that site administrators find the theme customization process not just efficient but also intuitive.

Who This Affects

  • Site Administrators: Who will utilize the SMT for customizing the site.
  • Theme Developers: Responsible for structuring themes to be easily editable.

Key Takeaways

  • SMT empowers site administrators with significant customization capabilities.
  • Properly exposing and organizing Sass variables enhances usability.
  • The Theme Skin Manager allows for simultaneous changes across multiple settings, streamlining the customization process.

Source: This article is based on Oracle's official NetSuite documentation.

Frequently Asked Questions (4)

Do I need to enable any feature flags to use the Site Management Tools for customizing Commerce websites?
The article does not specify the need for enabling any feature flags to use Site Management Tools for customization.
How can theme developers allow site administrators to modify design and UX using Site Management Tools?
Theme developers can expose Sass variables and use the `editable()` function in their comments to allow site administrators to modify various design and UX aspects through Site Management Tools.
What is the role of the Theme Skin Manager in customization?
The Theme Skin Manager in SMT Version 3 allows administrators to modify styles and layouts of an active theme by changing individual settings or applying skins that change multiple settings simultaneously.
How should exposed variables be organized to enhance user experience?
Variables should be structured using the `group()` function within comment tags in Sass files, which groups them logically and makes them more accessible to site administrators.
Source: Enable Customization from Site Management Tools Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in Commerce

View all Commerce articles →