1. When a vendor first registers, they are redirected to the Account page. They then have to clock “View My Vendor Dashboard” - is there a way of automatically being directed to the dashboard once registered?
2. Is there a way to rename the titles “Products” to “Resources”? In both the seller dashboard side bar, and the “Add Product” button within the Products page. I’d love this to say “add new resource”.
3. Within the Add product page, I would love to be able to add recommended dimensions to the Main Product Image. Is this possible?
4. On the product page, I would love to delete any options that are unneeded for my business, such as Download Limit and Download Expiry. How would I go about this?
5. On the product page, I need to be able to add custom taxonomies I have underneath the main product category. These are set up for woocommerce products, but I need them to be selectable from this add product screen.
Sorry about the long post, but your last response was so super helpful!
This is a method that can be used to modify any text anywhere in the plugin - it's very versatile so you could use it to modify any instance of product to 'resource'.
(3) While I don't think we can add that directly to the plugin, I would suggest you achieve it by making a modification to the add product page template.
It can be modified by copying the PHP template to your child theme. It is similar to how WooCommerce templates work if you are familiar with that.
(5) This is quite complex, I would advise to use the same I suggested at (3), to edit the PHP template of the page. By editing the template you can add some selectors for your custom taxonomies.
On number 1 there, you're correct it doesn't work just after registration, it only works straight after login. What should I be looking for in my setup to make it work on registration?
Also - when new users register, they currently get the "Customer" Wordpress User Role. I have made a Wordpress User Role "Seller" - which I would like them to be assigned with. I have tried using the (is_vendor) you used in your last post, but can't get it to work. What code would you use to automatically set their Wordpress User Role To "Seller" at registration?
To give vendors a different customer role, you can add this PHP code snippet to your site:
add_action('marketking_after_vendor_registration_saved', function($user_id){
$user = new WP_User($user_id);
$user->set_role('seller_role');
}, 10, 1);
(just replace 'seller_role' with the name/slug of your role)
Regarding the redirect, I made a test registration on your site and I see you use automatic approval for vendors. I believe you can make it automatically redirect to the vendor dashboard by following these steps:
1) Update MarketKing Core to the attached version. To do that, first deactivate the existing version of MarketKing Core, and then upload and activate the attached one.
One last question that may help others as well - my site has a wp upload limit of 10MB, however when a vendor tried to upload a file to their product the maximum upload size comes up as 1MB. I’ve scoured for where this setting is coming from but can’t find it!
Where can I change the maximum upload size for vendors, is it related to the vendor group?
P.S thanks so much for all the help, I know I’m being really annoying!
Now - I've just spent a while trying to figure this out but I just can't seem to get the right PHP Snippet so I need a little more help!
On the "Add Product" Page within the Vendor Dashboard I would like to :
1: Not show the Inventory Tab at all - my products are all downloadable so this is not needed.
2: Not show the Attributes Tab at all - again, digital products.
In fact - if you can just hide all of the General, Inventory & Attributes Tabs, just showing the Product Price, Sale Price And Downloadable Files Next To it - that would be perfect.
3: I would also like to get rid of the bar that says "Product Data" and then a drop down which shows simple product. All my Products Are Simple Products, so this whole bar is not needed.
4 : I also can't work out how to make the Feautured Product Image & Image Gallery a required field. I need people to have uploaded at least one image in each before being able to save.
Sorry about more & More questions - but I really appreciate the helpful responses!
If all your products are simple and downloadable I would advise to go to MarketKing -> Groups and click on each group and set allowed types to "simple"
also enable "all products are downloadable" at the bottom of the page:
After adding that, please let me know if there's anything else left.
Now 4) is more complicated, I don't really have a good way to force a selection there as that entire area is managed by scripts, with the gallery area being managed by WooCommerce's scripts.
I think the only way to do it would be to write your own custom script. It is quite complex though and it's also not something I could write quickly on my own either.
I would suggest to maybe add a message there letting sellers know images are required / expected, and perhaps require product approval, at least for new vendors.
1. When a vendor first registers, they are redirected to the Account page. They then have to clock “View My Vendor Dashboard” - is there a way of automatically being directed to the dashboard once registered?
2. Is there a way to rename the titles “Products” to “Resources”? In both the seller dashboard side bar, and the “Add Product” button within the Products page. I’d love this to say “add new resource”.
3. Within the Add product page, I would love to be able to add recommended dimensions to the Main Product Image. Is this possible?
4. On the product page, I would love to delete any options that are unneeded for my business, such as Download Limit and Download Expiry. How would I go about this?
5. On the product page, I need to be able to add custom taxonomies I have underneath the main product category. These are set up for woocommerce products, but I need them to be selectable from this add product screen.
Sorry about the long post, but your last response was so super helpful!
Pete
Hi Peter,
(1) To redirect vendors to the dashboard directly, you can add this PHP code snippet to your site:
It should work generally for the login, I am not sure if it can also work for the registration as it depends on a few factors in your setup,
(2) I think the best option would be to use our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-edit-any-plugin-text-string-same-language/
This is a method that can be used to modify any text anywhere in the plugin - it's very versatile so you could use it to modify any instance of product to 'resource'.
(3) While I don't think we can add that directly to the plugin, I would suggest you achieve it by making a modification to the add product page template.
It can be modified by copying the PHP template to your child theme. It is similar to how WooCommerce templates work if you are familiar with that.
We have a guide for it here: https://woocommerce-multivendor.com/docs/how-to-edit-marketking-pages-templates/
(the edit-product.php template is the one you need)
(4) To remove Download Limit and Download Expiry, you can add this PHP code snippet to your site:
(5) This is quite complex, I would advise to use the same I suggested at (3), to edit the PHP template of the page. By editing the template you can add some selectors for your custom taxonomies.
Kind regards,
Stefan
Hi Stefan,
Thanks so much for this reply! Really helpful!
Just a couple of points more :
On number 1 there, you're correct it doesn't work just after registration, it only works straight after login. What should I be looking for in my setup to make it work on registration?
Also - when new users register, they currently get the "Customer" Wordpress User Role. I have made a Wordpress User Role "Seller" - which I would like them to be assigned with. I have tried using the (is_vendor) you used in your last post, but can't get it to work. What code would you use to automatically set their Wordpress User Role To "Seller" at registration?
Pete
Hi Peter,
To give vendors a different customer role, you can add this PHP code snippet to your site:
(just replace 'seller_role' with the name/slug of your role)
Regarding the redirect, I made a test registration on your site and I see you use automatic approval for vendors. I believe you can make it automatically redirect to the vendor dashboard by following these steps:
1) Update MarketKing Core to the attached version. To do that, first deactivate the existing version of MarketKing Core, and then upload and activate the attached one.
2) Add this PHP code snippet to your site:
Kind regards,
Stefan
Attached files: marketking-core-1638.zip
this is perfect! Really helpful!
One last question that may help others as well - my site has a wp upload limit of 10MB, however when a vendor tried to upload a file to their product the maximum upload size comes up as 1MB. I’ve scoured for where this setting is coming from but can’t find it!
Where can I change the maximum upload size for vendors, is it related to the vendor group?
P.S thanks so much for all the help, I know I’m being really annoying!
Pete
Happy to help!
Indeed by default the plugin has a default dashboard upload limit of 1MB. You can change it by adding a code snippet to the site:
The above snippet will set it to 10MB instead. You can change that number to anything you want to modify the limit.
Amazing! That worked perfectly! Thanks so much!
Now - I've just spent a while trying to figure this out but I just can't seem to get the right PHP Snippet so I need a little more help!
On the "Add Product" Page within the Vendor Dashboard I would like to :
1: Not show the Inventory Tab at all - my products are all downloadable so this is not needed.
2: Not show the Attributes Tab at all - again, digital products.
In fact - if you can just hide all of the General, Inventory & Attributes Tabs, just showing the Product Price, Sale Price And Downloadable Files Next To it - that would be perfect.
3: I would also like to get rid of the bar that says "Product Data" and then a drop down which shows simple product. All my Products Are Simple Products, so this whole bar is not needed.
4 : I also can't work out how to make the Feautured Product Image & Image Gallery a required field. I need people to have uploaded at least one image in each before being able to save.
Sorry about more & More questions - but I really appreciate the helpful responses!
Pete
Hi Peter,
For 1,2,3) you can add this PHP code snippet to your site:
If all your products are simple and downloadable I would advise to go to MarketKing -> Groups and click on each group and set allowed types to "simple"
also enable "all products are downloadable" at the bottom of the page:
After adding that, please let me know if there's anything else left.
Now 4) is more complicated, I don't really have a good way to force a selection there as that entire area is managed by scripts, with the gallery area being managed by WooCommerce's scripts.
I think the only way to do it would be to write your own custom script. It is quite complex though and it's also not something I could write quickly on my own either.
I would suggest to maybe add a message there letting sellers know images are required / expected, and perhaps require product approval, at least for new vendors.