Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards

I want to display Vendors Address on Product Listing page

WCMp Advanced Frontend Manager

Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #142409
      jeffersonballer100
      Participant

      Hi, I’m using WC-MARKETPLACE PLUGIN, I want to display Vendors Address on the Product Listing page.

      Please I need your Assistance to do so, In addition there’s no Cash on Delivery in payment options.
      E.g: StoreName, Address, Email. should be shown on product listing page.

      Thank you.

    • #142434

      Hi,
      Kindly add below code to your active theme function.php

      add_action('woocommerce_after_shop_loop_item', 'wcmp_custom_vendor_data_after_product', 7 );
      function wcmp_custom_vendor_data_after_product() {
          global $post;
          $vendor = get_wcmp_product_vendors($post->ID);
          if($vendor) {
              $address = $vendor->get_formatted_address();
              $email = $vendor->user_data->user_email;
              echo $vendor->page_title . '<br>';
              echo $address . '<br>';
              echo $email . '<br>';
          }
      }
      Copy

      Regards,

    • #142443
      jeffersonballer100
      Participant

      Okay i will try this and get back to you… How about Payment Option.. There’s no Pay On Delivery Option and user can not make Order…

      Thanks for your replies.. I’ll be your best customer if i found this plugin very useful…

    • #142465

      Hi, you need to enable the Pay on delivery, goto WooCommerce >> Settings >> Payment and enable the “Cash on the delivery option”. for further help, check this doc : https://woocommerce.com/document/cash-on-delivery/

    • #142718
      jeffersonballer100
      Participant

      I copied the above code to my theme function it works fine, But no search Plugin was able to lookup for the vendor’s address. By searching on my page.. Plugins only see products posted address can not be found. Please kindky Check and help. Thanks I’ll be waiting for your feedback.

    • #142735

      Hi, the search features generally gets carried out by WooCommerce or the theme.

      Now by default, they don’t add support for the vendor’s location.That is why you may use our vendor list shortcode, where user can search vendor by their location : [wcmp_vendorslist orderby=”registered” order=”ASC”]

      It will create a page like this : http://wcmpdemos.com/all-in-one-demo/vendors/

    • #148059

      We haven’t heard back from you. We presume this issue has been fixed, so we are closing this one.
      if you need any further help, please do open another thread.

Viewing 6 reply threads

The topic ‘I want to display Vendors Address on Product Listing page’ is closed to new replies.