Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.0
Something big is coming for marketplace admins… MultiVendorX 5.0 is almost here. Are you ready?
Be the first to explore all the game-changing features!
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

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.
Shopping Cart
Scroll to Top