' . esc_html__( 'Invalid Subscription.', 'jg-toolbox' ) . ' ' . esc_html( 'My Account' ) . ''; if ( ! isset( $wp->query_vars[ JGTB_EDIT_SUB_ENDPOINT ] ) || ! current_user_can( 'view_order', absint( $wp->query_vars[ JGTB_EDIT_SUB_ENDPOINT ] ) ) ) { echo $error_message; return; } $subscription = wcs_get_subscription( absint( $wp->query_vars[ JGTB_EDIT_SUB_ENDPOINT ] ) ); if ( ! $subscription || ( is_callable( array( $subscription, 'get_type' ) ) && 'shop_subscription' !== $subscription->get_type() ) ) { echo $error_message; return; } } wc_print_notices(); ?>
_x( 'Last Payment Date', 'admin subscription table header', 'jg-toolbox' ), 'next_payment' => _x( 'Next Payment Date', 'admin subscription table header', 'jg-toolbox' ), 'end' => _x( 'End Date', 'table heading', 'jg-toolbox' ), 'trial_end' => _x( 'Trial End Date', 'admin subscription table header', 'jg-toolbox' ), ) as $date_type => $date_title ) { $date = $subscription->get_date( $date_type ); if ( ! empty( $date ) ) { ?> $subscription ), '', JGTB_PATH . 'templates/' ); } $allow_date_change = apply_filters( 'jgtb_allow_edit_date_for_subscription', 'yes', $subscription ); if ( Utilities\is_change_next_payment_available() && 'yes' === $allow_date_change ) { // Get change next date markup wc_get_template( 'myaccount/choose-next-ship-date.php', array( 'subscription' => $subscription, 'embed_form' => false, ), '', JGTB_PATH . 'templates/' ); } ?>
get_status() ) ); ?>
get_date_to_display( 'date_created' ) ); ?>
get_date_to_display( $date_type ) ); ?>

$subscription, 'allow_remove_item' => $allow_remove_item, 'allow_edit_qty' => $allow_edit_qty, 'allow_change_variation' => $allow_variation_change, ), '', JGTB_PATH . 'templates/' ); ?>

get_billing_email() ) { // translators: there is markup here, hence can't use Email: %s echo ''; } if ( $subscription->get_billing_phone() ) { // translators: there is markup here, hence can't use Email: %s echo ''; } // Additional customer details hook do_action( 'woocommerce_order_details_after_customer_details', $subscription ); ?>
' . esc_html_x( 'Email', 'heading in customer details on subscription detail page', 'jg-toolbox' ) . '' . esc_html( $subscription->get_billing_email() ) . '
' . esc_html_x( 'Tel', 'heading in customer details on subscription detail page', 'jg-toolbox' ) . '' . esc_html( $subscription->get_billing_phone() ) . '
needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?>
'billing', 'address' => $billing_address, ), '', JGTB_PATH . 'templates/' ); ?>
needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?>
'shipping', 'address' => $shipping_address, ), '', JGTB_PATH . 'templates/' ); ?>
get_id(), 'jgtb_edit_details_of_' . $subscription->get_id() ); ?>