Support » Plugin: NS Add Product Frontend for Woocommerce » Adding Downloadable file not working with the plugin

  • Resolved rnolamee


    I have the Add Product Front End Premium installed.

    After registration with woocommerce I want the user to be able to add is own virtual product. For this, he needs to upload a virtual file.
    However with the Product Front End page, a registered client won’t be able to use the “Choose File” button.
    The click action won’t do anything and does not throw any error in the console. It’s a problem due to access/role, since the same button will work as an admin.

    Any idea on how to make this action available to the client? This is the whole point of Add Product Front End…adding/selling products themselves.


    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rnolamee


    Basically what I meant to ask is, how to change customer role so they can add a virtual product?

    Thread Starter rnolamee


    After changing customer roles manually, here are the roles allowing to add media file through the woocommerce add front end product:

    – Shop Manager
    – Author
    – Editor
    – Administrator

    Here are the ones who do not:

    – Customer
    – Subscriber
    – Contributor

    Now for this to work I need to figure out how to change the user role at registration so it is not a simple customer.

    Thread Starter rnolamee


    For now, I added this to the function.php file in order to assign an editor role to a new customer:

    add_filter( ‘woocommerce_new_customer_data’, ‘themeStore_assign_custom_role’ );

    function themeStore_assign_custom_role( $args ) {
    $args[‘role’] = ‘editor’;
    return $args;

    Plugin Author NsThemes


    Hello @rnolamee,

    thank you for contact us, as you write above Shop Manager, Author, Editor,Administrator are able to upload product photo o gallery, but this is for WordPress security reason.

    Your filter seems to work well but we can’t add this into our plugin.

    Please let us know if you have any other question

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding Downloadable file not working with the plugin’ is closed to new replies.