Adding Exposed Variables in Skin Files for SuiteCommerce

Learn to add exposed variables in skin files for SuiteCommerce, allowing site admins to customize colors easily.

·1 min read·View Oracle Docs

What is an Exposed Variable?

Exposed variables in SuiteCommerce allow site administrators to personalize aspects of their site, such as color schemes, directly through the Theme Customizer. This functionality is essential for maintaining brand consistency and enhancing user experience.

How to Add Exposed Variables to Skin Files

To enable administrators to change editable colors, follow these steps to add entries to your skin JSON files:

  1. Modify skin1.json:
    Navigate to your local workspace directory and open the Skins/skin1.json file. Scroll to the end of the file and add the following line, ensuring to include a comma at the end of the previous entry:

    css
    "$color-glowy": "red"
  2. Modify skin2.json:
    Next, open the Skins/skin2.json file. Again, append the following line, remembering to add a comma at the end of the preceding line:

    css
    "$color-glowy": "green"

By completing these steps, administrators will be able to dynamically select between red and green for customization in the Theme Customizer, enhancing the flexibility and visual appeal of your site.

Frequently Asked Questions (4)

Can I add exposed variables to any skin file in SuiteCommerce?
Yes, you can add exposed variables to any skin file within your SuiteCommerce project by modifying the JSON files located in the Skins directory.
Do I need to follow a specific format when adding exposed variables to skin files?
Yes, when adding exposed variables to your skin JSON files, ensure you include a comma at the end of the previous entry and follow the JSON syntax guidelines to avoid errors.
Will changing the skin files impact existing site customizations?
Modifying skin JSON files to add exposed variables will enable new customization options through the Theme Customizer but should not affect existing site customizations unless those settings are directly overridden.
How does adding exposed variables to skin files enhance SuiteCommerce?
This allows site administrators to dynamically change visual elements like color schemes through the Theme Customizer, maintaining brand consistency and improving user experience.
Source: Add the Exposed Variable to Skin Files 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 →