Quantcast
Channel: 【公式】Welcart |SEOに強い!初めてでも安心の無料ネットショップ作成ツール
Viewing all articles
Browse latest Browse all 1175

Welcart Beldad 1.0.3 をリリース

$
0
0

Welcart Beldad 1.0.3 をリリースしました。

今回の更新内容は次の通りです。

  1. wp_body_open() 設置
  2. ページナビのスタイル調整
  3. 定期購入ボタンのスタイル調整
  4. カレンダーウィジェットのスタイル修正
  5. キービジュアル画像を非表示にした場合の不具合修正
  6. 「Welcart 商品一覧」ウィジェットの不具合修正

wp_body_open() 設置

テンプレートタグ追加: welcart_basic-beldad/header.php 22行目

<?php wp_body_open(); ?>

ページナビのスタイル調整

スタイル追加: welcart_basic-beldad/style.css 1407行目

ul.page-numbers li {
	float: left;
	text-align: center;
	margin-top: .178em;
	margin-bottom: .178em;
	margin-left: .357em;
}

定期購入ボタンのスタイル調整

スタイル修正: welcart_basic-beldad/auto_delivery.css 65行目

.item-info #wc_regular .skubutton {
	padding: 0 .714em;
}

カレンダーウィジェットのスタイル修正

テンプレート修正: welcart_basic-beldad/inc/theme-customizer.php 1625行目

#searchform,
#show,
.widget_welcart_calendar td.businesstoday,
.welcart_blog_calendar td#today,
.widget_calendar td#today {
	background-color: <?php echo $border_color_rgba2; ?>;
}

キービジュアル画像を非表示にした場合の不具合修正

テンプレート修正: welcart_basic-beldad/header.php 204行目

<?php if ( has_header_image() ) : ?>
	<div><img src="<?php header_image(); ?>" alt="*"></div>
<?php endif; ?>

「Welcart 商品一覧」ウィジェットの不具合修正

テンプレート修正: welcart_basic-beldad/inc/widget-customized.php 8行目

※下記のコードをコピペして、「wcct_filter_item_list」の内容の書き換えをおこなってください。

function wcct_filter_item_list( $html, $term_id, $number ) {
	$html = '';

	$item_args = array(
		'cat'            => $term_id,
		'posts_per_page' => $number,
	); 
	$item_query = new WP_Query( $item_args );
	if ( $item_query->have_posts() ) {
		if ( wcct_get_options( 'display_widget_slide' ) ) {
			$html .= '<div class="item-list cf slider">' . "\n";
		} else {
			$html .= '<div class="item-list cf">' . "\n";
		}
		while ( $item_query->have_posts() ) {
			$item_query->the_post();
			usces_the_item();

			$html .= '<div id="post-' . get_the_ID() . '" class="list">' . "\n";
				$html .= '<a href="' . get_permalink( get_the_ID() ) .'">' . "\n";
					$html .= '<div class="itemimg">' . "\n";
						$html .= get_welcart_basic_campaign_message() . "\n";
						$html .= usces_the_itemImage( 0, 300, 300, '', 'return' ) . "\n";
						if ( wcct_get_options( 'display_soldout' ) && !usces_have_zaiko_anyone() ) {
							$html .= '<div class="itemsoldout">' . "\n";
								$html .= '<div class="text">' . "\n";
									$html .= __( 'SOLD OUT', 'welcart_basic_beldad' ) . "\n";
									if ( wcct_get_options( 'display_inquiry' ) ) {
										$html .= '<span class="sub_text">' . wcct_get_options( 'display_inquiry_text' ) . '</span>' . "\n";
									}
								$html .= '</div>' . "\n";
							$html .= '</div>' . "\n";
						}
					$html .= '</div>' . "\n";
					$html .= '<div class="item-info-wrap"><div class="inner">' . "\n";
						$html .= '<div class="itemname">' . usces_the_itemName( 'return' ) . '</div>' . "\n";
						$html .= wcct_get_produt_tag() . "\n";
						$html .= '<div class="itemprice">' . usces_crform( usces_the_firstPrice( 'return' ), true, false, 'return' ) . usces_guid_tax( 'return' ) . '</div>' . "\n";
					$html .= '</div></div>' . "\n";
				$html .= '</a>' . "\n";
			$html .= '</div>';
		}
		wp_reset_postdata();
		$html .= '</div>' . "\n";
	}

	return $html;
}
add_filter( 'welcart_basic_filter_item_list', 'wcct_filter_item_list', 10, 3 );

Viewing all articles
Browse latest Browse all 1175

Trending Articles