How can I show a random cart count on a product page?

Topic summary

A user wants to display a fake cart count (random number between 1-10) beneath the product title on their product page to create scarcity, rather than tracking actual live carts. They provided an image example and are using the Shrine theme.

Proposed Solutions:

  • Custom code approach: One responder requested the theme name and suggested adding text to the product.liquid file, though details weren’t fully provided.

  • BSS Labels & Badges app: Recommended using the inventory text badge feature with custom selectors to position the badge anywhere on the page. The app allows customization by product, collection, or tags, and can display badges based on inventory quantity conditions. Screenshots demonstrate the setup interface and result.

  • Ezz Cart Count app: Suggested as an alternative that shows live cart counts with flexible styling options.

The discussion remains open with multiple third-party app solutions offered, but no direct code implementation for generating random numbers has been shared yet.

Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

Hello, is it possible to have a note under the title of the product on the product page that shows how many active carts there are? I don’t want it track the live carts, I want it to show a random number between 1-10 of the amount of carts to create scarcity. I have provided a photo to further illustrate. I want it on this product page if possible https://nacovia.com/products/press-nails

1 Like

Please share the theme name.

OR you can add this text in product.liquid file

Hello, the theme is Shrine.

Hi @Lexi0501 ,

A simpler solution to all your problems is to use our BSS Labels & Badges app. Our App has many functions such as displaying labels/badges/banners/popups, and flexibly customizing the position of labels/badges. In addition, you can upload photos and customize your images, along with many other interesting features

In your case, use the inventory text badge feature combined with a custom selector:

You can customize the badge’s position anywhere you want with the custom selector. In addition, with inventory badge text, the status of the badge will change directly compared to the quantity in your inventory, thereby displaying the correct badge you desire.

Cùng với đó, bạn có thể tùy chọn condition cho badge, bạn có thể hiển thị với tất cả product, theo collection, theo specific product hay cả specific tag

Result:

![view - 2024-02-06T091737.510.png|1533x845](upload://69a0uSLWfALcnsrvwdmJKW3aSyo.jpeg)

Hey, I would suggest this Ezz Cart Count App. This shows live cart count with flexible style customisations.