1. Home
  2. Docs
  3. Add-Ons
  4. SamCart Integration

SamCart Integration

The LearnDash SamCart integration is one of several options for selling your courses. SamCart is a premium ecommerce solution that provides several payment options (one-time, subscriptions, trials), advanced analytics, cart abandonment recovery, A/B split testing and more.

SamCart is a premium service, but they do offer a free trial so you can test it out before making a decision. If you decide to stick with it, you can use this integration to sell courses on your LearnDash site.

You need to sign up for a SamCart account before you can use this integration.

If you’re looking for a free and/or easier way to accept payments, consider our built-in PayPal integration or the free Stripe add-on.

Who Should Use the SamCart Integration?

You should consider using the SamCart integration if:

✅ you want to use beautiful, pre-built checkout templates
✅ you have one, or only a few, courses to sell
✅ you’re looking for advanced analytics & other conversion-focused ecommerce features

You might not want to use the SamCart integration if:

❌ you’re selling a lot of courses (or other products)
❌ you want to closely manage the account creation & login process
❌ you’re on a tight budget

Sign Up for a SamCart Account

  • Navigate to samcart.com and follow the instructions for registering a new account
  • Once your account is set up, you can navigate to your SamCart dashboard to access your account settings, as well as the information you’ll need to set up the LearnDash integration

Install the SamCart Integration

Option 1: Add-ons Menu (requires an active LearnDash license)

  1. In your WordPress admin area, navigate to LEARNDASH LMS > ADD-ONS
  2. Locate the SamCart for LearnDash add-on
  3. Click Install Now
  4. Click the Activate Plugin button

LearnDash SamCart integration plugin

Option 2: Manual Upload

  1. Download the plugin file (must be logged in to download)
  2. In WordPress, navigate to PLUGINS > ADD NEW
  3. Click Upload Plugin
  4. Browse for the .zip file you downloaded in Step 1
  5. Click Install Now
  6. Click Activate Plugin

Create a Product in SamCart

Before you can connect a LearnDash course, you’ll need to create a product in SamCart that you can connect it to.

SamCart create a product

  1. Navigate to samcart.com and click the Log In button
  2. From your dashboard, click on Products
  3. Click the New Product button
  4. Fill in your product details
  5. Click Create Product

For more information on creating your first product, check out SamCart’s getting started guide.

Create a Product in WordPress

Now that you have a product in SamCart, you’ll need to create a matching product in WordPress, and link it to a LearnDash course.

SamCart, creating product in WordPress

  1. Navigate to LEARNDASH LMS > SAMCART
  2. Click Add New Samcart Product


Enter a title for your product. In most cases, this should match the title for your LearnDash course.


The slug is a unique identifier for this product. It should match your product title, but…

  • be all lowercase
  • spaces should be replaced with hyphens

If your product title is My Awesome Course, your slug should be:


SamCart Product ID

You can locate your Product ID from the SamCart dashboard.

  1. Click on a product to edit it
  2. Look in the URL bar at the top of your browser window
  3. The product ID is the number located after /products/

SamCart product ID in URL

Associated Courses

Select the LearnDash courses that you’d like to link to this product. As soon as someone buys the product via SamCart, they will be automatically added to the course.

Hold down CTRL (CMD on Mac) to select multiple courses.

Notification URL

The notification URL is automatically created for you, but you need to provide it to SamCart in order to complete the integration.

  1. Copy the URL from the Notification URL box
  2. Navigate to your SamCart dashboard
  3. Click on Products
  4. Click on the product that you’re linking
  5. Go to the Advanced Settings tab
  6. Scroll down to the Advanced area
  7. Paste your Notification URL into the box

SamCart notification URL setting

Course Configuration

After you’ve configured your SamCart for LearnDash settings, the final thing you need to do is set up your course to accept payments.

  1. In the WordPress admin area, navigate to LEARNDASH LMS > COURSES
  2. Click on the course you’d like to sell
  3. Click on Settings at the top
  4. Scroll down to Course Access Settings
  5. Set the “Access Mode” to Closed
  6. Enter your SamCart product URL in the Button URL field

LearnDash closed course, enter SamCart URL

To locate your SamCart product URL, click the eye icon in the top-right corner of your SamCart product details page:

SamCart, how to get product URL

The User Experience

Now, when someone navigates to your course page and clicks the “Take this Course” button, they’ll be directed to SamCart to complete their purchase.

After payment is complete, a new user account is automatically created, and that user is enrolled into the course they just purchased.

The SamCart integration will automatically remove users from a course if you refund their payment or their subscription is cancelled.


Which payment gateways does SamCart support?
As of May 2019, SamCart supports Stripe & PayPal. Please check SamCart’s docs on supported gateways for an up-to-date list.

Was this article helpful to you?

How can we help?