[Resolved] Vendor banner

Home Forums Support [Resolved] Vendor banner

Home Forums Support Vendor banner

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #801777
    Ari

    Hi,
    I’m new user of GP premium and learning to use it. I use woocommerce and wcvendor marketplace plugin. There IS a file vendor-main-header.php which shows vendor Shop Name below Vendors product and should show vendor banner also. Banner is not showing.
    IS IT possible use GP Hook ‘is_page_template’ to show this informations and how to do it.

    Regards, Ari

    This lines IS vendor-main-header.php file:

    <?php $images = get_user_meta( $vendor_id, ‘pv_header_image’ );
    if ( $images ) {
    foreach ( $images as $attachment_id ) {
    $thumb = wp_get_attachment_image( $attachment_id, ‘thumbnail’ );
    $full_size = wp_get_attachment_url( $attachment_id );
    }
    }
    ?>

    ”);”>
    <h1 style=’text-align:center; color:#fff;’><?php echo $shop_name; ?></h1>
    <?php echo $shop_description; ?>
    #802233
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Yes, you should be able to add that to a hook, but you’d need to define $vendor_id.

    Let me know if you need more info 🙂

    #802375
    Ari

    Hi Tom,

    Thank you for the answer. I’m not sure where i put $vendor_id.
    Can you show me the way how i do it? 🙂
    This is first time when i use this premium

    Ari

    #802520
    Tom
    Lead Developer
    Lead Developer

    Do you see $vendor_id defined anywhere in the file?

    Something like:

    $vendor_id = 'something';

    #802598
    Ari

    Yes i see. This file vendor-main-header have it. There is something wrong bcause vendor shop name shows but banner doesn’t.

    #802610
    Tom
    Lead Developer
    Lead Developer

    From the code you’ve shared with me, I can’t see the image actually being output at all.

    Can you share the entire template inside a pastebin or something similar so I can take a closer look?

    #802635
    Ari

    Hi, there is pastebin.

    https://pastebin.com/073ia59R

    #803256
    Tom
    Lead Developer
    Lead Developer

    That’s the entire file? Any chance you can link me to the page where the banner should be showing up?

    #803728
    Ari

    Hi,
    yes, thats whole file. Those informations appers to woocommerce shop page and above is vendor published products.
    Vendor shop name appears but logo or banner not.
    I don’t know which file i have to send….sorry. I try to figured out this my self too. Maybe there is some other way to do it.

    #804118
    David
    Staff
    Customer Support

    Hi there,

    Tom requires a link to the actual page on your website so he can look at why the code isn’t working. You can edit your original topic and use the Site URL field for privacy.

    #810977
    Ari

    Hi David.
    I’ve been busy and don’t have time to write.
    My site is not ready to publish yet and it’s under construction now. I can send admin credentials to you but where i send it?

    #811133
    David
    Staff
    Customer Support

    You can send them via the Account Issue form here:

    https://generatepress.com/contact/

    Please add a link to this topic in the form so we can track.

    #812919
    Ari

    Thank you Tom for your time and great support. 🙂

    -Ari

    #813124
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.