Welcart Nova 1.1.6 をリリースしました。
今回の更新内容は次の通りです。
- 商品タグの修正
- WordPress の翻訳変更に伴うテンプレートファイルの修正
- サブページ ヘッダーメニューのスクロール時の不具合修正
- テーマカスタマイザーの不具合修正
- IE11 数量部分のセレクトボックスのスタイル調整
商品タグの修正
スタイル追加: welcart_basic-nova/inc/front-customized.php 246行目
function wcct_get_produt_tag( $post_id = null ) {
global $post;
・
・
if ( NULL == $post_id )
$post_id = $post->ID;
$cats = get_the_category( $post_id );
・
・
・
}
function wcct_produt_tag( $post_id = null ) {
echo wcct_get_produt_tag( $post_id );
}
WordPress の翻訳変更に伴うテンプレートファイルの修正
翻訳修正: front-page.php / index.php / page.php / single.php / 「wc_templates」 テンプレートファイル
<p><?php _e( 'Sorry, no posts matched your criteria.', 'usces' ); ?></p>※「’usces’」を追加
サブページ ヘッダーメニューのスクロール時の不具合修正
コード追加: welcart_basic-nova/js/wcct-menu.js 37行目
});
} else {
var sitehead = $('.site-header');
var sitehead_height = $('.site-header').height() + 'px';
var sitemain = $('#main');
var h_sitemain = $('.home #main');
var conhsize = bodyhsize - sitehead.height();
var winhsize = $(window).height();
if( conhsize > winhsize ) {
$(window).on('scroll', function() {
if ( $(this).scrollTop() > 48 ) {
sitehead.addClass('fixed');
sitemain.css('margin-top', sitehead_height);
h_sitemain.css('margin-top', 0);
} else {
sitehead.removeClass('fixed');
sitemain.css('margin-top', 0);
}
});
}
テーマカスタマイザーの不具合修正
スタイル追加: welcart_basic-nova/inc/theme-customizer.php 482行目
if( !isset( $options['cat_image'] ) ) $options['cat_image'] = true;
}
if( empty( $options[$key] ) )
return;
return $options[$key];
}
function wcct_options( $key = '' ) {
スタイル追加: welcart_basic-nova/inc/theme-customizer.php 496行目
***********************************************************/
function wcct_get_info_categories() {
$target_arg = array(
'hide_empty' => false,
'exclude_tree' => usces_get_cat_id( 'item' ),
);
$target_terms = get_terms( 'category', $target_arg );
※「’hide_empty’ => false,」を追加
IE11 数量部分のセレクトボックスのスタイル調整
スタイル修正: welcart_basic-nova/css/ie.css 76行目
select {
height: 40px;
padding: 0 30px 0 8px;
background: url(../images/select-arrow.png) center right 10px no-repeat;
}
※背景画像のパス変更



