diff --git a/includes/mutation/class-cart-apply-coupon.php b/includes/mutation/class-cart-apply-coupon.php index 2e1b5f6a..b136d41d 100644 --- a/includes/mutation/class-cart-apply-coupon.php +++ b/includes/mutation/class-cart-apply-coupon.php @@ -77,7 +77,7 @@ public static function mutate_and_get_payload() { // If validate and successful applied to cart, return payload. if ( Cart_Mutation::validate_coupon( $input['code'], $reason ) && \WC()->cart->apply_coupon( $input['code'] ) ) { do_action( 'woographql_update_session', true ); - + return [ 'code' => $input['code'] ]; } diff --git a/includes/mutation/class-cart-update-item-quantities.php b/includes/mutation/class-cart-update-item-quantities.php index f9d85960..a8521998 100644 --- a/includes/mutation/class-cart-update-item-quantities.php +++ b/includes/mutation/class-cart-update-item-quantities.php @@ -165,7 +165,6 @@ static function ( $value ) { $info ); - do_action( 'woographql_update_session', true ); return [ diff --git a/includes/utils/class-ql-session-handler.php b/includes/utils/class-ql-session-handler.php index ea4f884e..a8d0525d 100644 --- a/includes/utils/class-ql-session-handler.php +++ b/includes/utils/class-ql-session-handler.php @@ -130,7 +130,7 @@ public function init() { /** * Mark the session as dirty. - * + * * To trigger a save of the session data. * * @return void @@ -417,12 +417,12 @@ function ( $headers ) { /** * {@inheritDoc} - * + * * @return void */ public function set_customer_session_cookie( $set ) { parent::set_customer_session_cookie( $set ); - + if ( $set ) { $this->_issuing_new_cookie = true; }