Vendor description

General Marketplace Discussion (User’s interaction forum)

Resolved
Viewing 2 reply threads
  • Author
    Posts
    • #137675
      vincent
      Participant

      Hi ! I’m currently using Oxygen builder that desactivate templates from wordpress. Everything works well except that I can’t manage to display the vendor’s description on the vendor’s archive page.

      I tried several codes found on the forum :
      This one works well :
      <?php
      $vendor = get_wcmp_vendor(63);
      echo $vendordescription = $vendor->description;
      ?>

      But of cours I would like to replace the ID 63 by “$vendor_id” that returns nothing.

      The way I have to do it in Oxygen is to create a function in code snippet that will return the description in a php variable.

      Would you have any idea how I could manage that ?

      Thanks,
      Vincent

    • #137681
      vincent
      Participant

      Solved with this function :

      function getvendordescription($vendor_description) {
      if ( wcmp_is_store_page() ) {
      $store_id = wcmp_find_shop_page_vendor();
      $vendor = get_wcmp_vendor($store_id);
      $vendor_description = $vendor->description;
      return $vendor_description;
      }
      }

    • #137695

      Hi, thanks for letting us know.

Viewing 2 reply threads

The topic ‘Vendor description’ is closed to new replies.