', + '', + '
', + '', + '
', + '' . wp_kses( $affected_subscription_events, array( 'a' => array( 'href' => array() ) ) ) . '
',
+ 'failed-scheduled-actions
',
+ '',
+ ''
+ );?>
+
+ - ', '' ); - ?> + ', '' ); + else : + // translators: placeholders are opening and closing link tags to take to the shop page + printf( esc_html__( 'You have no active subscriptions. Find your first subscription in the %sstore%s.', 'woocommerce-subscriptions' ), '', '' ); + endif; ?>
diff --git a/templates/myaccount/subscription-details.php b/templates/myaccount/subscription-details.php new file mode 100644 index 0000000..65504bf --- /dev/null +++ b/templates/myaccount/subscription-details.php @@ -0,0 +1,73 @@ + + ++ + | + | + |
---|---|---|
+ + + × + + | + ++ is_visible() ) { + echo esc_html( apply_filters( 'woocommerce_order_item_name', $item['name'], $item, false ) ); + } else { + echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', sprintf( '%s', get_permalink( $item['product_id'] ), $item['name'] ), $item, false ) ); + } + + echo wp_kses_post( apply_filters( 'woocommerce_order_item_quantity_html', ' ' . sprintf( '× %s', $item['qty'] ) . '', $item ) ); + + /** + * Allow other plugins to add additional product information here. + * + * @param int $item_id The subscription line item ID. + * @param WC_Order_Item|array $item The subscription line item. + * @param WC_Subscription $subscription The subscription. + * @param bool $plain_text Wether the item meta is being generated in a plain text context. + */ + do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $subscription, false ); + + wcs_display_item_meta( $item, $subscription ); + + wcs_display_item_downloads( $item, $subscription ); + + /** + * Allow other plugins to add additional product information here. + * + * @param int $item_id The subscription line item ID. + * @param WC_Order_Item|array $item The subscription line item. + * @param WC_Subscription $subscription The subscription. + * @param bool $plain_text Wether the item meta is being generated in a plain text context. + */ + do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $subscription, false ); + ?> + | ++ get_formatted_line_subtotal( $item ) ); ?> + | +
+ | ||
> | ++ |
- - | - | - |
---|---|---|
- - - × - - | - -- is_visible() ) { - echo esc_html( apply_filters( 'woocommerce_order_item_name', $item['name'], $item, false ) ); - } else { - echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', sprintf( '%s', get_permalink( $item['product_id'] ), $item['name'] ), $item, false ) ); - } - - echo wp_kses_post( apply_filters( 'woocommerce_order_item_quantity_html', ' ' . sprintf( '× %s', $item['qty'] ) . '', $item ) ); - - // Allow other plugins to add additional product information here - do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $subscription ); - - wcs_display_item_meta( $item, $subscription ); - - wcs_display_item_downloads( $item, $subscription ); - - // Allow other plugins to add additional product information here - do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $subscription ); - ?> - | -- get_formatted_line_subtotal( $item ) ); ?> - | -
- | ||
> | -- |
comment_date ) ) ); ?>
+