What's your biggest current challenge? Have your say in Community Polls along the right column.

How to show statistics on product page?

How to show statistics on product page?

PauuB
Tourist
3 0 1

I'm working on creating a store where most of the books will be free, so people can download them directly from the product page without needing to go through checkout. I've created a download button that seems to work well.

 

The issue arises when I try to display download stats on the product page. Basically, I'm not sure how to do it. I'm pretty new to Shopify, and from what I’ve seen, there aren’t any apps that allow this.

 

Any help would be appreciated.

Replies 6 (6)

Moeed
Shopify Partner
6346 1721 2079

Hey @PauuB 

 

This type of work is possible but is pretty complex as well the same time and it will require some custom coding in your theme files at multiple places so if you're not familiar with coding then I would highly recommend you to hire a Shopify developer who can help you out with that in performing the task smoothly. Feel free to let me know if you want me to help you out and I would be more than happy to give you a helping hand.

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


PauuB
Tourist
3 0 1

Hi,

 

Yeah, I figured I might have to do some custom coding. I'm not an expert, but I've done a few things before, so I think I can handle it in this case.

 

I searched the forum before asking, but it doesn't seem to be a common issue, and I couldn't find any threads explaining how to do it.

 

It would be great if you could help us out.

steve_michael2
Trailblazer
328 31 39

Hello @PauuB,

<p>{{ product.metafields.download_count | default: 'No downloads yet.' }}</p>

Thanks!

Crafting exceptional online experiences with innovative design and technology.

Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount
PauuB
Tourist
3 0 1

Hi @steve_michael2,

 

Thanks for your help and advice. My question is... does this metafield display a graphic or something similar, or does it just show the count?

 

Anyway, thanks again! I'll give it a try to see if it works.

steve_michael2
Trailblazer
328 31 39

Hello @PauuB ,
The metafield itself only stores data, such as a count (e.g., number of downloads). It does not display a graphic or visual element by default. You can use Liquid to format and display it however you like, such as showing a count or even adding a graphic next to it (like a download icon). The metafield is just a data point that you can customize the display for in your theme's code.

Thanks!

 

Crafting exceptional online experiences with innovative design and technology.

Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount

theycallmemakka
Shopify Partner
1746 425 443

Hi @PauuB ,

 

Can you provide link to your store?

 

Thank you

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com