Welcart Bordeaux 1.1.0 をリリースしました。
【変更点】
キャンペーン期間中の割引率表示機能追加
Welcart Bordeauxの親テーマWelcart Basicの1.2より「キャンペーン期間中の割引率表示」機能が追加されました。 まずは、Welcart Basicを1.2にアップデートしてください。 Welcart Bordeauxをカスタマイズされていない方は、そのまま1.1.0にアップデートしてください。 アップグレード方法については、Welcart Bordeauxのドキュメントを参照してください。 Welcart Bordeaux 1.1 ドキュメント インストールの方法 – アップデート| 表示価格より◯◯% OFF | ポイント◯倍 |
|---|---|
![]() |
![]() |
![]() |
![]() |
<?php welcart_basic_campaign_message(); ?>
※ループ外では、割引率は表示されませんのでご注意ください。
詳しくはドキュメントを参照してください。 Welcart Bordeaux 1.1 ドキュメント テーマについて – キャンペーン期間中の割引率表示管理画面 > フロントページの表示設定を「固定ページ」に設定しても表示されない不具合を修正
まずは、Welcart Basicを1.2にアップデートしてください。welcart_basic-bordeaux/front-page.php
<section class="front-il cf">
<?php if( have_posts() ) : ?>
<?php
if(wcct_get_options('home_cat_title')):
$category_name = ( get_query_var( 'cat' ));
?>
<h2><span><?php echo get_cat_name($category_name); ?></span></h2>
<?php endif; ?>
<?php while( have_posts() ) : the_post(); usces_the_item(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="itemimg">
<a href="<?php the_permalink(); ?>">
<?php usces_the_itemImage( 0, 300, 300 ); ?>
<?php if( wcct_get_options('display_soldout') && !usces_have_zaiko_anyone() ): ?>
<div class="itemsoldout">
<div class="inner">
<?php _e('SOLD OUT', 'welcart_basic_bordeaux' ); ?>
<?php if( wcct_get_options('display_inquiry') ): ?>
<span class="text"><?php wcct_options('display_inquiry_text'); ?></span>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</a>
</div>
<?php wcct_produt_tag(); ?>
<div class="itemprice"><?php usces_crform( usces_the_firstPrice('return'), true, false ) . usces_guid_tax(); ?></div>
<div class="itemname"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php usces_the_itemName(); ?></a></div>
</article>
<?php endwhile; ?>
<?php else: ?>
<p class="no-date"><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</section><!-- .front-il --><?php if ( 'page' == get_option( 'show_on_front' ) ): ?>
<div class="sof">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2 class="entry-title"><?php the_title(); ?></h2>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; else: ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
</div>
<?php else: ?>
<?php if( have_posts() ) : ?>
<section class="front-il cf">
<?php if( wcct_get_options( 'home_cat_title' ) ): ?>
<h2><span><?php echo get_cat_name( get_query_var( 'cat' ) ); ?></span></h2>
<?php endif; ?>
<?php while( have_posts() ) : the_post(); usces_the_item(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="itemimg">
<a href="<?php the_permalink(); ?>">
<?php usces_the_itemImage( 0, 300, 300 ); ?>
<?php if( wcct_get_options( 'display_soldout' ) && !usces_have_zaiko_anyone() ): ?>
<div class="itemsoldout">
<div class="inner">
<?php _e( 'SOLD OUT', 'welcart_basic_bordeaux' ); ?>
<?php if( wcct_get_options( 'display_inquiry' ) ): ?>
<span class="text"><?php wcct_options( 'display_inquiry_text' ); ?></span>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</a>
</div>
<?php wcct_produt_tag(); ?>
<?php welcart_basic_campaign_message(); ?>
<div class="itemprice"><?php usces_crform( usces_the_firstPrice( 'return' ), true, false ) . usces_guid_tax(); ?></div>
<div class="itemname"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php usces_the_itemName(); ?></a></div>
</article>
<?php endwhile; ?>
</section><!-- .front-il -->
<?php endif; ?>
<?php endif; ?>welcart_basic-bordeaux/style.css 1536行目
.home header {
.home header,
.blog header {
welcart_basic-bordeaux/style.css 1752行目
.home #secondary h3 {
.home #secondary h3,
.blog #secondary h3 {
welcart_basic-bordeaux/style.css 1759行目
.home #secondary .widget_title>img {
.home #secondary .widget_title>img,
.blog #secondary .widget_title>img {
PHP5.2環境下でテーマが有効化できない不具合を修正
welcart_basic-bordeaux/inc/theme-customizer.php 145行目
'active_callback' => function() { return !is_front_page() && !is_home() && !welcart_basic_is_cart_page() && !welcart_basic_is_member_page(); },
'active_callback' => 'callback_is_twocolumn',
welcart_basic-bordeaux/inc/theme-customizer.php 163行目
welcart_basic-bordeaux/inc/theme-customizer.php 205行目
'active_callback' => function() { return is_front_page() || is_home() || is_archive() || is_search(); },
'active_callback' => 'callback_is_itemlist',
welcart_basic-bordeaux/inc/theme-customizer.php 222行目
welcart_basic-bordeaux/inc/theme-customizer.php 238行目
welcart_basic-bordeaux/inc/theme-customizer.php 253行目
welcart_basic-bordeaux/inc/theme-customizer.php 270行目
'active_callback' => function() { return is_single() && usces_is_item(); },
'active_callback' => 'callback_is_itemsingle',
welcart_basic-bordeaux/inc/theme-customizer.php 287行目
'active_callback' => function() { return welcart_basic_is_cart_page(); },
'active_callback' => 'callback_is_cartpage',
welcart_basic-bordeaux/inc/theme-customizer.php 317行目
function callback_is_twocolumn() {
return !is_front_page() && !is_home() && !welcart_basic_is_cart_page() && !welcart_basic_is_member_page();
}
function callback_is_itemlist() {
return is_front_page() || is_home() || is_archive() || is_search();
}
function callback_is_itemsingle() {
return is_single() && usces_is_item();
}
function callback_is_cartpage() {
return welcart_basic_is_cart_page();
}







