Project Context:
I’m currently developing a B2B project using Sparklayer B2B integration. In this setup, cart items are not visible in Shopify’s native cart system and can only be accessed through Sparklayer’s JavaScript SDK.
Objective:
In an Enterprise Shopify Theme, I want to display the quantity of items added to the cart next to each product image on collection pages when a product is added.
Current Status:
I have a script that successfully logs this data to the console, but I’m unable to make the quantities display visually next to the product card images. The part if the script highlighted in red is where I belive the issue is.
Request:
Can anyone assist in modifying the script to show the added item quantities next to the product images as intended?
