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