This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Dokan Seller registration form | |
* | |
* @since 2.4 | |
* | |
* @package dokan | |
*/ | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// remove the filter | |
remove_filter( 'woocommerce_process_registration_errors', 'dokan_seller_registration_errors' ); | |
remove_filter( 'registration_errors', 'dokan_seller_registration_errors' ); | |
// New registration form erros handling | |
function dokan_update_seller_registration_errors( $error ) { | |
$allowed_roles = apply_filters( 'dokan_register_user_role', array( 'customer', 'seller' ) ); | |
// is the role name allowed or user is trying to manipulate? | |
if ( isset( $_POST['role'] ) && !in_array( $_POST['role'], $allowed_roles ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function remove_wc_password_meter() { | |
wp_dequeue_script( 'wc-password-strength-meter' ); | |
} | |
add_action( 'wp_print_scripts', 'remove_wc_password_meter', 100 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($) { | |
$(".dokan-dashboard-content .dokan-table").addClass("table"); | |
$( ".dokan-dashboard-content .dokan-table" ).before( "<div class='table-responsive'></div>" ); | |
$( ".dokan-dashboard-content .table-responsive" ).append( $( ".dokan-table" ) ); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('#selectAllBoxes').click( function(event) { | |
if( this.checked ) { | |
$('.checkBoxes').each(function() { | |
this.checked = true; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Dokan Plugin | |
dokan-fr_FR.po | |
dokan-fr_FR.mo | |
2) Dokan Live Search | |
dokan_ls-fr_FR.mo | |
dokan_ls-fr_FR.po | |
3) Dokan Paypal Adaptive | |
dokan-wc-pap-fr_FR.po |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
// Preloading | |
var div_box = "<div id='load-screen'><div id='loading'></div></div>"; | |
$("body").prepend(div_box); | |
$('#load-screen').delay(700).fadeOut(600, function(){ | |
$(this).remove(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function dokan_new_shipping_processing_times() { | |
$times = array( | |
'' => __( 'Ready to ship in...', 'dokan' ), | |
'1' => __( '1 business day', 'dokan' ), | |
'2' => __( '1-2 business day', 'dokan' ), | |
'3' => __( '1-3 business day', 'dokan' ), | |
'4' => __( '3-5 business day', 'dokan' ), | |
'5' => __( '1-2 weeks', 'dokan' ), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function order_email_include_shop_name( $order ) { | |
$seller_id = dokan_get_seller_id_by_order( $order->id ); | |
if ( $seller_id !== 0 ) { | |
$store_info = dokan_get_store_info( $seller_id ); | |
?> | |
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add and update custom field through Action Hook in registration form. Paste this code in the functions.php . You should create action hook "wpuf_registration_form_hook" in the registration field. | |
* | |
* @param int $form_id | |
* @param null|int $user_id | |
* @param array $form_settings | |
*/ | |
function render_registration_form_hook( $form_id, $user_id, $form_settings ) { |
OlderNewer