File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ public function has_notified_creation( int $coupon_id ): bool {
378
378
try {
379
379
$ coupon = $ this ->get_wc_coupon ( $ coupon_id );
380
380
} catch ( InvalidValue $ e ) {
381
- return true ; // Sent true for forcing delete notification as the product doesn't exist anymore.
381
+ return true ; // Sent true for forcing delete notification as the coupon doesn't exist anymore.
382
382
}
383
383
384
384
$ valid_has_notified_creation_statuses = [
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ protected function handle_update_coupon( WC_Coupon $coupon ) {
186
186
return ;
187
187
}
188
188
189
- // Schedule an update job if product sync is enabled.
189
+ // Schedule an update job if coupon sync is enabled.
190
190
if ( $ this ->coupon_helper ->is_sync_ready ( $ coupon ) ) {
191
191
$ this ->coupon_helper ->mark_as_pending ( $ coupon );
192
192
$ this ->update_coupon_job ->schedule (
@@ -300,7 +300,7 @@ protected function maybe_send_delete_notification( int $coupon_id ): void {
300
300
$ coupon = $ this ->wc ->maybe_get_coupon ( $ coupon_id );
301
301
302
302
if ( is_null ( $ coupon ) ) {
303
- // In case product is not anymore in DB we send the notification directly.
303
+ // In case coupon is not anymore in DB we send the notification directly.
304
304
$ this ->notifications_service ->notify ( NotificationsService::TOPIC_COUPON_DELETED , $ coupon_id );
305
305
return ;
306
306
}
You can’t perform that action at this time.
0 commit comments