Welcart Square 1.0.5 をリリースしました。
今回の更新内容は次の通りです。
- グリッドレイアウトのスタイル調整
- 商品タグの修正
- 複合検索ウィジェットのスタイル調整
- カートエラーページの修正
- WordPress の翻訳変更に伴うテンプレートファイルの修正
- テーマカスタマイザーのバグ修正
グリッドレイアウトのスタイル調整
スタイル修正: welcart_basic-square/style.css 984行目
.grid-item .inner {
position: relative;
margin: 0 5px;
background-color: #fff;
-webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,0.22);
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.22);
border-radius: 6px;
overflow: hidden;
}
※「visiblelから「hiddenlに変更
商品タグの修正
コード追加: welcart_basic-square/inc/front-customized.php 245行目
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 );
}
複合検索ウィジェットのスタイル調整
スタイル追加: welcart_basic-square/usces-cart.css 566行目
.searchitems p {
text-align: center;
margin: 30px 0 30px 5px;;
letter-spacing: normal;
}
スタイル追加: welcart_basic-square/usces-cart.css 1490行目
.searchitems p {
margin-left: 10px;;
}
カートエラーページの修正
コード修正: welcart_basic-square/wc_templates/cart/wc_cart_error_page.php 14行目
<h1 class="cart_page_title"><?php _e('Your order has not been completed', 'usces'); ?></h1>
コードの削除: welcart_basic-square/wc_templates/cart/wc_cart_error_page.php 24行目
<div id="error-page">
<h2><?php _e( 'Error', 'usces'); ?></h2>
<div class="post">
<p><?php _e('Your order has not been completed', 'usces'); ?></p>
<p>(error <?php esc_html_e( urldecode($_REQUEST['acting_return']) ); ?>)</p>
<?php uesces_get_error_settlement(); ?>
</div><!-- .post -->
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-square/inc/theme-customizer.php 725行目
if( !isset( $options['cat_image'] ) ) $options['cat_image'] = true;
}
if( empty( $options[$key] ) )
return;
コード修正: welcart_basic-square/inc/theme-customizer.php 737行目
function wcct_get_info_categories() {
$target_arg = array(
'hide_empty' => false,
'exclude_tree' => usces_get_cat_id( 'item' ),
);
※「’hide_empty’ => false」を追加



