Home Forums Theme Support Dokan Feature Seller widget

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  towhid 4 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33991

    Boris GAB
    Member
    Post count: 48

    I customise the widget code to display phone number with the feature store name but the only display the store name.

      < ?php if ( $sellers ) { foreach ($sellers as $key => $seller) {
      $store_info = dokan_get_store_info( $seller->ID );
      $rating = dokan_get_seller_rating( $seller->ID );
      $display_rating = $rating[‘rating'];
      //$display_phone = $rating[‘phone'];

      if ( ! $rating[‘count'] ) {
      $display_rating = __( ‘No ratings found yet!', ‘dokan' );
      }
      ?>

    • ID ); ?>”>
      < ?php echo $store_info['store_name']; ?>


      < ?php echo esc_html( $store_info['phone'] ); ?>
      < ?php //echo $display_rating; ?>

    • < ?php } } ?>

    #34015

    towhid
    Participant
    Post count: 4505

    Hello Boris,

    I will try this code to myself and let you know the result.

    Thank You ๐Ÿ™‚

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Feature Seller widget’ is closed to new replies.