WCMp bundle is available at a slashed price

Grab It Now

Dinamic content in product page (Elementor)

Dinamic content in product page (Elementor)2019-02-11T11:24:19+00:00

Home Support Forum WCMp Core Dinamic content in product page (Elementor)

WCMp Core

Dinamic content in product page (Elementor) Open

  • Author
    Posts
  • isaac
    Participant
    Post count: 3

    Hi,

    We are designing for a client the single product page with elementor and we want to show the vendor profile image, but we don’t know to make that dynamic request. We managed to show the vendors name with the shortcode widget, but with the image it only returns the image ID and not the image itself (see img below for additional info). There’s a way we can do this?

    Thanks in advance!

    Attachments:
  • CrazyPluginAuthor Khokan
    Keymaster
    Post count: 142

    Hi @isaac, Yes it is possible, on your shortcode, first of all, you have to fetch product’s vendor, after that you can fetch your info as follows-

    global $product;
    if( $product ){
    $vendor = get_wcmp_product_vendors( $product->get_id() );
    if( $vendor ){
    $vendor_img_src = $vendor->get_image(); // To get vendor store image
    $vendor_store_name = $vendor->page_title; // To get vendor store name
    }
    }

Please LOGIN to reply to this topic