You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to create a new widget, "Leaderboard", inspired by challenge widget.
On creation, we choose X products, a begin date / hour, a end date / hour, a mode (totalProducts or MoneyAmount + currency).
We don't set a goal, as it's the ranking (the score of the highest is the comparative "goal" of the others).
When used on a CMS page through [Leaderboard=ID], we'll display this (desktop version) :
Mobile version (we remove short description) :
The 1st has its gauge filled to 100%.
The ratio for every other gauge is set by the 1st score as a goal (if the first has 10000 and the third has 3255, the 1st gauge will be filled up to 100%, the 3rd gauge will be filled up to 32.55%, because it has 32.55% of the 1st current score).
We display from highest to lowest.
In case of draw, we sort by product slug.
We can put on the burner an option to display & sort by :
by score desc (default)
by score asc
by id desc
by id asc
randomly
Like a challenge, when an order is paid, the Progress of the individual product is updated with the paid amount.
We can use the same checks as the challenges :
the "event" sub-object we use on the "challenge" collection can be adapted (no global "amount" entry, we create N sub-object with product-slug and individual amount)
the notification through email when an order is paid (but with individual progress per product on the order)
On admin - widget creation :
(note : I see on challenge that I can create a challenge with only the date, while, on edition, I can edit it with the hours & minutes, we should fix that)
On save :
On save with error management :
On admin - edition & reporting :
"Products" cannot be empty.
"Products" list cannot be changed after widget creation.
As long as "Edit progress" it not checked, "Current score" input is disabled.
Price currency is always disabled and cannot be changed after widget creation.
The text was updated successfully, but these errors were encountered:
Tirodem
changed the title
"Sales leaderboard" widget
Challenge sales "Leaderboard" widget
Nov 29, 2024
We want to create a new widget, "Leaderboard", inspired by challenge widget.
On creation, we choose X products, a begin date / hour, a end date / hour, a mode (totalProducts or MoneyAmount + currency).
We don't set a goal, as it's the ranking (the score of the highest is the comparative "goal" of the others).
When used on a CMS page through
[Leaderboard=ID]
, we'll display this (desktop version) :Mobile version (we remove short description) :
The 1st has its gauge filled to 100%.
The ratio for every other gauge is set by the 1st score as a goal (if the first has 10000 and the third has 3255, the 1st gauge will be filled up to 100%, the 3rd gauge will be filled up to 32.55%, because it has 32.55% of the 1st current score).
We display from highest to lowest.
In case of draw, we sort by product slug.
We can put on the burner an option to display & sort by :
Like a challenge, when an order is paid, the Progress of the individual product is updated with the paid amount.
We can use the same checks as the challenges :
On admin - widget creation :
(note : I see on challenge that I can create a challenge with only the date, while, on edition, I can edit it with the hours & minutes, we should fix that)
On save :
On save with error management :
On admin - edition & reporting :
"Products" cannot be empty.
"Products" list cannot be changed after widget creation.
As long as "Edit progress" it not checked, "Current score" input is disabled.
Price currency is always disabled and cannot be changed after widget creation.
The text was updated successfully, but these errors were encountered: