Shopify / Shopify/liquid

how to get stats

Open
#1,236 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
11.9k
Forks
1.5k
Avg merge
17h 55m
Merged PRs (30d)
3

Description

im new to liquid

i use this project https://github.com/crowdfundhq/site

in documentation is a drop -> "stats" - Statistics about your site and campaigns
how i use it to get all campaign.pledged etc.

i do it now with loops but i think there is a better solution

{% assign campaigns = current_site.campaigns.active | all %}
{% for campaign in campaigns %}
{% assign allpledg = campaign.pledged | plus: allpledg %}
{% endfor %}
{{ allpledg | to_currency: precision: 0 }}


maybe in shopify is a simular stats drop
or somebody can tell me how to use drops with an example

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is identified; start by determining whether Liquid provides a stats drop and how the external crowdfundhq/site campaign data is exposed. Done would require a documented, concrete example showing how to obtain the requested campaign statistics, or a clear explanation that the requested aggregation is not supported.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.