• Resolved martyn

    (@marty2010)


    Hi!
    I need to get the store description_data, located in vendor page (<div class=”description_data”>) to display the store description on google (with a function).
    I cannot find by myself the wcmp “description_data” $ hook.

    Thank’s in advance.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter martyn

    (@marty2010)

    If you have a function is better, mine doesn’t work at all.

    abhirup23

    (@abhirup23)

    Hi,
    There is no such function to get vendor description.
    using below code you can get the vendor description

    $vendor_id = 2;
    $vendor =get_wcmp_vendor($vendor_id);
    if($vendor)
    echo $vendor->description;

    You can use this as per your requirement.

    • This reply was modified 4 years ago by abhirup23.
    Thread Starter martyn

    (@marty2010)

    Thank you, it works.
    Can you tell me how to get all vendors id and not only for vendor id 2?
    ref. $vendor_id = 2;

    Thread Starter martyn

    (@marty2010)

    I wanna say how to include all vendors instead only one, > $vendor_id = 2;

    Hi,
    Can you please tell me where do you want to add the data with a screenshot.

    You can get the all vendors using below function.
    get_wcmp_vendors()

    Let me know if you need any help.

    Regards,

    Thread Starter martyn

    (@marty2010)

    Hi,
    here > https://pasteboard.co/JT1eqLW.png

    Thank you.

    Hi,
    Thanks for the image. But it would have been much helpful, if you can share the screenshot of the page where you want to display that.

    Thank you.

    Thread Starter martyn

    (@marty2010)

    This is an example, > https://bit.ly/3s30fMp
    I need to do that for every vendors, after the <title></title>.
    Many thank’s

    Plugin Author MultiVendorX

    (@wcmp)

    @marty2010, we are getting this error “Error 1020”.

    Thread Starter martyn

    (@marty2010)

    Sorry, I have disabled GeoIp firewall just now, can you try again please?

    Thread Starter martyn

    (@marty2010)

    Hi, Were you able to log in?

    Plugin Author MultiVendorX

    (@wcmp)

    Hi @marty2010, thanks for the link.

    But this is your vendor shop page. May I know where do you want to show the field in this page?

    Thread Starter martyn

    (@marty2010)

    Hi,
    I don’t want to show that field in the page, how to display the store description_data (<div class=”description_data”>) automatically inside the <meta description=””> for every vendor. The vendor meta description is for SEO, now is empty.

    Plugin Author MultiVendorX

    (@wcmp)

    Hi @marty2010, thanks for the clarification.

    We Presume you want to fetch the vendor’s description for SEO purpose. In that case, you can get that vendor_id from their shop page and from this id, you can get the description.

    Thread Starter martyn

    (@marty2010)

    hi,
    thank you, of course, I was just looking for a function that includes all vendors together, without getting the single vendor id.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘get store description’ is closed to new replies.