OrchardCMS / OrchardCMS/OrchardCore.Commerce

Role Assignment Upon Successful Purchase (OCC-58)

Open
#7 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
231
Forks
94
Avg merge
7d 7h
Merged PRs (30d)
1

Description

The goal would be to have a "Part" (i.e. RoleAssignmentPart) that you would add to a Product where the user would toggle which Role to assign to the purchaser at time of successful purchase.

At the time of successful purchase, this role would automatically be added to the user. As an alternative, it could be handled by a workflow but that would require the user to manually handle this themselves (or use a recipe go generate when feature is enabled).

As a related example of usage, I have used a similar concept to put the user into a role which gives them access to a page / download for 30 days. I have a secondary workflow (not related to this module) which removes the role automatically.

Jira issue

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 files, tests, or entry points are named. Start by locating the successful-purchase flow and existing role-assignment or workflow integrations; done means a product can configure a role that is automatically assigned to the purchaser after a successful purchase, with the behavior covered by the project's tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
authorization, payments
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.