Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment challenge score when a product is ordered & paid #110

Closed
Tirodem opened this issue May 31, 2023 · 2 comments
Closed

Increment challenge score when a product is ordered & paid #110

Tirodem opened this issue May 31, 2023 · 2 comments
Labels
Donator:NPR enhancement New feature or request

Comments

@Tirodem
Copy link
Contributor

Tirodem commented May 31, 2023

Following #108

When a order is done & paid, for each product in the cart, check if the product is whitelisted in a live Challenge (non-draft, beging date < current date < end date) :

  • If challenge mode = money amount, add product amount (in SATs) to challenge current score
  • If challenge mode = order quantity, add product ordered quantity to challenge current score

Note : when no product is whitelisted on a challenge, do that for every product.

@coyotte508
Copy link
Collaborator

@Tirodem
Copy link
Contributor Author

Tirodem commented Jun 16, 2023

Tested ok ✔️

@Tirodem Tirodem closed this as completed Jun 16, 2023
@Tirodem Tirodem changed the title Increment challenge score when a whitelisted product is ordered & paid Increment challenge score when a product is ordered & paid Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Donator:NPR enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants