Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Criss

Forum Replies Created

Viewing 6 posts - 166 through 171 (of 171 total)
  • Author
    Posts
  • in reply to: unresolved issues outlined in WordPress #114109
    Criss
    Participant

    …as a matter of fact, under my theme there’s a folder dc-product-vendor which contains widget/vendor-list.php. Here’s the code, please find out if the widgets are disabled somehow:

    
    <?php
    global $WCMp;
    
    $vendors = apply_filters( 'wyz_vendor_list_widget_vendors', $vendors );
    $vendor_count = count($vendors);
    if($vendor_count > 5 )	{ ?>
    	<div id="wcmp_widget_vendor_list" style="height: 308px; overflow-y: scroll; width: 226px;" >
    <?php } else {?>
    <div id="wcmp_widget_vendor_list" style=" height: auto; width: 226px;" >
    <?php }
    if($vendors) {
    	foreach($vendors as $vendors_key => $vendor) {
    		$link = array(
    			'link' => esc_attr( $vendor->permalink ),
    			'is_business' => false
    		);
    
    		if (class_exists('WyzHelpers')) {
    			$businesses = WyzHelpers::get_user_businesses( $vendor->id );
    			if ( ! empty( $businesses['published'] ) )
    				foreach ($businesses['published'] as $key => $value) {
    					$link['link'] = get_the_permalink( $key );
    					$link['is_business'] = true;
    					break;
    				}
    		}
    		$link = apply_filters( 'wyz_vendor_list_widget_link', $link, $vendor );
    		if (empty($link['link'])) continue;
    
    		$vendor->image = $vendor->get_image() ? $vendor->get_image() : $WCMp->plugin_url . 'assets/images/WP-stdavatar.png';
    		?>
    		<div style=" width: 100%; margin-bottom: 5px; clear: both; display: block;">
    			<div style=" width: 25%;  display: inline;">		
    			<img width="50" height="50" class="vendor_img" style="display: inline;" src=<?php echo esc_url($vendor->image); ?> id="vendor_image_display">
    			</div>
    			<div style=" width: 75%;  display: inline;  padding: 10px;">
    					<a href="<?php echo esc_url($link['link']); ?>">
    						<?php echo esc_html($vendor->page_title); ?>
    					</a>
    			</div>
    		</div>
    	<?php } 
    }?>
    </div>
    Copy
    in reply to: unresolved issues outlined in WordPress #114106
    Criss
    Participant

    ..as I already pointed out in WP forum, I cannot test with Storefront because it breaks my site. But even if my theme has WCMP integrated inside, I believe they didn’t tweak the code, so the widget must be in the code. I just cannot find out why they are disabled.

    in reply to: unresolved issues outlined in WordPress #114093
    Criss
    Participant
    This reply has been marked as private.
    in reply to: unresolved issues outlined in WordPress #114056
    Criss
    Participant

    …also, there’s no vendor page sidebar in my widgets area, so I wouldn’t know where to add any of those WCMP widgets. That’s also why my vendor page is so ugly and I wish to eliminate it. If I had the sidebar maybe I could build a nicer vendor page.

    in reply to: unresolved issues outlined in WordPress #114037
    Criss
    Participant

    I have replied via email, the forum here doesn’t send my message

    in reply to: unresolved issues outlined in WordPress #113933
    Criss
    Participant
    This reply has been marked as private.
Viewing 6 posts - 166 through 171 (of 171 total)