WPIntell

Source evidence

Adding Downloadable file not working with the plugin

NS Add Product Frontend for WooCommerce · support · 2021-03-05T16:58:00+00:00

mixedsentiment
highseverity
0.95relevance
4replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
rnolamee resolved
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. regards, The page I need help with: [ log in to see the link] Basically what I meant to ask is, how to change customer role so they can add a virtual product? 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. 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; } 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

Comments

4 shown
rnolamee 2021-03-05T17:09:00+00:00

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

rnolamee 2021-03-05T17:31:00+00:00

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.

rnolamee 2021-03-05T17:57:00+00:00

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; }

NsThemes 2021-03-10T09:07:00+00:00

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