StreamCart
Integration Guide

Magento Integration

Install the StreamCart Magento 2 module via Composer for a production-ready integration with automatic product sync and no theme edits required.

Composer ModuleREST API syncMagento 2

Requirements

  • Magento 2.4.x or later
  • PHP 8.1 or later
  • Composer 2.x
  • A StreamCart account (free trial available)

Installation Guide

Connect StreamCart to Magento

1

Install via Composer

Run the Composer command in your Magento 2 root directory to download and register the StreamCart module.

composer require streamcart/magento2-module
2

Enable the module and upgrade

Run the following two commands to enable the module and apply the database schema upgrade.

bin/magento module:enable StreamCart_Embed && bin/magento setup:upgrade
3

Configure in Stores → Configuration

Go to Stores → Configuration → StreamCart in the Magento admin panel. Enter your Project ID (from StreamCart dashboard → Settings → Project) and save.

4

Script added via default_head_blocks.xml

The module adds the embed script to default_head_blocks.xml, which loads it on every storefront page without theme modifications.

5

Product sync via Magento REST API

StreamCart connects to your Magento REST API using an integration token with read-only catalog access. Products sync on activation and on a scheduled interval.

Quick Reference

All commands

1. Install via Composer
composer require streamcart/magento2-module
2. Enable module and upgrade
bin/magento module:enable StreamCart_Embed
bin/magento setup:upgrade
bin/magento cache:clean

Manual Installation

Edit the theme header template

If Composer is not available, you can add the script manually to your theme's header template at app/design/frontend/[Vendor]/[theme]/Magento_Theme/templates/html/header.phtml.

header.phtml
<!-- app/design/frontend/[Vendor]/[theme]/Magento_Theme/templates/html/header.phtml -->
<script
  src="https://cdn.streamcart.it/embed.js"
  data-project-id="YOUR_PROJECT_ID"
  async>
</script>

Troubleshooting

Common issues and fixes

Composer installation fails with a package not found error

Ensure your Magento Marketplace credentials are configured in ~/.composer/auth.json and that you have accepted the StreamCart module's terms on Magento Marketplace.

Module appears in the admin but script is not loading

Run bin/magento cache:clean and bin/magento static-content:deploy. Also verify that the StreamCart module is enabled via bin/magento module:status.

REST API integration returns 401

Go to System → Integrations in the Magento admin. Confirm the StreamCart integration is activated and has Catalog → Products read permissions.

Need help?

Our team can assist with Composer setup, module configuration, and REST API integration.

Contact Support →

Ready to turn your videos
into revenue?

Start converting more with video commerce

Start Your Free Trial

7-day free trial · No credit card · Cancel anytime