[Accounting] [Webshop] - Implement webshop #1141
Labels
No labels
🔥
🦾 1
🦾 2
🦾 3
🦾 4
🦾 5
🦾 6
administration
Akkoma
Android
Bare metal
bug
Communication
Community
Cryptpad
🙌 Decission needed
Discussion
Documentation
duplicate
enhancement
etherpad
Feature request
Feedback
finances
Fixed
forgejo
fun_project
Goal 2024
Goal 2025
help wanted
high impact
housekeeping
Howto
infra
In progress
🤔️ Investigate
Invoice Ninja
ios
jitsi
lacre
Lacre Test
ldap
Lemmy
LibreTranslate
low impact
low prio
Lufi
macos
Mail
Merch
monitoring
movim
needs_refine
New Auth
Nextcloud
nice to have
on hold
proposal
PR ready
question
Ready
refined
Roundcube
searX
SPAM Issues
spam-protection
Staging Server
sysadmin
Themes
TOR
upstream issue
Website
windows
wontfix
xmpp
Yearly Report
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Blocks
Reference: Disroot/Disroot-Project#1141
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create procedures and automations to deploy and maintain the webshop:
@muppeth I've checked wordpress, I see that you've already managed to add
Configure Donation page
as listed on the first post of this ticket. Is there something that is not working as it should?Yeah currently I am working (finalizing) checkout page stuff. basically the idea is to hook it up to keycloak which I already did. But wordpress is junk and even though to login to wordpress you could be auto redirected to keycloak, woocommerce has its own login page (even though uses the same accounts so should just use the same page), and doesn't recognize keycloak. So I did some php snippet code to do the redirect. However, this should only redirect to login page as in require login only when user buys a subscription (for example storage) as it needs to be an existing user and also this will enable us to auto process storage requests without manual admin intervention. But, when buying merch or donating (one time donation), this should not be required as we want non-disroot folk to buy stuff or donate without connecting donation to an account.
And so I am currently working on filter to redirect to keycloak login when user buys subscription (or anything that requires to login with disroot account) and when not just provide required fields. So this is still pending work but I almost got it right, just needed to focus on other tasks and wanted to give myself few days away from that shitshow.
Ok. I think it works now. The current flow is:
If user selects merch or one time donation, there is no need to create account as user is treated as guest on checkout. Since its goods that require shipping shipping related fields are required.
If user selects subscription (eg. storage), he is redirected to login page that will point to keycloak requiring user to authenticate prior the checkout. In that way we serve subscription only to existing users. No address information is required apart from the needed by the payment processor (email, and name).
Will do some cleanup and move on with the work. I need to adjust the checklist on top.
One thing to still look into is possibility to remove a frebie. Currently freebie (stickers) is added when user donates over certain amount ( I think for testing I set it to 50euro). However this should be optional and user should be able to remove it.
I also wonder how to treat custom request. It's kinda a freebie for donation but I was wondering if we should create a separate product out of it. I would still have donation slider but would apply etc. (it would still be donation), but we could put custom fields in checkout (like domain name for example). Also we could decide to give domain linking for reoccurring donations and not single donation. @Disroot/Owners any opinions on this?
Once it is made possible to make t optional, I think stickers should be an opt-in and not an opt-out, so like a checkbox that appear after certain amount is donated, or optional fields for address in case someone wants stickers.
As for custom domain, we decided a while ago to move from recurring donations to any type of donation, since setting it up is a one time process and it doesn't take significant resources. So what would be the reason to change back?