Skip to content

Commit 2b2182c

Browse files
authored
Merge pull request #7 from commonknowledge/feature/join-132-update-manchester-restriction-copy
JOIN-132 Update Manchester restriction copy
2 parents e0e7def + d72d59e commit 2b2182c

4 files changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7-
branches: [main]
87

98
jobs:
109
test:

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ services:
2929
mailpit:
3030
image: axllent/mailpit
3131
ports:
32-
- "8025:8025"
32+
- "8025:8026"
3333
- "1025:1025"
3434

3535
wpcli:
3636
image: wordpress:cli
37+
user: "33:33"
3738
depends_on:
3839
- db
3940
- wordpress

join-gmtu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
// Configuration
6262
$config = [
6363
// Error messages for out-of-area postcodes
64-
'outOfAreaLookupMessage' => "<p>Sorry, this postcode is outside of Greater Manchester, which the union covers. You won't be able to join the union.</p>",
65-
'outOfAreaSubmissionMessage' => '<h3>Sorry</h3><p>We\'re only able to support tenants living in the Greater Manchester area.</p><p>If you\'re based elsewhere in the UK, there are other local tenant unions that may be able to help, and for urgent housing issues you can also contact <a href="https://www.shelter.org.uk/Shelter">Shelter</a> or <a href="https://www.crisis.org.uk/">Crisis</a>.</p><p>We\'re sorry we can\'t assist directly, but we hope you can get the support you need quickly.</p>',
64+
'outOfAreaLookupMessage' => '<p>Membership is only available for people living within the Greater Manchester area. You can still support the union by becoming <a href="https://tenantsunion.org.uk/donate/">a regular donor or by making a one-off donation.</a></p>',
65+
'outOfAreaSubmissionMessage' => '<h3>Sorry</h3><p>Membership is only available for people living within the Greater Manchester area.</p><p>You can still support the union by becoming <a href="https://tenantsunion.org.uk/donate/">a regular donor or by making a one-off donation</a>.</p><p>If you\'re based elsewhere in the UK, there are other local tenant unions that may be able to help, and for urgent housing issues you can also contact <a href="https://www.shelter.org.uk/Shelter">Shelter</a> or <a href="https://www.crisis.org.uk/">Crisis</a>.</p>',
6666

6767
// Success notification settings
6868
'successNotificationEmails' => ['alex@commonknowledge.coop', 'membership@tenantsunion.org.uk'],

src/Member.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,6 @@ function get_member_details($data) {
9090

9191
log_info("Payment level calculated: $paymentLevel");
9292
} else {
93-
// Fallback: try to show planId or membership
94-
$fallbackPlan = $data['planId'] ?? $data['membership'] ?? null;
95-
if ($fallbackPlan) {
96-
$paymentLevel = 'Plan: ' . $fallbackPlan;
97-
}
9893
log_warning("No membershipPlan found in data, using fallback: $paymentLevel");
9994
}
10095

0 commit comments

Comments
 (0)