Skip to content

Commit

Permalink
Update Action.php
Browse files Browse the repository at this point in the history
make it compatible with the cartflow plugin
  • Loading branch information
davodsaraei authored Jul 5, 2022
1 parent ca31f77 commit ef90fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function createInlineScript()

public function trackOrders($order_id)
{
$order_id = apply_filters('woocommerce_thankyou_order_id', absint($GLOBALS['order-received']));
$order_id = apply_filters('woocommerce_thankyou_order_id', absint($order_id));
$order_key = apply_filters('woocommerce_thankyou_order_key', empty($_GET['key']) ? '' : wc_clean($_GET['key']));
$woocommerce = new AffiliWCTracker_Woocommerce;
$order = wc_get_order($order_id);
Expand Down Expand Up @@ -238,4 +238,4 @@ protected function addFlashNotice($notice = '', $type = 'success', $dismissible
// We update the option with our notices array
update_option($this->plugin_name.'_flash_notices', $notices );
}
}
}

0 comments on commit ef90fd7

Please sign in to comment.