This topic contains 3 reply and 2 voices, and was last updated by Nayem 4 years, 3 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
August 16, 2015 at 4:03 am 67216
Nayem Hi! I need to set the weight to 0.5 kg by default. Can You help me? Thank you very much!
August 16, 2015 at 3:57 pm 67290
Nayem Nayem

Hello,

Please open Dokan/inludes/pro/temlates/products/product-shipping-content.php file.

In this file you will get this code in line number 350- <?php dokan_post_input_box( $post_id, ‘_weight’, array( ‘class’ => ‘form-control’, ‘placeholder’ => __( ‘weight (‘ . esc_html( get_option( ‘woocommerce_weight_unit’ ) ) . ‘)’, ‘dokan’ ) ), ‘number’ ); ?>`

Just change the place holder text as like- 'placeholder' => __( '0.05 (' . esc_html( get_option( 'woocommerce_weight_unit' ) ) . ')', 'dokan' ) ), 'number' ); ?>`

August 16, 2015 at 6:52 pm 67335
Fox Mulder Fox Mulder

Thanks but I need a real value and not a placeholder.

August 16, 2015 at 7:28 pm 67349
Nayem Nayem

You have to customize the code. I have provided the file name and the place so if you want you can change whatever you want. We do not provide support for customization.

Thanks.

Viewing 3 Posts - 1 through 3 (of 3 total)