Home Forums Community Support [Request] Customised Services Weight to 0.5Kg by default

This topic contains 3 replies, has 2 voices, and was last updated by  Nayem 3 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #67216

    Fox Mulder
    Member
    Post count: 57

    Hi!
    I need to set the weight to 0.5 kg by default.
    Can You help me?

    Thank you very much!

    #67290

    Nayem
    Moderator
    Post count: 6480

    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' ); ?>`

    #67335

    Fox Mulder
    Member
    Post count: 57

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

    #67349

    Nayem
    Moderator
    Post count: 6480

    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 4 posts - 1 through 4 (of 4 total)

The topic ‘Weight to 0.5Kg by default’ is closed to new replies.