Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nictfk

    (@nictfk)

    The first option of modifying wp-config didn’t work, I’ll look into it though, probably an error on my end.
    I tried the plugin you suggested too before, the thing is, some of the file types my vendors want to upload are not listed there, and simply adding in the code for those also didn’t work (once again I do it incorrectly probably)
    But anyways, thanks for the help, if there isn’t anything else you can suggest me in this case, I’ll mark this topic as resolved.

    Thread Starter nictfk

    (@nictfk)

    Thank you very much, it worked. As a last request, is there any way to add the downloadable options tab on the first page of creating the product? Because at this moment, people can *create* new products without them being downloadable, but they can’t edit the products without adding a downloadable link.

    Or instead of that, is there maybe a way to make the products save as draft (not pending review or published, draft only) when pressing the “Create Product” Button? That way the product can only be published when the files are added.

    This is the page I’m referring to- https://gyazo.com/ac1dbc62d40b8d53452eb12115fc0495

    Thread Starter nictfk

    (@nictfk)

    Thank you, could you possibly tell me what should I edit there specifically? I don’t really know how to code. I’ve tried looking for help with that in other sources but to no avail, on top of that I don’t want to hire someone just for that little change, so this post is my only option to get the thing working.

    This is how the code looks like right now.

    
    <tr>
        <td>
            <input type="text" class="dokan-form-control input_text" placeholder="<?php esc_attr_e( 'File Name', 'dokan-lite' ); ?>" name="_wc_file_names[]" value="<?php echo esc_attr( $file['name'] ); ?>" />
        </td>
        <td>
            <p>
                <input type="text" class="dokan-form-control dokan-w8 input_text wc_file_url" placeholder="https://" name="_wc_file_urls[]" value="<?php echo esc_attr( $file['file'] ); ?>" style="margin-right: 8px;" />
                <a href="#" class="dokan-btn dokan-btn-sm dokan-btn-default upload_file_button" data-choose="<?php esc_attr_e( 'Choose file', 'dokan-lite' ); ?>" data-update="<?php esc_attr_e( 'Insert file URL', 'dokan-lite' ); ?>"><?php echo esc_html( str_replace( ' ', '&nbsp;', __( 'Choose file', 'dokan-lite' ) ) ); ?></a>
            </p>
        </td>
    
        <td>
            <p>
                <a href="#" class="dokan-btn dokan-btn-sm dokan-btn-danger dokan-product-delete"><span><?php esc_html_e( 'Delete', 'dokan-lite' ); ?></span></a>
            </p>
        </td>
    </tr>
    
Viewing 3 replies - 1 through 3 (of 3 total)