diff --git a/federated.php b/federated.php index bc3ddee..090e832 100644 --- a/federated.php +++ b/federated.php @@ -15,4 +15,5 @@ include( plugin_dir_path( __FILE__ ) . 'woocommerce/thank_you_page_customization include( plugin_dir_path( __FILE__ ) . 'woocommerce/my_account_customizations.php'); include( plugin_dir_path( __FILE__ ) . 'rest-api/provisioner_rest_api_extensions.php'); include( plugin_dir_path( __FILE__ ) . 'woocommerce/new_subscription_set_to_needs_provision.php'); +include( plugin_dir_path( __FILE__ ) . 'woocommerce/processing_to_complete_order.php'); include( plugin_dir_path( __FILE__ ) . 'shared/federated_woocommerce_shared_functions.php'); \ No newline at end of file diff --git a/woocommerce/processing_to_complete_order.php b/woocommerce/processing_to_complete_order.php new file mode 100644 index 0000000..52de544 --- /dev/null +++ b/woocommerce/processing_to_complete_order.php @@ -0,0 +1,12 @@ +has_status('processing')){ + $order->update_status('completed'); + } +} \ No newline at end of file diff --git a/woocommerce/thank_you_page_customizations.php b/woocommerce/thank_you_page_customizations.php index 748ace9..9373cf3 100644 --- a/woocommerce/thank_you_page_customizations.php +++ b/woocommerce/thank_you_page_customizations.php @@ -3,8 +3,5 @@ add_action( 'woocommerce_before_thankyou', 'misha_shortcode_or_content' ); function misha_shortcode_or_content( $order_id ) { - echo '

You will receive an email within 15 minutes of this order with your login details. Please watch the welcome video below for your next steps.

'; - echo '
'; - echo ''; - echo '
'; + echo '

Please check your email to confirm account creation. Your core is now being provisioned.

'; } \ No newline at end of file