Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Is there a way to change the value of wcfmmp_become_vendor_link?
- November 1, 2019 at 12:27 am #89986
I noticed that when a customer (not a vendor) account is created, when they go to the page linked at [woocommerce_my_account], they get a text that says “Become a vendor” (class=”wcfmmp_become_vendor_link”), but it, instead of following what is linked by the shortcode [wcfm_vendor_registration], it goes directly to the Store Manager. Obviously, since they aren’t a vendor yet, that link redirects them again to [woocommerce_my_account].
I want to change this link that appears in [woocommerce_my_account]. I noticed that the only time the name “wcfmmp_become_vendor_link” appears in the code is in class-wcfmmp-frontend.php, but I don’t know how to make a filter to modify it. Do you know how could I fix this?
- November 4, 2019 at 1:23 am #90519
Finally I solved it! I write the solution just in case somebody has the same problem. It turned out that WCFM either calls get_wcfm_registration_page() or get_wcfm_membership_url() in order to generate the link, and those are created in the WCFM Memberships plugin. Long story short: I had to go to [MY-URL]/store-manager/memberships-settings/, and then change the first step to registration.
That fixed the whole problem.
The topic ‘Is there a way to change the value of wcfmmp_become_vendor_link?’ is closed to new replies.