Re: [未解決] お勧め商品に空白の商品が表示される
フォーラム › バグ報告 › [未解決] お勧め商品に空白の商品が表示される › Re: [未解決] お勧め商品に空白の商品が表示される
2013年2月7日 7:14 AM
#66061

キーマスター
usces_assistance_item()はお勧め商品ではなく、Welcartでは関連商品と呼んでおります。
やはり、こちらではそう言った症状が出ないので確認ができないのですが、template_func.phpのusces_assistance_item()を、以下のコードに入れ替えてみていただけますでしょうか。こちらではこのコードでも問題ないことを確認しています。
function usces_assistance_item($post_id, $title ){
if (usces_get_assistance_id_list($post_id)) :
global $post;
query_posts( array('post__in'=>usces_get_assistance_ids($post_id)) );
if(have_posts()) :
add_filter( 'excerpt_length', 'welcart_assistance_excerpt_length' );
add_filter( 'excerpt_mblength', 'welcart_assistance_excerpt_mblength' );
?>
<div class="assistance_item">
<h3><?php echo $title; ?></h3>
<ul class="clearfix">
<?php
while (have_posts()) :
the_post();
usces_remove_filter();
usces_the_item();
ob_start();
?>
<li>
<div class="listbox clearfix">
<div class="slit">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php usces_the_itemImage(0, 100, 100, $post); ?></a>
</div>
<div class="detail">
<div class="assist_excerpt">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><h4><?php usces_the_itemName(); ?></h4></a>
<?php the_excerpt(); ?>
</div>
<div class="assist_price">
<?php if (usces_is_skus()) : ?>
<?php _e('$', 'usces'); ?><?php usces_the_firstPrice(); ?>
<?php endif; ?>
</div>
</div>
</div>
</li>
<?php
$list = ob_get_contents();
ob_end_clean();
echo apply_filters('usces_filter_assistance_item_list', $list, $post);
endwhile; ?>
</ul>
</div><!-- end of assistance_item -->
<?php
wp_reset_query();
usces_reset_filter();
remove_filter( 'excerpt_length', 'welcart_assistance_excerpt_length' );
remove_filter( 'excerpt_mblength', 'welcart_assistance_excerpt_mblength' );
endif;
endif;
}