ソニーペイメントサービスの2つの決済モジュール

Welcart VOLL 1.0.3 をリリース

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

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

  1. 商品タグの修正
  2. 購入履歴のスタイル調整
  3. WordPress の翻訳変更に伴うテンプレートファイルの修正
  4. PCブラウザを狭くした場合のメニュー開閉動作の不具合を修正
  5. ツールバー表示時のスタイル調整
  6. トップページ 商品カテゴリー画像のホバー時のレイアウト崩れを修正(Safari)
  7. 商品詳細ページ サブ画像スライドの不具合修正
  8. WCEX Widget Cart 導入時の不具合を修正
  9. テーマカスタマイザーの不具合修正

商品タグの修正

コード修正・追加: welcart_basic-voll/inc/front-customized.php 271行目

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-voll/inc/front-customized.php 295行目

$html .= '<ul class="cf opt-tag">' . "\n";
    if( isset( $flag['new'] ) ) $html .= '<li class="new">'. __('New Arrivals','welcart_basic_voll') .'</li>' . "\n";
    if( isset( $flag['reco'] ) ) $html .= '<li class="recommend">'. __('Recommend','welcart_basic_voll') .'</li>' . "\n";
    if( usces_have_fewstock( $post_id ) ) $html .= '<li class="stock">'. __('Few Stock','welcart_basic_voll') .'</li>' . "\n";
    if( wcct_has_campaign() ) $html .= '<li class="sale">'. __('Sale','welcart_basic_voll') .'</li>' . "\n";    
$html .= '</ul>' . "\n";

コード修正: welcart_basic-voll/inc/front-customized.php 584行目

$post = get_post( $post_id );

$list  = '<div class="inner">'."\n";
    $list .= wcct_get_produt_tag( $post_id ) . "\n";
    $list .= '<div class="itemimg"><a href="'.get_permalink($post_id).'">'.usces_the_itemImage( 0, 300, 300, $post, 'return' )."\n";
        if(! usces_have_zaiko_anyone( $post_id ) ) {
            $skus = $usces->get_skus( $post_id );

購入履歴のスタイル調整

スタイル削除: welcart_basic-voll/usces_cart.css 1000行目

#memberinfo #history_head td,
#memberinfo .retail th,
#memberinfo .retail td {
    white-space: nowrap;
    border: none;
    border-bottom-width: 1px;
    border-bottom-style: solid;
※「white-space: nowrap;」削除

WordPress の翻訳変更に伴うテンプレートファイルの修正

翻訳修正: front-page.php / page.php / single.php / 「wc_templates」 テンプレートファイル

<p><?php _e( 'Sorry, no posts matched your criteria.', 'usces' ); ?></p>
※「’usces’」を追加

PCブラウザを狭くした場合のメニュー開閉動作の不具合を修正

コード追加: welcart_basic-voll/js/front-customzied.js 27行目

            }
        });
     } else {
        $('.site').removeClass('menu-on');
        $('.mobile_menu_wrap,.mobile_menu').css('height', '');
    }
});
※「$(‘.site’).removeClass(‘menu-on’);」を追加

コード修正: welcart_basic-voll/js/front-customzied.js 39行目

}

if ( windowWidth <= 1000 ) {
    $(document).on(_touch,'.menu-trigger',function(){
        $('.site').toggleClass('menu-on');
    });
} else {
※「$(‘.menu-trigger’).on(_touch,function(){」を「$(document).on(_touch,’.menu-trigger’,function(){」に変更

ツールバー表示時のスタイル調整

スタイル追加: welcart_basic-voll/style.css 479行目

/* -- .admin-bar -- */
.admin-bar .mobile_menu_wrap { 
    padding: 116px 15px; 
} 
.admin-bar .menu-on .menu-bar { 
    top: 66px; 
}

スタイル追加: welcart_basic-voll/style.css 1855行目

+@media screen and (min-width: 782px) { 

    .admin-bar .mobile_menu_wrap { 
        padding: 102px 15px; 
    } 
    .admin-bar .menu-on .menu-bar { 
        top: 52px; 
    } 
}

スタイル追加: welcart_basic-voll/style.css 2046行目

.fixed .mobile_menu_wrap,
.admin-bar .mobile_menu_wrap {
    padding: 0;
}

スタイル追加: welcart_basic-voll/wcex_widget_cart.css 73行目

/* -- .admin-bar -- */
.admin-bar .widgetcart-close-btn {
    top: 66px;
}

スタイル追加: welcart_basic-voll/wcex_widget_cart.css 152行目

@media screen and (min-width: 782px) {

    /* -- .admin-bar -- */
    .admin-bar .widgetcart-close-btn {
        top: 52px;
    }

}

スタイル追加: welcart_basic-voll/wcex_widget_cart.css 190行目

@media screen and (min-width: 62.5em) {
    ・
    ・
    /* -- .admin-bar -- */
    .admin-bar .widgetcart-close-btn {
        top: 1.785em;
    }

トップページ 商品カテゴリー画像のホバー時のレイアウト崩れを修正(Safari)

スタイル削除: welcart_basic-voll/style.css 2558行目

}
.category-area a:hover img {
    opacity: 1;
    width: 120%;
}
.category-area a:hover > .over {
※「width: 120%;」を削除

商品詳細ページ サブ画像スライドの不具合修正

コード削除: welcart_basic-voll/js/wcct-itemsingle.js 14行目

$('.slider-nav').slick({
    slidesToShow: 5,
    slidesToScroll: 1,
    asNavFor: '.slider-for',
    dots: false,
    arrows: false,
    centerMode: false,
    focusOnSelect: true,
    vertical: true,
    verticalSwiping: true,
    responsive: [{
        breakpoint: 1000,
        settings: {
            vertical: true,
            verticalSwiping: true,
        }
    }, {
        breakpoint: 620,
        settings: {
            vertical: false,
            verticalSwiping: false,
        }                       
    }]
});

コード追加: welcart_basic-voll/js/wcct-itemsingle.js 14行目

var userAgent = window.navigator.userAgent.toLowerCase();
if (userAgent.indexOf('safari') !== -1 && userAgent.indexOf('chrome') === -1){
    $('.slider-nav').slick({
        slidesToShow: 5,
        slidesToScroll: 1,
        asNavFor: '.slider-for',
        dots: false,
        arrows: false,
        centerMode: false,
        focusOnSelect: true,
        vertical: true,
        verticalSwiping: true,
        responsive: [{
            breakpoint: 1000,
            settings: {
                vertical: true,
                verticalSwiping: true,
            }
        }, {
            breakpoint: 637,
            settings: {
                vertical: false,
                verticalSwiping: false,
            }                       
        }]
    });
} else {

    $('.slider-nav').slick({
        slidesToShow: 5,
        slidesToScroll: 1,
        asNavFor: '.slider-for',
        dots: false,
        arrows: false,
        centerMode: false,
        focusOnSelect: true,
        vertical: true,
        verticalSwiping: true,
        responsive: [{
            breakpoint: 1000,
            settings: {
                vertical: true,
                verticalSwiping: true,
            }
        }, {
            breakpoint: 620,
            settings: {
                vertical: false,
                verticalSwiping: false,
            }                       
        }]
    });

}

コード削除: welcart_basic-voll/js/wcct-itemsingle.js 70行目

if ( 620 <= $(window).width() ) {
    var itemmain = document.getElementById('itemimg-main').clientHeight;        
    var itemsub = $('#itemimg-sub');
    itemsub.css('height', itemmain + 'px');
}

if( $('.tab-list').length ){

コード追加: welcart_basic-voll/js/wcct-itemsingle.js 82行目

$(window).on('load resize', function() {
    
    var itemmain = document.getElementById('itemimg-main').clientHeight;        
    var itemsub = $('#itemimg-sub');
    var itemsub_slick = $('#itemimg-sub .slick_list');
    
    if ( 620 <= $(window).innerWidth() ) {
        itemsub.css('height', itemmain + 'px');
        itemsub_slick.css('height', itemmain + 'px');
    } else {
        itemsub.css('height', 'auto');
        itemsub_slick.css('height', 'auto');
    }
    
} );    

スタイル追加: welcart_basic-voll/usces_cart.css 1128行目

/* ———————— #img-box ———————— */
#itempage .itemsubimg {
    height: auto !important;
}
#itempage .itemsubimg .slick-list {
    height: auto !important;
    text-align: center;

スタイル削除: welcart_basic-voll/usces_cart.css 37行目

#itempage .itemsubimg .slick-track {
    left: 0 !important;
}

スタイル追加: welcart_basic-voll/usces_cart.css 1168行目

#itempage .itemsubimg .slick-list {
    height: auto !important;
}

スタイル削除・修正: welcart_basic-voll/usces_cart.css 1486行目

#itempage .itemsubimg .slick-track {

    left: 50% !important;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}
※ 「top: 50%;」を削除

WCEX Widget Cart 導入時の不具合を修正

コード修正・追加: welcart_basic-voll/js/wcct-widget-cart.js 34行目

$( document ).ready( function() {
    var _touch = 'click';
    if( $('.incart-btn').length ){
        $('.incart-btn').on(_touch,function(){
            $('.site').addClass('widgetcart-on');
※ 「var _touch = (‘ontouchstart’ in document) ? ‘touchstart’ : ‘click’;」を「var _touch = ‘click’;」に変更

テーマカスタマイザーの不具合修正

セレクタ追加: welcart_basic-voll/inc/theme-customizer.php 970行目

        if( !isset( $options['info_num'] ) ) $options['info_num'] = 10;
    }

    if( empty( $options[$key] ) )
        return;

    return $options[$key];
}
function wcct_options( $key = '' ) {

コード追加: welcart_basic-voll/inc/theme-customizer.php 981行目

 ***********************************************************/
 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,」を追加

セレクタ追加: welcart_basic-voll/inc/theme-customizer.php 1532行目

/* -- .info-area -- */
.info-area .wrap,
.info-area p.no-date,
.blog #content .info-area article {
    border-color: <?php echo $main_border; ?>;
}
※「.info-area p.no-date」を追加

スタイル追加: welcart_basic-voll/style.css 1350行目

.info-area p.no-date {
    padding: 10px;
    border-width: 0 1px 1px 0;
    border-style: solid;
}