Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/woocomme.../includes/admin/views
File: html-admin-dashboard-setup.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Admin View: Dashboard - Finish Setup
[2] Fix | Delete
*
[3] Fix | Delete
* @package WooCommerce\Admin
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[7] Fix | Delete
exit;
[8] Fix | Delete
}
[9] Fix | Delete
?>
[10] Fix | Delete
<div class="dashboard-widget-finish-setup" data-current-step="<?php echo esc_html( $step_number - 1 ); ?>" data-total-steps="<?php echo esc_html( $tasks_count ); ?>">
[11] Fix | Delete
<span class='progress-wrapper'>
[12] Fix | Delete
<svg class="circle-progress" width="17" height="17" version="1.1" xmlns="http://www.w3.org/2000/svg">
[13] Fix | Delete
<circle r="6.5" cx="10" cy="10" fill="transparent" stroke-dasharray="40.859" stroke-dashoffset="0"></circle>
[14] Fix | Delete
<circle class="bar" r="6.5" cx="190" cy="10" fill="transparent" stroke-dasharray="40.859" stroke-dashoffset="<?php echo esc_attr( $circle_dashoffset ); ?>" transform='rotate(-90 100 100)'></circle>
[15] Fix | Delete
</svg>
[16] Fix | Delete
<span><?php esc_html_e( 'Step', 'woocommerce' ); ?> <?php echo esc_html( $step_number ); ?> <?php esc_html_e( 'of', 'woocommerce' ); ?> <?php echo esc_html( $tasks_count ); ?></span>
[17] Fix | Delete
</span>
[18] Fix | Delete
[19] Fix | Delete
<div class="description">
[20] Fix | Delete
<div>
[21] Fix | Delete
<?php esc_html_e( 'You\'re almost there! Once you complete store setup you can start receiving orders.', 'woocommerce' ); ?>
[22] Fix | Delete
<div><a href='<?php echo esc_attr( $button_link ); ?>' class='button button-primary'><?php esc_html_e( 'Start selling', 'woocommerce' ); ?></a></div>
[23] Fix | Delete
</div>
[24] Fix | Delete
<img src="<?php echo esc_url( WC()->plugin_url() ); ?>/assets/images/dashboard-widget-setup.png" />
[25] Fix | Delete
</div>
[26] Fix | Delete
<div class="clear"></div>
[27] Fix | Delete
</div>
[28] Fix | Delete
[29] Fix | Delete
<script type="text/javascript">
[30] Fix | Delete
/*global jQuery */
[31] Fix | Delete
(function( $ ) {
[32] Fix | Delete
const widget = $( '.dashboard-widget-finish-setup' );
[33] Fix | Delete
const currentStep = widget.data( 'current-step' );
[34] Fix | Delete
const totalSteps = widget.data( 'total-steps' );
[35] Fix | Delete
[36] Fix | Delete
$( function() {
[37] Fix | Delete
window.wcTracks.recordEvent( 'wcadmin_setup_widget_view', {
[38] Fix | Delete
completed_tasks: currentStep,
[39] Fix | Delete
total_tasks: totalSteps,
[40] Fix | Delete
} );
[41] Fix | Delete
});
[42] Fix | Delete
[43] Fix | Delete
[44] Fix | Delete
$( '.dashboard-widget-finish-setup a' ).on( 'click', function() {
[45] Fix | Delete
window.wcTracks.recordEvent( 'wcadmin_setup_widget_click', {
[46] Fix | Delete
completed_tasks: currentStep,
[47] Fix | Delete
total_tasks: totalSteps,
[48] Fix | Delete
} );
[49] Fix | Delete
});
[50] Fix | Delete
})( jQuery );
[51] Fix | Delete
</script>
[52] Fix | Delete
[53] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function