Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Vendors › Thank-you page
Tagged: thank you page
- This topic has 7 replies, 2 voices, and was last updated 4 years, 6 months ago by Sarmistha Chakraborty.
- AuthorPosts
- May 3, 2020 at 9:18 pm #126176rech.alexisParticipant
Dear Admin,
after filling the vendor register, people are redirected to “/vendor-register/?vmstep=thankyou”, with 2 options “Go to your dashboardo” and “set up your market” ( => store-manager/settings/). I would like to replace the second option “set up your market by “add your first product” (=> “store-manager/products-manage/”).
Thank you for your help!!!
Alexis - May 4, 2020 at 1:02 pm #126351Sarmistha ChakrabortyMember
Hello,
add_filter('wcfm_thank_you_right_button_url','vendor_welcome_url_change'); function vendor_welcome_url_change($setup_url) { return site_url().'store-manager/products-manage/'; } add_filter('wcfm_thank_you_right_button_label','vendor_welcome_lbl_change'); function vendor_welcome_url_change($setup_lbl) { $setup_lbl = __( 'set up your market by add your first product', 'wc-multivendor-membership' ); return $setup_lbl; }
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Thanks.
- May 5, 2020 at 2:05 am #126730rech.alexisParticipant
Hello Sarmistha and thank you for you help!!
But when i add the code in the function.php, my site crashed with tis error:Fatal error: Cannot redeclare vendor_welcome_url_change() (previously declared in /home3/tienda/atolota.com/wp-content/themes/martfury/functions.php:266) in /home3/tienda/atolota.com/wp-content/themes/martfury/functions.php on line 273
In attachment you ll find a screen shot on my fucntion.php
Waiting for you hep!! Thank you very much!!
Attachments:
You must be logged in to view attached files.- May 5, 2020 at 1:57 pm #126889Sarmistha ChakrabortyMember
Hello,
This error indicates you have already added “vendor_welcome_url_change” code/function previously. Please check your custom codes, where you have added this function and remove this code.
Or just modify with below code –add_filter('wcfm_thank_you_right_button_url','vendor_welcome_url_change_0505'); function vendor_welcome_url_change_0505($setup_url) { return site_url().'store-manager/products-manage/'; } add_filter('wcfm_thank_you_right_button_label','vendor_welcome_lbl_change'); function vendor_welcome_url_change($setup_lbl) { $setup_lbl = __( 'set up your market by add your first product', 'wc-multivendor-membership' ); return $setup_lbl; }
Thanks.
- May 5, 2020 at 7:31 pm #127051rech.alexisParticipant
Hello Sarmistha, thank you very much!!
but now when i open the “/vendor-register/?vmstep=thankyou” page, I’ve got a layout error:“WARNING: CALL_USER_FUNC_ARRAY() EXPECTS PARAMETER 1 TO BE A VALID CALLBACK, FUNCTION ‘VENDOR_WELCOME_LBL_CHANGE’ NOT FOUND OR INVALID FUNCTION NAME IN /HOME3/TIENDA/ATOLOTA.COM/WP-INCLUDES/CLASS-WP-HOOK.PHP ON LINE 289”
I think it will be easier to ELIMINATE this button link definitively and let only “go to dashboard”. If I want to add something, I will do it directly with the text editor in settings.
How can i eliminate this button?
thank you very much!!
AlexisAttachments:
You must be logged in to view attached files. - May 5, 2020 at 7:36 pm #127053Sarmistha ChakrabortyMember
Hello,
Can you modify the below code once,
add_filter('wcfm_thank_you_right_button_url','vendor_welcome_url_change_0505'); function vendor_welcome_url_change_0505($setup_url) { return site_url().'store-manager/products-manage/'; } add_filter('wcfm_thank_you_right_button_label','vendor_welcome_lbl_change_0505'); function vendor_welcome_lbl_change_0505($setup_lbl) { $setup_lbl = __( 'set up your market by add your first product', 'wc-multivendor-membership' ); return $setup_lbl; }
Thanks.
- May 5, 2020 at 8:22 pm #127076rech.alexisParticipant
Thank you Sarmistha!!
Works perfectly!!Just you wrote:
return site_url().’store-manager/products-manage/’;
and it’s
return site_url().’/store-manager/products-manage/’;and sorry to bother you again.. but when i’m clicking on => ‘/store-manager/products-manage/’; to add a new product:
-If I’m administrator, everything is fine I can do it
-but if i’m a seller, i’m been redirected to “my-account/” an can’t add a new product as a seller..What did i do wrong ??
Thank you for your patience!!
Alexis- May 5, 2020 at 8:27 pm #127077Sarmistha ChakrabortyMember
Hello,
Just you wrote:
return site_url().’store-manager/products-manage/’;
and it’s
return site_url().’/store-manager/products-manage/’;>> It’s not so clear. You can write here your add product page url.
But if vendor/seller are unable to add product in your site, please check the Vendor capability in your site from WCFM dashboard.
Thanks.
- AuthorPosts
- You must be logged in to reply to this topic.