Order Attributes
When a customer restores a shared cart and completes checkout, Share Cart automatically saves the share cart ID on the Shopify order as an order attribute. This lets you trace every order back to the shared cart that originated it.
How It Works
- A customer opens a shared cart link (e.g.
https://your-store.com/cart?ml-shared-cart-id=abc12) - The cart items are restored to their session
- Share Cart stamps the attribute
mmc_share_cart_id: abc12on the Shopify cart - When the customer completes checkout, Shopify automatically carries the cart attribute over to the resulting order
The attribute is visible on the order immediately — no extra setup required.
Viewing the Attribute on an Order
- Go to Shopify Admin > Orders
- Open any order placed via a shared cart link
- Scroll to the Additional details section on the right-hand side
- You will see
mmc_share_cart_idwith the corresponding Share Cart ID
Matching Orders to Shared Carts
Use the cart ID value from the order attribute to look up the original shared cart:
- Go to Apps > Share Cart > Carts
- Search by the cart ID shown in the order attribute
- View the full cart details, share activity, and customer info
This is useful for:
- Attribution reporting (which shared carts are converting)
- Customer support (reproduce exactly what a customer had in their cart)
- Affiliate or referral tracking
Notes
- The attribute is set at the moment the cart is restored, before the customer proceeds to checkout
- If the attribute update fails (e.g. a network error), the cart restoration still completes normally — the redirect is never blocked
- The attribute value is the Share Cart code (the short ID shown in your Carts history), not the full URL
- Attributes are visible to customers in the checkout "Additional details" section; if you need to hide them, contact support