Category : dokan

I am trying to require Dokan vendors to enter dimensions when adding or editing a product through their vendor dashboards. This is because we calculate shipping automatically on the backend and if they don’t provide said information, the sale won’t complete. What I have tried is: add_action( ‘admin_head’, ‘dcwd_require_weight_field’ ); function dcwd_require_weight_field() { $screen = ..

Read more

I need to restrict the character count that can be entered into the below. <div class="dokan-form-group"> <input type="hidden" name="dokan_product_id" id="dokan-edit-product-id" value="<?php echo esc_attr( $post_id ); ?>"/> <label for="post_title" class="form-label"><?php esc_html_e( ‘Product Name’, ‘dokan-lite’ ); ?></label> <?php dokan_post_input_box ( $post_id, ‘post_title’, array( ‘placeholder’ => __( ‘Product name..’, ‘dokan-lite’ ), ‘value’ => $post_title ) ); ?> <div ..

Read more

I’m using dokan plugin with martfury theme. In my website store setting page I have issue to save my store detail(Check screenshot 1). its showing its saving but its never save when I press the button several times it show like this. Its not even showing a error.so I have no idea what to do. ..

Read more

I am using Dokan to develop a multi-vendor store for a client, I have added two custom product fields in functions.php and need to restrict the character count for the text fields. ”’function new_product_field(){ ?> <div class="dokan-form-group"> <input type="text" class="dokan-form-control" name="new_field" placeholder="<?php esc_attr_e( ‘Product size’, ‘dokan-lite’ ); ?>"> </div> <input type="text" class="dokan-form-control" name="new_field_1" placeholder="<?php esc_attr_e( ..

Read more

I am using Dokan to develop a multi Vendor store for a client, I have added two custom product fields but on will not save values (the product info) Screen shot. ”’ add_action( ‘dokan_new_product_added’,’save_add_product_meta’, 10, 2 ); add_action( ‘dokan_product_updated’, ‘save_add_product_meta’, 10, 2 ); function save_add_product_meta($product_id, $postdata){ if ( ! dokan_is_user_seller( get_current_user_id() ) ) { return; ..

Read more