Get Started
Install the Clerk SDK on your DynamicWeb store. This guide walks you through the installation process.
The Clerk SDK for DynamicWeb is a software development kit, which means you’ll need to make some changes in the code to match your webshop. The SDK provides the files needed to get started with synchronizing your catalog with Clerk.io.
Download the SDK #
Go to the Clerk DynamicWeb GitHub repository.
Under Code, download the zip file containing all the SDK files.
Unpack the zip file. You’ll see folders for Repositories, QueryPublisher, and your theme (e.g., Rapido or Swift).
Add repository files #
In DynamicWeb, go to Files > System > Repositories.
Click the three dots (⋯) and choose New subfolder.
Name the folder Clerk.
Copy all files from the Repositories folder in the SDK to the new Clerk folder in DynamicWeb:
- Products (Products.index & Products.query)
- Categories (Categories.index & Categories.query)
- Content (Content.index & Contents.query)
- Customers (Customers.index & Customers.query)
- Orders (Orders.index & Orders.query)
Add QueryPublisher files #
In DynamicWeb, go to Files > Templates > Designs > [THEME_NAME] > QueryPublisher.
Replace [THEME_NAME] with your theme name (e.g., Swift, Rapido, or another theme name).
Copy all files from the QueryPublisher folder in the SDK to the QueryPublisher folder in DynamicWeb:
- ClerkProducts.cshtml
- ClerkCategories.cshtml
- ClerkContents.cshtml
- ClerkCustomers.cshtml
- ClerkOrders.cshtml
Add theme files #
In DynamicWeb, go to Files > Templates > Designs > [THEME_NAME].
Copy the following files from the theme folder in the SDK (e.g., Rapido or Swift) to your theme folder:
- ClerkConfig.cshtml
- Json.cshtml
Configure private key #
In my.clerk.io, go to Settings > API Keys.
Copy your Private API Key.
In DynamicWeb, open the ClerkConfig.cshtml file you just copied.
Find the placeholder text "##### CLERK Private Key Here #####" and replace it with your Private API Key.
This allows authorization when requesting data from DynamicWeb. Clerk will always send this private key in API calls.
Save the file.
Sync data #
Syncing data connects your DynamicWeb store to Clerk, allowing Clerk to access your products, orders, customers, categories, and content. This enables Clerk to provide personalized recommendations and search results based on your actual store data. Follow the steps in the Sync Data guide to set up the data sync.