Skip to content

Commit

Permalink
Merge pull request #120 from retainful/master-release-webhook
Browse files Browse the repository at this point in the history
- webhook only syn
  • Loading branch information
rameshelamathi authored Dec 11, 2023
2 parents 7ca177a + b90402f commit 804af9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Api/AbandonedCart/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ function syncOrderByScheduler($order_id)
*/
function scheduleCartSync($order_id)
{
if(!apply_filters('rnoc_schedule_cart_sync',true)){
return;
}
$hook = 'retainful_sync_abandoned_cart_order';
$meta_key = '_rnoc_order_id';
if (self::$settings->hasAnyActiveScheduleExists($hook, $order_id, $meta_key) == false) {
Expand Down

0 comments on commit 804af9f

Please sign in to comment.