About vendor store

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 4 reply threads
  • Author
    Posts
    • #103346
      jorsenmejia
      Participant

      how can I get the “about” content on vendor page and put it on the shop page of his/her product

      Attachments:
      You must be logged in to view attached files.
    • #103393
      jorsenmejia
      Participant

      I tried this code

      function additional_information_callback() {
      global $WCFM, $WCFMmp;
      $store_user = wcfmmp_get_store( $vendor_id );
      $store_info = $store_user->get_shop_info();

      $gravatar = $store_user->get_avatar();
      $email = $store_user->get_email();
      $phone = $store_user->get_phone();
      $address = $store_user->get_address_string();
      $about = $store_user->get_shop_description();
      echo $about;
      }

      When I try to echo the email,
      If customer user logged in and check the product he sees his own email

    • #103495

      Hi,

      I think you are not getting the correct vendor id. I hope you are trying to get these values in product details page….right?
      If yes then please use the below code to get the vendor id:
      $vendor_id = wcfm_get_vendor_id_by_post( get_the_ID() );
      It will return the correct vendor id and by passing this id you will get the correct values as well.

      Hope this helps.

      Thanks,

    • #104829
      trapti agrawal
      Participant

      Could you please suggest the complete code to add, for the same. thanks.

    • #105191

      Hi @trapti agrawal,

      What complete code do you want?
      You can use the above code just be sure to get the vendor id correct.

      Thanks,

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