Skip to content

Commit

Permalink
fix: setup wizard undefined issue in payment method
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbir1991 committed Jan 3, 2020
1 parent d9257cf commit 9be224b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion assets/src/js/store-lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,4 +293,4 @@
window.dokan.storeLists.init();
}

})(jQuery);
})(jQuery);
2 changes: 1 addition & 1 deletion assets/src/less/alerts.less
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@
}
.dokan-alert-danger {
.dokan-alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
}
}
24 changes: 11 additions & 13 deletions includes/Vendor/SetupWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,21 +367,19 @@ public function dokan_setup_payment() {
<?php
foreach ( $methods as $method_key ) {
$method = dokan_withdraw_get_method( $method_key );
?>
<tr>
<th scope="row"><label><?php echo esc_html( $method['title'] ); ?></label></th>
<td>
<?php
if ( isset( $method['callback'] ) && is_callable( $method['callback'] ) ) {
call_user_func( $method['callback'], $store_info );
}
?>
</td>
</tr>
<?php
if ( isset( $method['callback'] ) && is_callable( $method['callback'] ) ) {
?>
<tr>
<th scope="row"><label><?php echo esc_html( $method['title'] ); ?></label></th>
<td>
<?php call_user_func( $method['callback'], $store_info ); ?>
</td>
</tr>
<?php
}
}

do_action( 'dokan_seller_wizard_payment_setup_field', $this );
do_action( 'dokan_seller_wizard_payment_setup_field', $this );
?>
</table>
<p class="wc-setup-actions step">
Expand Down

0 comments on commit 9be224b

Please sign in to comment.