• Resolved WeDev.Africa

    (@mad2kx)


    Hi there,

    I am using the Divi Builder and I cannot display the Vendor Details inside the “Vendor Shop”. Is there a specific shortcode to have the Vendor Details displayed on their individual shop pages and also underneath the single article (not inside a tab).

    I would like to have all details (email, website etc) displayed and not only the intro.

    Please advise?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    unfortunately it is not possible to do it differently. I’m sorry

    Thread Starter WeDev.Africa

    (@mad2kx)

    Hi there,

    I managed to solve the problem by using shortcodes.

    Hi @mad2kx,

    What shortcode did you use please?

    Thanks,
    Steve

    Thread Starter WeDev.Africa

    (@mad2kx)

    Hi @insightdes,

    I was using this code in my functions.php

    if( ! function_exists( 'yith_show_vendor_name' ) ){
    	function yith_show_vendor_name() {
    		global $product;
    
    		$vendor = yith_get_vendor( $product, 'product' );
    
    		ob_start();
    
    		if ( $vendor->is_valid() ) {
    ?>
    
    <ul class="shortcodes vendors-list">
    	<li class="vendor-item">
    		<h3><?php echo $vendor->name ?></h3>
    		<div class="vendor-info-wrapper">
    			<ul class="vendor-info">
    				<li class="location"><i class="fas fa-location-arrow"></i><?php echo $vendor->location ?></li>                   
    				<li class="store-email"><i class="fas fa-envelope"></i><?php echo $vendor->store_email ?></li>                   
    				<li class="telephone"><i class="fas fa-phone"></i><?php echo $vendor->telephone ?></li>
    			</ul>
    		</div>
    	</li>
    </ul>
    <?php
    								   }
    
    		return ob_get_clean();
    	}
    }
    
    if( ! function_exists( 'yith_wcmv_add_sc' ) ){
    	function yith_wcmv_add_sc(){
    		add_shortcode( 'yith_wcmv_vendor_name', 'yith_show_vendor_name' );
    	}
    }

    And this part into the Divi Code Module [yith_wcmv_vendor_name]

    Hope this helps.

    • This reply was modified 6 years, 5 months ago by WeDev.Africa.

    That’s great, thanks mad2kx.

    Plugin Author YITHEMES

    (@yithemes)

    @mad2kx
    Thanks for your suggestions!
    Have a nice day
    YITH

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Divi Builder Problems’ is closed to new replies.