• On the woocommers product page the comment section is missing.
    I tested with a different theme and there the comment section was working.

    So i guess the theme is missing a bit of code or am i missing a theme setting somewhere?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter supr3m3dalek

    (@supr3m3dalek)

    could the <div class=”price-rating-wrap”> part be missing a part?

    If so how to fix it ?

    /**
     * Price & Rating Wrap
    */
    if (!function_exists('xcommerce_woocommerce_before_rating_loop_price')) {
    
        function xcommerce_woocommerce_before_rating_loop_price(){ ?>
    
        	<div class="price-rating-wrap"> 
    
          <?php 
        }
    }
    add_action( 'woocommerce_after_shop_loop_item_title', 'xcommerce_woocommerce_before_rating_loop_price', 4 );
    
    if (!function_exists('xcommerce_woocommerce_after_rating_loop_price')) {
    
        function xcommerce_woocommerce_after_rating_loop_price(){  ?>
            
            </div>
                <?php if( is_shop() || is_product_category() || is_product_tag() ) : ?> 
                <?php if( ! get_theme_mod('xcommerce_show_product_description', false) ) return ; ?>
                <div class="xcommerce-more-desc xcommerce-more-effect">
                    <div class="woocommerce-product-details__short-description">
                        <?php the_excerpt(); ?>
                    </div>
                    <a href="#" class="xcommerce-more-desc-btn"><span></span></a>
                </div>
    
          <?php 
          endif;
        }
    }
    add_action( 'woocommerce_after_shop_loop_item_title', 'xcommerce_woocommerce_after_rating_loop_price', 12 );
    
    
    
    if (!function_exists('xcommerce_woocommerce_product_item_details_close')) {
    
        function xcommerce_woocommerce_product_item_details_close(){ ?>
    
        	    </div>
        	</div>
    
          <?php 
        }
    }
    add_action( 'woocommerce_after_shop_loop_item', 'xcommerce_woocommerce_product_item_details_close', 12 );
    
Viewing 1 replies (of 1 total)
  • The topic ‘Comment section missing on woocommers product page’ is closed to new replies.