返信先: 記事投稿について

フォーラム 使い方全般 記事投稿について 返信先: 記事投稿について

#78820
uishi
参加者

category.phpを複製して
category-infomation.phpとcategory-exhibition.phpをつくる。
それぞれ19行目辺りから45行目あたりと61行目あたりを削除
19-45

<?php if( usces_is_cat_of_item( get_query_var( 'cat') ) ): ?>

			<?php if (have_posts()) : ?> 

				<div class="cat-il type-grid">

					<?php while (have_posts()) : the_post(); ?>
						<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

							<div class="itemimg">
								<a href="<?php the_permalink() ?>"><?php usces_the_itemImage(0, 300, 300); ?></a>
								<?php welcart_basic_campaign_message(); ?>
							</div>
							<div class="itemprice"><?php usces_crform( usces_the_firstPrice('return'), true, false ); usces_guid_tax(); ?></div>
							<?php if(! usces_have_zaiko_anyone() ) : ?>
							<div class="itemsoldout"><?php _e('Sold Out', 'usces' ); ?></div>
							<?php endif; ?>
							<div class="itemname"><a href="<?php the_permalink() ?>"  rel="bookmark"><?php usces_the_itemName(); ?></a></div>

						</article>
					<?php endwhile; ?>

				</div><!-- .cat-il -->

			<?php endif; ?>

		<?php else : ?>

61
<?php endif; ?>
すると売り切れじゃない表示になるかも。
19行目で商品を親カテゴリとしてるかしてないかを判定して、
表示を違うものにしている。
削除してる部分は条件分岐と商品の場合の表示内容の部分。
61行目は19行目の条件分岐の終わり。
上手に削らないとエラーでるけど新たに作ったお知らせと展示会の奴を削除すれば直る。
でもお知らせと展示会がなぜ商品の配下になってることになっているんだろう。