where can I get these data from

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 7 reply threads
  • Author
    Posts
    • #54516
      MarsMars
      Participant

      Hello,
      I want to create the following APIs, but not sure where can I get the data from.. or if you guide me to the functions that generate them
      1. Get Single Store Info
      2. Get Single Store Products
      3. Get Single Store Reviews
      4. Get All Stores list

      Regards

    • #54552
      MarsMars
      Participant

      Hi
      I managed to get 1,3,4 and I think 2 will be done easily
      the issue is how can get the total average rating for a single store
      also How can I get the detailed ratings in a single store review

    • #54584
      MarsMars
      Participant

      also, I tried to get products list by the vendor
      so when I was debugging,, I was wondering if this is correct it always return an error?
      in this file: class-wcfmapi-rest-controller.php

        /**
           * Get object.
           *
           * @param  int $id Object ID.
           * @return object WC_Data object or WP_Error object.
           */
          protected function get_object( $id ) {
              return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass.", 'wcfm-marketplace-rest-api' ), __METHOD__ ), array( 'status' => 405 ) );
          }
      
    • #54608
      WCFM Forum
      Member

      Hi,

      Please use this to get vendor’s products –

      global $WCFM;
      $vendor_product_list = $WCFM->wcfm_vendor_support->wcfm_get_products_by_vendor( $vendor_id, 'publish', array( 'suppress_filters' => true ) );

      Thank You

    • #54621
      Marsmars
      Guest

      Thanks will try it
      How can I get the detailed ratings in a single store review

    • #54909
      WCFM Forum
      Member

      Hi,

      Single store review all details are already displayed – https://ibb.co/28qyRsy

      What else you want to show?

      Just to mention, “review reply” option will be there very soon.

      Thank you

    • #54917
      MarsMars
      Participant

      yes I know
      I want to create api thats why I am asking how can I get the data

    • #54999
      WCFM Forum
      Member

      OK, understand.

      Please check this template – wp-content\plugins\wc-multivendor-marketplace\views\reviews\wcfmmp-view-reviews-latest-review.php

      Thank You

Viewing 7 reply threads
  • The topic ‘where can I get these data from’ is closed to new replies.