Scripts
Cart Engine
Core script that powers Cells Cart by storing cart data and syncing every cart-related component.
What it does
Cart Engine installs the cart runtime into your project's <head>.
It creates the shared cart system that Add To Cart Hitbox, Variant Selector, Color Selector, Quantity Selector, Cart Badge, Manual Orders, Auto Mail Orders, and Pro Mail Orders all rely on.
Before you start
You only need to install Cart Engine once per Framer project.
Before installing it, make sure:
You are inside the correct Framer project
You plan to use one or more
Cells CartcomponentsYou understand that the cart is stored in the browser using local storage, not in a backend
Steps to install Cart Engine
Step 0
Get a License Key. Click Here to get one.
Step 1
Open the Cells Cart plugin inside your Framer project and activate the key.
Step 2
Find the Cart Engine item in the plugin dashboard.
Step 3
Click Install Cart Engine.
Step 4
The plugin will insert the cart script into your project's <head> using Framer custom code.
Step 5
Publish or preview your project, then test one Cells Cart interaction such as Add To Cart Hitbox or Cart Badge.
Step 6
If you are using product options, connect the same Product ID across Add To Cart Hitbox, Variant Selector, Color Selector, and Quantity Selector.
How it works
Cart Engine creates a shared browser API called. That runtime handles the main cart actions:
|
|
|
|
|
|
|
|
The cart is stored in local storage, which means:
it stays available after page reloads in the same browser
it works without a cart backend
it is specific to the visitor's current browser
When the cart changes, Cart Engine dispatches the update event so other Cells Cart components can update automatically.
What data it stores
Each cart item can include:
|
|
|
|
|
|
|
|
Cart Engine also creates a stable internal item key from the Product ID and selected variant values. That allows different size or color combinations of the same product to stay as separate cart entries.
Common mistakes
Cart Engine is not installed before other components are used
If Cart Engine is missing, the rest of the Cells Cart components will not be able to read or update cart data correctly.
Cart Engine is installed more than once by accident
You only need one installation per project. Installing it once is enough for all product pages and cart flows in the same Framer project.
Product ID values do not match across connected components
If Add To Cart Hitbox, Variant Selector, Color Selector, or Quantity Selector use different Product ID values, the selected data will not be grouped correctly.
Expecting the cart to sync across different browsers or devices
Because Cart Engine uses local storage, the cart is local to that visitor's browser unless you build your own backend sync on top of it.
Testing only inside the editor without checking live behavior
Because Cart Engine runs as project head code, always test the cart flow in preview or on the published site.
Quick setup checklist
Open the plugin in the correct Framer project.
Click
Install Cart Engineonce.Add your
Cells Cartcomponents.Match
Product IDvalues across connected product components.Test add, quantity, badge, and checkout behavior in preview or live mode.
Join our Community Forum
Any other questions? Get in touch