This repository contains the full source files for the Mozu Core 9.6.0 theme, with the required changes to enable Pay with Affirm on your Mozu storefront. These theme changes support the Pay with Affirm Application by Mozu. Go to the Mozu App Marketplace to learn more about the app and to request installation on your tenant.
Tip: Refer to the Mozu Core Theme readme for information about general updates included in Mozu Core9. The branches of the core-theme repo also include readmes for older versions of the Core Theme.
##Build this Theme
You can use the Mozu Theme Generator to update an existing theme to include changes in this repo. You can also run the generator in an empty directory to clone these files as the basis for a brand new theme.
When you run the Mozu Theme Generator, the tools create a git remote to the Mozu Core 9.6.0 repository. In the future, if you run the generator from your local theme directory, the tool will automatically check the Mozu Core theme for updates and offer to merge them for you.
###Create a Theme in Mozu Dev Center
- In the Dev Center Console, click Develop > Themes.
- Click Create Theme.
- Note the Application Key.
###Install the Generator
- Open a Terminal (OS X) or a Command Prompt (Windows).
- Install the Yeoman command-line tool globally:
npm install -g yo
- Install the Grunt command-line tool globally:
npm install -g grunt-cli
- Install the Mozu Theme Generator globally:
npm install -g generator-mozu-theme
###Run the Generator
- Run the Yeoman generator in a directory that contains your theme files. If you are creating a brand new theme, you can run the tool in an empty directory:
yo mozu-theme
- Note: If you are installing the theme to a non-production Mozu environment, use:
yo mozu-theme --internal
The tool will prompt you to select your environment.
- Select Existing theme from repository.
- Enter the URL for this repository:
https://github.com/Affirm/KiboNG_theme_Affirm.git
and hit Enter. - Follow the prompts to enter your Dev Center Application Key and login information. The generator runs and creates or merges all the Kibo-Affirm-Payments-Theme files in your theme directory.
- Run
grunt
in your theme directory to upload the theme files to Mozu Dev Center. - View the theme in Dev Center to see your uploaded files and Install the theme to a sandbox. Apply the theme to see the Affirm Promotional Messages into Product and Cart and also the Pay with Affirm option into your Checkout pages.
- Note: You must configure Pay with Affirm in your Payment settings in Mozu Admin to use the Affirm Payments Application.
##Additional Resources
- Pay with Affirm Application by Mozu Configuration Guide*
- Mozu Theme Development Quickstart
- Mozu Theme Generator 2.0 (npm Package)
Note: You must log in with your Mozu Developer Account credentials to access content at https://www.mozu.com/docs/guides