File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed
modules/registrars/synergywholesaledomains Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,15 @@ Synergy Wholesale WHMCS Domains Module
15
15
### Removed
16
16
-
17
17
18
-
19
18
## 2.2.5 [ Updated 11/08/2021]
20
19
21
20
### Fixed
22
21
- Fixed Typo with Newline not getting interpreted
23
22
- Fixed 'on sale' domain register pricing.
23
+ - Fixed domains sync with a Synergy status 'Pending Registration' getting set with wrong status within WHMCS
24
+
25
+ ### Changed
26
+ - Domains successfully registered will now automatically sync with Synergy
24
27
25
28
## 2.2.2 [ Updated 12/03/2021]
26
29
Original file line number Diff line number Diff line change 105
105
return $ vars ;
106
106
}
107
107
});
108
+
109
+ /*
110
+ * Sync the domain with what's on Synergy, This will fix issues with domains that get statuses like Pending Registration.
111
+ */
112
+ add_hook ('AfterRegistrarRegistration ' , 1 , function ($ vars ) {
113
+ // Only fire for the SWS registrar module
114
+ if ($ vars ['params ' ]['registrar ' ] == 'synergywholesaledomains ' ) {
115
+ synergywholesaledomains_Sync ($ vars ['params ' ]);
116
+ }
117
+ });
Original file line number Diff line number Diff line change @@ -938,6 +938,18 @@ function synergywholesaledomains_Sync(array $params)
938
938
'transferredAway ' => true ,
939
939
];
940
940
break ;
941
+ case 'register_manual ' :
942
+ $ returnData = [
943
+ 'active ' => false ,
944
+ 'cancelled ' => false ,
945
+ 'transferredAway ' => false ,
946
+ ];
947
+ Capsule::table ('tbldomains ' )
948
+ ->where ('id ' , $ params ['domainid ' ])
949
+ ->update ([
950
+ 'status ' => 'Pending Registration ' ,
951
+ ]);
952
+ break ;
941
953
default :
942
954
$ returnData = [
943
955
'active ' => true ,
You can’t perform that action at this time.
0 commit comments