wcfm-santa

A deal you can't resist! Get upto 35% Off on this entire cyber week.

CLAIM OFFER
01Day 20Hr 09Min 26Sec
wcfm-santa

Thank-you page

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 5 reply threads
  • Author
    Posts
    • #126176
      rech.alexis
      Participant

      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

    • #126351

      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.

    • #126730
      rech.alexis
      Participant

      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.
      • #126889

        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.

    • #127051
      rech.alexis
      Participant

      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!!
      Alexis

      Attachments:
      You must be logged in to view attached files.
    • #127053

      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.

    • #127076
      rech.alexis
      Participant

      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

      • #127077

        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.

Viewing 5 reply threads
  • You must be logged in to reply to this topic.