For tracking we only need to check Woo setting for PUI

This commit is contained in:
Narek Zakarian 2022-08-19 16:24:27 +04:00
parent 78d3e06937
commit 62d96cba8a
2 changed files with 18 additions and 15 deletions

View file

@ -51,7 +51,7 @@ class OrderTrackingModule implements ModuleInterface {
$pui_helper = $c->get( 'wcgateway.pay-upon-invoice-helper' );
assert( $pui_helper instanceof PayUponInvoiceHelper );
if ( $pui_helper->is_pui_ready_in_admin() ) {
if ( $pui_helper->is_pui_enabled() ) {
$settings->set( 'tracking_enabled', true );
$settings->persist();
}