Site logo

Archived topic

Vendor banner

13 replies · Started by Ari on February 5, 2019

Viewing posts 1–14 of 14

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; ?>

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 :)

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

Do you see $vendor_id defined anywhere in the file?

Something like:

$vendor_id = 'something';

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

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?

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

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.

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.

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?

Thank you Tom for your time and great support. :)

-Ari

You're welcome :)

This archived topic is closed to new replies.