Shopify themes, liquid, logos, and UX
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.
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
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.
Hello @PauuB,
<p>{{ product.metafields.download_count | default: 'No downloads yet.' }}</p>
Thanks!
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.
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!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024