💦 FULL SET: Changeset/ - Full Archive

Changeset 2215920


Ignore:
Timestamp:
12/20/2019 07:56:56 PM (6 years ago)
Author:
travisnorthcutt
Message:

Version 1.3.0

Location:
convertkit-for-woocommerce
Files:
15 added
3 edited

Legend:

Unmodified
Added
Removed
  • convertkit-for-woocommerce/trunk/components/integration/integration.php

    r2123418 r2215920  
    122122            if ( 'yes' === $this->send_purchases ){
    123123                add_action( 'woocommerce_payment_complete',        array( $this, 'send_payment' ), 99999, 1 );
     124                add_action( 'woocommerce_order_status_changed',    array( $this, 'handle_cod_or_check_order_completion' ), 99999, 4 );
    124125            }
    125126        }
     
    513514
    514515    /**
    515      * For each subscription (sequence, tag, form) attached to a product,
    516      * perform the relevant actions (subscribe & add order note)
    517      *
    518      * @param array $subscriptions
    519      * @param string $email
    520      * @param string $name
    521      * @param string $order_id
    522      */
    523     public function process_convertkit_subscriptions( $subscriptions, $email, $name, $order_id ) {
    524 
    525         foreach ( $subscriptions as $subscription_raw ) {
    526             list( $subscription['type'], $subscription['id'] ) = explode( ':', $subscription_raw );
    527 
    528             $subscription['function'] = "ckwc_convertkit_api_add_subscriber_to_{$subscription['type']}";
    529 
    530             $this->process_item_subscription( $subscription, $email, $name, $order_id );
    531         }