Knowledge Base

Welcome to the SmarterCommerce documentation portal

What can we help you find?

SMARTERCOMMERCE

Search and Learn about Unified Commerce and Our SmarterCommerce Solutions
Digital Commerce Additional Manual

Theming Bootstrap


In order to generate [client-name]-theme.css you must follow the next steps:

1. Under “Premier.CMS/Mvc/assets/scss/PatternLibraryVariables” copy “_SmarterTek.scss” file and rename it with your new site name.

2. Under “Premier.CMS/Mvc/assets/scss/ThemeVariables” copy “_SmarterTek.scss” file and rename it with your new site name.

3. Under “Premier.CMS/Mvc/assets/scss/Theme” copy “_SmarterTek.scss” file and rename it with your new site name. You now have 3 files created.

4. In the Premier.CMS/Mvc/assets/scss/Themes/_ThemeName, remove all the content inside the file, then add this line:  F. This means the new template inherits from SmarterTek theme, and all the styles rules must be added in this new file. Under “Premier.CMS/Mvc/assets/scss” copy “_smarter-tek-theme.scss” file and rename it with your new site name.

5. Within this file, rename all “SmarterTek” appearances with your new theme name.

6. Now include four lines in the Grunt processor, which will generate the output css on the run of the designed task. Grunt file is in the following path: “Premier.CMS/Mvc/Grunt/Gruntfile.js”. Remember to follow the same folder structure as “~/ResourcePackages/Bootstrap4/assets/[YourFolderName]/css/”.

7. In the same file, find the chachebuster task and add the line to include new files in the cachebuster.json file, used to deliver last updated css to web site users.

8. Find the postcss task just right after the cachebuster task and add the lines to include the files so this way the task can minify the css.

9. Under the path “Premier.CMS/Mvc/Grunt/, open a command console and run “grunt deploy” to obtain minified css files or “grunt” to see the unminified version.

10. Once the “grunt” or “grunt deploy” task is run, automatically the file structure will be created in “Premier.CMS/Mvc/assets/css/[YourFolderName]/css/theme-name-theme.css".

11. Use the recently generated theme css and cachebuster.json files to update Sitefinity resources packages where correspond.

Bring It All Together

We bring together digital commerce, retail and call center channels with a united approach that leverages the power of onmi-channel while prioritizing JD Edwards connectivity.

CONNECT WITH AN EXPERT