Skip to content

Instantly share code, notes, and snippets.

@nayemDevs
Last active August 29, 2023 08:29
Show Gist options
  • Save nayemDevs/603696b63eb5196847c23a8c28a5d6e6 to your computer and use it in GitHub Desktop.
Save nayemDevs/603696b63eb5196847c23a8c28a5d6e6 to your computer and use it in GitHub Desktop.
Override seller setup-wizard via child-theme using Class
<?php
class Dokan_Setup_Wizard_Override extends Dokan_Seller_Setup_Wizard {
/**
* Introduction step.
*/
public function dokan_setup_introduction() {
$dashboard_url = dokan_get_navigation_url();
?>
<h1><?php esc_attr_e( 'Welcome to the NayemDevs Blog', 'dokan-lite' ); ?></h1>
<p><?php echo wp_kses( __( 'Thank you for choosing The Marketplace to power your online store! This quick setup wizard will help you configure the basic settings. <strong>It’s completely optional and shouldn’t take longer than two minutes.</strong>', 'dokan-lite' ), [ 'strong' => [] ] ); ?></p>
<p><?php esc_attr_e( 'No time right now? If you don’t want to go through the wizard, you can skip and return to the Store!', 'dokan-lite' ); ?></p>
<p class="wc-setup-actions step">
<a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button-primary button button-large button-next lets-go-btn dokan-btn-theme"><?php esc_attr_e( 'Let\'s Go!', 'dokan-lite' ); ?></a>
<a href="<?php echo esc_url( $dashboard_url ); ?>" class="button button-large not-right-now-btn dokan-btn-theme"><?php esc_attr_e( 'Not right now', 'dokan-lite' ); ?></a>
</p>
<?php
do_action( 'dokan_seller_wizard_introduction', $this );
}
}
new Dokan_Setup_Wizard_Override;
?>
@muasx88
Copy link

muasx88 commented Mar 9, 2021

how to override the Store Step? I want to add district & village in address

@rafacarvalhido
Copy link

How do you manually trigger the seller setup wizard? I want to put a button on the dashboard, in case the seller clicked 'not right now' or maybe the window got closed.

@EgglezosK
Copy link

How do you manually trigger the seller setup wizard? I want to put a button on the dashboard, in case the seller clicked 'not right now' or maybe the window got closed.

Visit this url:

https://YOUR-URL/my-account?page=dokan-seller-setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment