Embedding Karmasoft Elements to Your Website
You will need to know your subdomain. This is the name you chose when you signup for the platform. You can locate your subdomain on the address bar of your browser or check the email we sent you when you signed up.
Step 1
Copy and paste the relevant code snippets below into your HTML page.
To Embed Your Schedule
To Embed Your video library
To Embed Your Workshops
To Embed Instructors
To Embed Your Store
To Embed a Lead Capture Form
To Embed Daily Offers
Step 2
Make studio-specific changes to the above code.
- Change every occurrence of the word demo to your subdomain.
- Set your data-options parameters. [See Parameter options below]
Data-Options Parameters
today_only=true For this to work you must specify a by_branch flag.
Example:
data-options='by_branch=7&today_only=true'
clean=true This will load a cleaner, simpler embedded element (recommended).
hide_instructor_full_name=true Will hide the instructor's full name and only display the first name
hide_instructor_name=true Will hide the name of the instructor. No name will be listed on the public embedded schedule
hide_branch=true Will remove drop down that allows user to filter the schedule by branch/Location
hide_instructor=true Will remove the drop-down that allows user to filter the schedule by instructor
hide_lesson=true Will remove the drop-down that allows user to filter the schedule by lesson/class
hide_type=true Will remove the drop-down that allows the user to filter the schedule by class type
only_classes=true Will only display classes, workshops will be removed
only_online=true Will only display only your livestream classes.
only_online=false Will only display only your in-studio classes.
only_workshops=true Will only display workshops, classes will be removed
by_lesson_category = lesson_category_id Where lesson_category_id = the numeric value representing the lesson category as_list=true Will display the schedule as a list.*
by_workshop=workshop_id
for multiple branches you will need also to include the by_branch parameter
Example:
by_workshop=workshop_id&by_branch=xxxxxx
Store-Specific Options
Embed by Product Category
by_category = product_category_id you can select multiple categories, separating each with a comma
Example: by_category=1,3,5
JSON
Use JSON endpoints for more control.
JSON data structures
- Instructors: https://demo.karmasoft.io/users/profiles.json
- Schedule: https://demo.karmasoft.io/schedule.json
- Workshop: https://demo.karmasoft.io/member/workshops.json
- Store: https://demo.karmasoft.io/member/store.json
Example Site and Code
HTML Implementation Examples
http://karmasoft2-embed.s3-website-us-east-1.amazonaws.com
JSON Implementation Examples
http://karmasoft2-embed.s3-website-us-east-1.amazonaws.com/json.html