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

Welcart Voll 1.0.6 をリリース

Welcart Voll 1.0.6 をリリースしました。

  1. ヘッダーナビゲーションメニューの不具合修正
  2. ヘッダー「会員メニュー」にアクションフック追加
  3. 商品一覧での売価表示のタグ修正
  4. Google Chrome メールアドレス・パスワードの自動入力機能の無効化部分の不具合修正
  5. ブラウザを縮小時のヘッダー崩れ修正
  6. ブラウザをリサイズ時の不具合修正

ヘッダーナビゲーションメニューの不具合修正

コード削除: welcart_basic-voll/inc/front-customized.php 416行目

/***********************************************************
* walker_nav_menu
***********************************************************/

add_filter('walker_nav_menu_start_el', 'description_in_nav_menu', 10, 4);
function description_in_nav_menu($item_output, $item){
    $attr_title = empty($item->attr_title);
    if($attr_title) {
        return preg_replace('/(<a.*?>[^<]*?)</', '$1' . "<", $item_output);
    }else {
        return preg_replace('/(<a.*?>[^<]*?)</', '$1' . "<span>{$item->attr_title}</span><", $item_output);     
    }
}

ヘッダー「会員メニュー」にアクションフック追加

フィルター追加: welcart_basic-voll/header.php 130行目あたり

<?php if(usces_is_membersystem_state()): ?>
<div class="membership">
    <i class="fa fa-user"></i>
    <ul class="cf">
        <?php do_action( 'usces_theme_action_membersystem_before' ); ?>
        <?php if( usces_is_login() ): ?>
            <li><?php printf(__('Hello %s', 'usces'), usces_the_member_name('return')); ?></li>
            <li><?php usces_loginout(); ?></li>
            <li><a href="<?php echo USCES_MEMBER_URL; ?>"><?php _e('My page', 'welcart_basic') ?></a></li>
        <?php else: ?>
            <li><?php _e('guest', 'usces'); ?></li>
            <li><?php usces_loginout(); ?></li>
            <li><a href="<?php echo USCES_NEWMEMBER_URL; ?>"><?php _e('New Membership Registration','usces') ?></a></li>
        <?php endif; ?>
        <?php do_action( 'usces_theme_action_membersystem_after' ); ?>
    </ul>
</div>
<?php endif; ?>

商品一覧での売価表示のタグ修正

テンプレートタグ修正
category.php / search.php / front-page.php / wc_search_page.php / front-customized.php

<div class="itemprice"><?php usces_the_firstPriceCr() . usces_guid_tax(); ?></div>

Google Chrome メールアドレス・パスワードの自動入力機能の無効化部分の不具合修正

テンプレート修正:wc_templates/member/wc_member_page.php 80行目あたり

<table class="customer_form">
    <?php uesces_addressform( 'member', usces_memberinfo(NULL), 'echo' ); ?>
    <tr>
        <th scope="row"><?php _e('e-mail adress', 'usces'); ?></th>
        <td colspan="2"><input name="member[mailaddress1]" id="mailaddress1" type="text" value="<?php usces_memberinfo('mailaddress1'); ?>" /></td>
    </tr>
    <tr>
        <th scope="row"><?php _e('password', 'usces'); ?></th>
        <td colspan="2"><input name="member[password1]" id="password1" type="password" value="<?php usces_memberinfo('password1'); ?>" autocomplete="new-password" />
        <?php _e('Leave it blank in case of no change.', 'usces'); ?></td>
    </tr>
    <tr>
        <th scope="row"><?php _e('Password (confirm)', 'usces'); ?></th>
        <td colspan="2"><input name="member[password2]" id="password2" type="password" value="<?php usces_memberinfo('password2'); ?>" autocomplete="new-password" />
        <?php _e('Leave it blank in case of no change.', 'usces'); ?></td>
    </tr>
</table>

ブラウザを縮小時のヘッダー崩れ修正

コード修正:/js/front-customized.js 11行目あたり

if ( windowWidth < 1000 ) {
    $('.mobile_menu').css('height', $('body').height() + 'px');
    $('.mobile_menu_wrap').css('height', windowHeight + 'px');
    $('.menu-trigger').on(_touch,function(){

コード修正:/js/front-customized.js 42行目あたり

    $('.category-area .cat_box .over').css('bottom', '-' + cat_over + 'px');
}
if ( windowWidth < 1000 ) {
    $(document).on(_touch,'.menu-trigger',function(){
        $('.site').toggleClass('menu-on');
    });

コード修正:/js/front-customized.js 76行目あたり

        header.removeClass('fixed');        
    }
}else if( windowWidth < 1000 ) {

ブラウザをリサイズ時の不具合修正

コード追加:/js/front-customized.js 16行目あたり

    if(state == false) {
        scrollpos = $(window).scrollTop();
        $('body').addClass('body-fixed').css({'top': -scrollpos});
        $('.site').addClass('menu-on');
        state = true;
    } else {
        $('body').removeClass('body-fixed').css({'top': 0});
        window.scrollTo( 0 , scrollpos );
        $('.site').removeClass('menu-on');
        state = false;
    }
});

コード削除:/js/front-customized.js 35行目あたり

$( document ).ready( function() {
    var windowWidth = window.innerWidth;
    var cat_over = $('.category-area .cat_box .over').outerHeight();
    var _touch = ('ontouchstart' in document) ? 'touchstart' : 'click';

    if ( 1000 <= windowWidth ) {
        $('.category-area .cat_box .over').css('bottom', '-' + cat_over + 'px');
    }
    
    if ( windowWidth < 1000 ) {
        $(document).on(_touch,'.menu-trigger',function(){
            $('.site').toggleClass('menu-on');
        });
    } else {
        $('.site').removeClass('menu-on');
    }
} );

$(window).scroll(function() {

コード追加:/js/front-customized.js 52行目あたり

var headerH = $('.fixed-box').outerHeight();

if ( 1000 <= windowWidth ) {
    $('.site').removeClass('menu-on');
    /* pc -*/
    if ($(this).scrollTop() > headerH) {

スタイル追加:style.css 2044行目あたり

.mobile_menu_wrap,
.mobile_menu {
    height: auto !important;
}