1. Thank you page emphasis to validate email

2. Processing Orders Autocompleted
This commit is contained in:
Ross Trottier 2024-05-08 12:08:42 -06:00
parent a56b2f4910
commit 638d5a97e9
3 changed files with 14 additions and 4 deletions

View File

@ -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__ ) . 'woocommerce/my_account_customizations.php');
include( plugin_dir_path( __FILE__ ) . 'rest-api/provisioner_rest_api_extensions.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/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'); include( plugin_dir_path( __FILE__ ) . 'shared/federated_woocommerce_shared_functions.php');

View File

@ -0,0 +1,12 @@
<?php
add_action('woocommerce_payment_complete', 'federated_set_new_order_to_complete');
function federated_set_new_order_to_complete($order_id)
{
$order = wc_get_order($order_id);
if($order->has_status('processing')){
$order->update_status('completed');
}
}

View File

@ -3,8 +3,5 @@
add_action( 'woocommerce_before_thankyou', 'misha_shortcode_or_content' ); add_action( 'woocommerce_before_thankyou', 'misha_shortcode_or_content' );
function misha_shortcode_or_content( $order_id ) { function misha_shortcode_or_content( $order_id ) {
echo '<h3>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.</h3>'; echo '<h3>Please check your email to confirm account creation. Your core is now being provisioned.</h3>';
echo '<br />';
echo '<iframe width="560" height="315" src="https://www.youtube.com/embed/XhAii76twMM?si=R_2v9CFNR33fhjh6" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>';
echo '<br />';
} }