Requirements
- ✓Drupal 9.5 or Drupal 10
- ✓PHP 8.1 or later
- ✓Composer 2.x
- ✓A StreamCart account (free trial available)
Installation Guide
Connect StreamCart to Drupal
Install the StreamCart module via Composer
In your Drupal project root, run the Composer command to download and register the StreamCart module.
Enable the module
Go to Admin → Extend → find StreamCart in the module list and check the box. Click Install.
Configure the module
Go to Admin → Configuration → StreamCart. Enter your Project ID (from StreamCart dashboard → Settings → Project) and save configuration.
Script loaded via hook_page_attachments()
The module implements hook_page_attachments() to attach the StreamCart embed script as a JavaScript library on every page. No theme changes are needed.
Add products and create widgets
Add your products manually in the StreamCart dashboard under Products → Add Product, then create widgets and publish.
Quick Reference
Commands
Manual Installation
Edit html.html.twig directly
If you prefer not to use the module, add the embed script directly to your theme's html.html.twig template before the closing </head>.
Troubleshooting
Common issues and fixes
Module does not appear in the Extend list
Run composer require drupal/streamcart again to ensure it downloaded successfully. Then clear the Drupal cache with drush cache-rebuild or via Admin → Performance → Clear all caches.
Script loads in development but not in production
Ensure Drupal's aggregation settings are not stripping the script. Go to Admin → Performance and verify that JavaScript aggregation is not blocking external URLs.
Config form at Admin → Configuration → StreamCart is missing
Check that the module is fully enabled and that your user has the administer streamcart permission. Go to Admin → People → Permissions and grant it if missing.
Need help?
Our team can assist with Drupal module installation, cache configuration, and permissions setup.
Contact Support →