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

Welcart Beldad 1.4.5 をリリース

Welcart Beldad 1.4.5 をリリースしました。修正点は以下のとおりです。

商品一覧・詳細ページの在庫僅少タグを基本設定/在庫状態の表示内容に変更修正

テンプレート修正 : inc/front-customized.php 323行目付近

function wcct_get_produt_tag( $post_id = null ) {
    global $post;

    if ( ! wcct_get_options( 'display_produt_tag' ) ) {
function wcct_get_produt_tag( $post_id = null ) {
    global $post, $usces;

    if ( ! wcct_get_options( 'display_produt_tag' ) ) {

テンプレート修正 : inc/front-customized.php 356行目付近

$html .= '<li class="recommend">' . __( 'Recommend', 'welcart_basic_beldad' ) . '</li>' . "\n";
    }
    if ( usces_have_fewstock( $post_id ) ) {
        $html .= '<li class="stock">' . __( 'Few Stock', 'welcart_basic_beldad' ) . '</li>' . "\n";
    }
$html .= '<li class="recommend">' . __( 'Recommend', 'welcart_basic_beldad' ) . '</li>' . "\n";
    }
    if ( usces_have_fewstock( $post_id ) ) {
        $html .= '<li class="stock">' . esc_attr( $usces->zaiko_status[1] ) . '</li>' . "\n";
    }

トップページの各記事一覧ブロックで表示する記事がない場合の表示不具合修正

テンプレート修正 : header.php 257行目付近

<?php
if ( wcct_get_options( 'display_info' ) ) :
    $info_num      = wcct_get_options( 'info_num' );

    ~ 省略 ~  

    $info_cat      = get_term_by( 'slug', $info_cat_slug, 'category' );
    
    $info_args  = array(
        'posts_per_page' => $info_num,
        'category_name'  => $info_cat_slug,
    );
    $info_query = new WP_Query( $info_args );
    ?>
    <div class="info-area">

        ~ 省略 ~

    </div>

<?php endif; ?>
<?php
if ( wcct_get_options( 'display_info' ) ) :
    $info_num      = wcct_get_options( 'info_num' );

    ~ 省略 ~  

    $info_cat      = get_term_by( 'slug', $info_cat_slug, 'category' );
    if ( ! empty( $info_cat ) ) :
        $info_args  = array(
            'posts_per_page' => $info_num,
            'category_name'  => $info_cat_slug,
        );
        $info_query = new WP_Query( $info_args );
        ?>
        <div class="info-area">

            ~ 省略 ~

        </div>
        <?php
    endif;
endif;
?>

テンプレート修正 : front-page.php 48行目付近

<?php
if ( wcct_get_options( 'display_topics' ) ) :
    $topics_num      = wcct_get_options( 'topics_num' );

    ~ 省略 ~

    $topics_cat      = get_term_by( 'slug', $topics_cat_slug, 'category' );

    ?>
    <section class="topics-area home-area">

        ~ 省略 ~

    </section>
    <?php

endif;
?>
<?php
if ( wcct_get_options( 'display_topics' ) ) :
    $topics_num      = wcct_get_options( 'topics_num' );

    ~ 省略 ~

    $topics_cat      = get_term_by( 'slug', $topics_cat_slug, 'category' );
    if ( ! empty( $topics_cat ) ) :
        ?>
        <section class="topics-area home-area">

            ~ 省略 ~

        </section>
        <?php
    endif;
endif;
?>

テンプレート修正 : front-page.php 159行目付近

<?php
if ( wcct_get_options( 'display_pickup' ) ) :
    $pickup_num  = wcct_get_options( 'pickup_num' );

    ~ 省略 ~

    $pickup_cat  = get_term_by( 'slug', $pickup_slug, 'category' );

    ?>
    <section class="pickup-area home-area">

        ~ 省略 ~

    </section>
    <?php

endif;
?>
<?php
if ( wcct_get_options( 'display_pickup' ) ) :
    $pickup_num  = wcct_get_options( 'pickup_num' );

    ~ 省略 ~

    $pickup_cat  = get_term_by( 'slug', $pickup_slug, 'category' );
    if ( ! empty( $pickup_cat ) ) :
        ?>
        <section class="pickup-area home-area">
    
            ~ 省略 ~
    
        </section>
        <?php
    endif;
endif;
?>

SNSのアイコンを最新デザインに変更

テンプレート修正 : footer.php 71行目付近

<div class="sns">
    <ul class="cf">
        <?php if ( wcct_get_options( 'facebook_button' ) ) : ?>
            <li><a href="https://www.facebook.com/<?php wcct_options( 'facebook_id' ); ?>" target="_blank" rel="nofollow"><i class="fa fa-facebook"></i></a></li>
            <?php
        endif;

        if ( wcct_get_options( 'twitter_button' ) ) :
            ?>
            <li><a href="https://twitter.com/<?php wcct_options( 'twitter_id' ); ?>" target="_blank" rel="nofollow"><i class="fa fa-twitter"></i></a></li>
            <?php
        endif;

        if ( wcct_get_options( 'instagram_button' ) ) :
            ?>
            <li><a href="https://www.instagram.com/<?php wcct_options( 'instagram_id' ); ?>" target="_blank" rel="nofollow"><i class="fa fa-instagram"></i></a></li>
        <?php endif; ?>
    </ul>
</div>
<div class="sns">
    <ul class="cf">
        <?php if ( wcct_get_options( 'facebook_button' ) ) : ?>
            <li><a href="https://www.facebook.com/<?php wcct_options( 'facebook_id' ); ?>" target="_blank" rel="nofollow"><i class="facebook-svg"></i></a></li>
            <?php
        endif;

        if ( wcct_get_options( 'twitter_button' ) ) :
            ?>
            <li><a href="https://twitter.com/<?php wcct_options( 'twitter_id' ); ?>" target="_blank" rel="nofollow"><i class="twitter-svg"></i></a></li>
            <?php
        endif;

        if ( wcct_get_options( 'instagram_button' ) ) :
            ?>
            <li><a href="https://www.instagram.com/<?php wcct_options( 'instagram_id' ); ?>" target="_blank" rel="nofollow"><i class="instagram-svg"></i></a></li>
        <?php endif; ?>
    </ul>
</div>

スタイル修正 : style.css 874行目付近

.sns li a {
    display: inline-block;
    font-size: 1.714em;
    line-height: 1em;
}
.sns li a {
    display: block;
}

.facebook-svg::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22298.179%22%20viewBox%3D%220%200%20300%20298.179%22%3E%20%3Cpath%20id%3D%22%E5%89%8D%E9%9D%A2%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%A7%E5%9E%8B%E6%8A%9C%E3%81%8D_2%22%20data-name%3D%22%E5%89%8D%E9%9D%A2%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%A7%E5%9E%8B%E6%8A%9C%E3%81%8D%202%22%20d%3D%22M126.563%2C298.179h0A149.517%2C149.517%2C0%2C0%2C1%2C55%2C266.089a150.75%2C150.75%2C0%2C0%2C1-33.867-39.27A150.1%2C150.1%2C0%2C1%2C1%2C263.61%2C247.945a150.677%2C150.677%2C0%2C0%2C1-40.144%2C32.861%2C148.992%2C148.992%2C0%2C0%2C1-50.027%2C17.371V193.36h34.951L215.039%2C150h-41.6V121.863a29.982%2C29.982%2C0%2C0%2C1%2C1.151-8.5%2C20.593%2C20.593%2C0%2C0%2C1%2C3.865-7.4c3.982-4.78%2C10.157-7.307%2C18.351-7.509.352-.009.715-.013%2C1.077-.013H216.8V61.523a233.922%2C233.922%2C0%2C0%2C0-33.578-2.93%2C67.667%2C67.667%2C0%2C0%2C0-23.307%2C3.832%2C48.646%2C48.646%2C0%2C0%2C0-17.87%2C11.25%2C49.637%2C49.637%2C0%2C0%2C0-11.445%2C18.3%2C72.964%2C72.964%2C0%2C0%2C0-4.034%2C24.979V150H88.476V193.36h38.086V298.178Z%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22298.179%22%20viewBox%3D%220%200%20300%20298.179%22%3E%20%3Cpath%20id%3D%22%E5%89%8D%E9%9D%A2%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%A7%E5%9E%8B%E6%8A%9C%E3%81%8D_2%22%20data-name%3D%22%E5%89%8D%E9%9D%A2%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%A7%E5%9E%8B%E6%8A%9C%E3%81%8D%202%22%20d%3D%22M126.563%2C298.179h0A149.517%2C149.517%2C0%2C0%2C1%2C55%2C266.089a150.75%2C150.75%2C0%2C0%2C1-33.867-39.27A150.1%2C150.1%2C0%2C1%2C1%2C263.61%2C247.945a150.677%2C150.677%2C0%2C0%2C1-40.144%2C32.861%2C148.992%2C148.992%2C0%2C0%2C1-50.027%2C17.371V193.36h34.951L215.039%2C150h-41.6V121.863a29.982%2C29.982%2C0%2C0%2C1%2C1.151-8.5%2C20.593%2C20.593%2C0%2C0%2C1%2C3.865-7.4c3.982-4.78%2C10.157-7.307%2C18.351-7.509.352-.009.715-.013%2C1.077-.013H216.8V61.523a233.922%2C233.922%2C0%2C0%2C0-33.578-2.93%2C67.667%2C67.667%2C0%2C0%2C0-23.307%2C3.832%2C48.646%2C48.646%2C0%2C0%2C0-17.87%2C11.25%2C49.637%2C49.637%2C0%2C0%2C0-11.445%2C18.3%2C72.964%2C72.964%2C0%2C0%2C0-4.034%2C24.979V150H88.476V193.36h38.086V298.178Z%22%2F%3E%3C%2Fsvg%3E");
}

.twitter-svg::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22243.768%22%20viewBox%3D%220%200%20300%20243.768%22%3E%20%3Cg%20id%3D%22twitter-logo-2429%22%20transform%3D%22translate(0%20-23.703)%22%3E%20%3Cpath%20id%3D%22%E3%83%91%E3%82%B9_5%22%20data-name%3D%22%E3%83%91%E3%82%B9%205%22%20d%3D%22M94.344%2C267.472c113.208%2C0%2C175.129-93.794%2C175.129-175.129%2C0-2.663%2C0-5.317-.18-7.957A125.19%2C125.19%2C0%2C0%2C0%2C300%2C52.526a122.817%2C122.817%2C0%2C0%2C1-35.354%2C9.683%2C61.757%2C61.757%2C0%2C0%2C0%2C27.06-34.044%2C123.32%2C123.32%2C0%2C0%2C1-39.084%2C14.94A61.609%2C61.609%2C0%2C0%2C0%2C147.728%2C99.243%2C174.75%2C174.75%2C0%2C0%2C1%2C20.88%2C34.932%2C61.594%2C61.594%2C0%2C0%2C0%2C39.937%2C117.1%2C61.1%2C61.1%2C0%2C0%2C1%2C12%2C109.393v.78A61.572%2C61.572%2C0%2C0%2C0%2C61.381%2C170.51a61.474%2C61.474%2C0%2C0%2C1-27.794%2C1.057%2C61.617%2C61.617%2C0%2C0%2C0%2C57.5%2C42.744%2C123.513%2C123.513%2C0%2C0%2C1-76.441%2C26.4A125.134%2C125.134%2C0%2C0%2C1%2C0%2C239.821a174.264%2C174.264%2C0%2C0%2C0%2C94.344%2C27.6%22%20transform%3D%22translate(0%200)%22%2F%3E%20%3C%2Fg%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22243.768%22%20viewBox%3D%220%200%20300%20243.768%22%3E%20%3Cg%20id%3D%22twitter-logo-2429%22%20transform%3D%22translate(0%20-23.703)%22%3E%20%3Cpath%20id%3D%22%E3%83%91%E3%82%B9_5%22%20data-name%3D%22%E3%83%91%E3%82%B9%205%22%20d%3D%22M94.344%2C267.472c113.208%2C0%2C175.129-93.794%2C175.129-175.129%2C0-2.663%2C0-5.317-.18-7.957A125.19%2C125.19%2C0%2C0%2C0%2C300%2C52.526a122.817%2C122.817%2C0%2C0%2C1-35.354%2C9.683%2C61.757%2C61.757%2C0%2C0%2C0%2C27.06-34.044%2C123.32%2C123.32%2C0%2C0%2C1-39.084%2C14.94A61.609%2C61.609%2C0%2C0%2C0%2C147.728%2C99.243%2C174.75%2C174.75%2C0%2C0%2C1%2C20.88%2C34.932%2C61.594%2C61.594%2C0%2C0%2C0%2C39.937%2C117.1%2C61.1%2C61.1%2C0%2C0%2C1%2C12%2C109.393v.78A61.572%2C61.572%2C0%2C0%2C0%2C61.381%2C170.51a61.474%2C61.474%2C0%2C0%2C1-27.794%2C1.057%2C61.617%2C61.617%2C0%2C0%2C0%2C57.5%2C42.744%2C123.513%2C123.513%2C0%2C0%2C1-76.441%2C26.4A125.134%2C125.134%2C0%2C0%2C1%2C0%2C239.821a174.264%2C174.264%2C0%2C0%2C0%2C94.344%2C27.6%22%20transform%3D%22translate(0%200)%22%2F%3E%20%3C%2Fg%3E%3C%2Fsvg%3E");
}

.instagram-svg::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22Instagram-Glyph-Black-Logo.wine%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22300%22%20viewBox%3D%220%200%20300%20300%22%3E%20%3Cpath%20id%3D%22%E3%83%91%E3%82%B9_1%22%20data-name%3D%22%E3%83%91%E3%82%B9%201%22%20d%3D%22M150%2C0c-40.738%2C0-45.846.173-61.845.9-15.966.728-26.87%2C3.264-36.411%2C6.972a73.527%2C73.527%2C0%2C0%2C0-26.568%2C17.3%2C73.518%2C73.518%2C0%2C0%2C0-17.3%2C26.569C4.166%2C61.285%2C1.631%2C72.189.9%2C88.155c-.73%2C16-.9%2C21.108-.9%2C61.845s.172%2C45.845.9%2C61.845c.729%2C15.966%2C3.264%2C26.87%2C6.973%2C36.411a73.538%2C73.538%2C0%2C0%2C0%2C17.3%2C26.569%2C73.531%2C73.531%2C0%2C0%2C0%2C26.568%2C17.3c9.541%2C3.707%2C20.445%2C6.243%2C36.411%2C6.972%2C16%2C.73%2C21.108.9%2C61.845.9s45.845-.173%2C61.845-.9c15.966-.728%2C26.87-3.264%2C36.411-6.972a76.7%2C76.7%2C0%2C0%2C0%2C43.87-43.87c3.707-9.541%2C6.243-20.445%2C6.972-36.411.73-16%2C.9-21.108.9-61.845s-.173-45.846-.9-61.845c-.728-15.966-3.264-26.87-6.972-36.411a73.53%2C73.53%2C0%2C0%2C0-17.3-26.569%2C73.538%2C73.538%2C0%2C0%2C0-26.569-17.3C238.715%2C4.167%2C227.811%2C1.631%2C211.845.9%2C195.846.173%2C190.737%2C0%2C150%2C0Zm0%2C27.027c40.051%2C0%2C44.8.153%2C60.612.875%2C14.625.667%2C22.567%2C3.11%2C27.853%2C5.165a46.47%2C46.47%2C0%2C0%2C1%2C17.247%2C11.221%2C46.477%2C46.477%2C0%2C0%2C1%2C11.221%2C17.247c2.054%2C5.286%2C4.5%2C13.228%2C5.165%2C27.853.722%2C15.817.875%2C20.561.875%2C60.613s-.153%2C44.8-.875%2C60.613c-.667%2C14.625-3.11%2C22.567-5.165%2C27.853a49.678%2C49.678%2C0%2C0%2C1-28.468%2C28.468c-5.286%2C2.054-13.228%2C4.5-27.853%2C5.165-15.814.722-20.558.875-60.613.875s-44.8-.153-60.613-.875c-14.625-.666-22.567-3.11-27.853-5.164a46.466%2C46.466%2C0%2C0%2C1-17.247-11.221%2C46.477%2C46.477%2C0%2C0%2C1-11.221-17.247c-2.054-5.286-4.5-13.228-5.165-27.853-.722-15.817-.875-20.561-.875-60.613s.153-44.8.875-60.613c.667-14.625%2C3.11-22.567%2C5.165-27.853A46.476%2C46.476%2C0%2C0%2C1%2C44.287%2C44.287%2C46.476%2C46.476%2C0%2C0%2C1%2C61.534%2C33.066c5.286-2.054%2C13.228-4.5%2C27.853-5.165%2C15.817-.722%2C20.561-.875%2C60.613-.875%22%2F%3E%20%3Cpath%20id%3D%22%E3%83%91%E3%82%B9_2%22%20data-name%3D%22%E3%83%91%E3%82%B9%202%22%20d%3D%22M240.435%2C264.356a50%2C50%2C0%2C1%2C1%2C50-50A50%2C50%2C0%2C0%2C1%2C240.435%2C264.356Zm0-127.027a77.027%2C77.027%2C0%2C1%2C0%2C77.027%2C77.027%2C77.027%2C77.027%2C0%2C0%2C0-77.027-77.027m98.07-3.043a18%2C18%2C0%2C1%2C1-18-18%2C18%2C18%2C0%2C0%2C1%2C18%2C18%22%20transform%3D%22translate(-90.435%20-64.356)%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20id%3D%22Instagram-Glyph-Black-Logo.wine%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22300%22%20viewBox%3D%220%200%20300%20300%22%3E%20%3Cpath%20id%3D%22%E3%83%91%E3%82%B9_1%22%20data-name%3D%22%E3%83%91%E3%82%B9%201%22%20d%3D%22M150%2C0c-40.738%2C0-45.846.173-61.845.9-15.966.728-26.87%2C3.264-36.411%2C6.972a73.527%2C73.527%2C0%2C0%2C0-26.568%2C17.3%2C73.518%2C73.518%2C0%2C0%2C0-17.3%2C26.569C4.166%2C61.285%2C1.631%2C72.189.9%2C88.155c-.73%2C16-.9%2C21.108-.9%2C61.845s.172%2C45.845.9%2C61.845c.729%2C15.966%2C3.264%2C26.87%2C6.973%2C36.411a73.538%2C73.538%2C0%2C0%2C0%2C17.3%2C26.569%2C73.531%2C73.531%2C0%2C0%2C0%2C26.568%2C17.3c9.541%2C3.707%2C20.445%2C6.243%2C36.411%2C6.972%2C16%2C.73%2C21.108.9%2C61.845.9s45.845-.173%2C61.845-.9c15.966-.728%2C26.87-3.264%2C36.411-6.972a76.7%2C76.7%2C0%2C0%2C0%2C43.87-43.87c3.707-9.541%2C6.243-20.445%2C6.972-36.411.73-16%2C.9-21.108.9-61.845s-.173-45.846-.9-61.845c-.728-15.966-3.264-26.87-6.972-36.411a73.53%2C73.53%2C0%2C0%2C0-17.3-26.569%2C73.538%2C73.538%2C0%2C0%2C0-26.569-17.3C238.715%2C4.167%2C227.811%2C1.631%2C211.845.9%2C195.846.173%2C190.737%2C0%2C150%2C0Zm0%2C27.027c40.051%2C0%2C44.8.153%2C60.612.875%2C14.625.667%2C22.567%2C3.11%2C27.853%2C5.165a46.47%2C46.47%2C0%2C0%2C1%2C17.247%2C11.221%2C46.477%2C46.477%2C0%2C0%2C1%2C11.221%2C17.247c2.054%2C5.286%2C4.5%2C13.228%2C5.165%2C27.853.722%2C15.817.875%2C20.561.875%2C60.613s-.153%2C44.8-.875%2C60.613c-.667%2C14.625-3.11%2C22.567-5.165%2C27.853a49.678%2C49.678%2C0%2C0%2C1-28.468%2C28.468c-5.286%2C2.054-13.228%2C4.5-27.853%2C5.165-15.814.722-20.558.875-60.613.875s-44.8-.153-60.613-.875c-14.625-.666-22.567-3.11-27.853-5.164a46.466%2C46.466%2C0%2C0%2C1-17.247-11.221%2C46.477%2C46.477%2C0%2C0%2C1-11.221-17.247c-2.054-5.286-4.5-13.228-5.165-27.853-.722-15.817-.875-20.561-.875-60.613s.153-44.8.875-60.613c.667-14.625%2C3.11-22.567%2C5.165-27.853A46.476%2C46.476%2C0%2C0%2C1%2C44.287%2C44.287%2C46.476%2C46.476%2C0%2C0%2C1%2C61.534%2C33.066c5.286-2.054%2C13.228-4.5%2C27.853-5.165%2C15.817-.722%2C20.561-.875%2C60.613-.875%22%2F%3E%20%3Cpath%20id%3D%22%E3%83%91%E3%82%B9_2%22%20data-name%3D%22%E3%83%91%E3%82%B9%202%22%20d%3D%22M240.435%2C264.356a50%2C50%2C0%2C1%2C1%2C50-50A50%2C50%2C0%2C0%2C1%2C240.435%2C264.356Zm0-127.027a77.027%2C77.027%2C0%2C1%2C0%2C77.027%2C77.027%2C77.027%2C77.027%2C0%2C0%2C0-77.027-77.027m98.07-3.043a18%2C18%2C0%2C1%2C1-18-18%2C18%2C18%2C0%2C0%2C1%2C18%2C18%22%20transform%3D%22translate(-90.435%20-64.356)%22%2F%3E%3C%2Fsvg%3E");
}

スタイル修正 : style.css 3023行目付近

@media screen and (min-width: 46.25em) {
    
    ~ 省略 ~

    .sns li {
        margin-left: 1.071em;
    }

    .sns li a {
        font-size: 2.143em;
    }
}   
@media screen and (min-width: 46.25em) {
    
    ~ 省略 ~

    .sns li {
        margin-left: 1.071em;
    }



    .sns li i::before {
        width: 2.143em;
        height: 2.143em;
    }
}

ベストセラーウィジェットの商品タグのレイアウト崩れ修正

スタイル修正 : style.css 1794行目付近

/* -- opt-tag -- */
.opt-tag {
    margin: .833em 0;
    font-size: 12px;
}

.opt-tag li {
    display: inline-block;

    margin: 2px 0;
    padding: 0 5px;
    border-width: 1px;
    border-style: solid;
    background-color: #fff;
    font-size: 10px;
    line-height: 18px;
}
/* -- opt-tag -- */
.opt-tag {
    margin: .833em 0;
    font-size: 12px;
}

.opt-tag li {
    display: inline-block;
    width: auto;
    margin: 2px 0;
    padding: 0 5px;
    border-width: 1px;
    border-style: solid;
    background-color: #fff;
    font-size: 10px;
    line-height: 18px;
}

【SKU Select】商品詳細ページで業務パック割引の内訳が表示されない不具合を修正

WCEX SKU Select 専用の業務パック割引を表示する関数を追加しました。

テンプレート修正 : inc/front-customized.php 184行目付近

<form action="<?php echo esc_url( USCES_CART_URL ); ?>" method="post">
    <div class="skuform" id="skuform_regular">
        <div class="inner cf">
            <div class="right">
                <?php wcex_auto_delivery_sku_select_form(); ?>

                <?php if ( usces_is_options() ) : ?>

                    ~ 省略 ~
<form action="<?php echo esc_url( USCES_CART_URL ); ?>" method="post">
    <div class="skuform" id="skuform_regular">
        <div class="inner cf">
            <div class="right">
                <?php
                wcex_auto_delivery_sku_select_form();
                wcex_sku_select_the_itemGpExp( '', true );
                ?>

                <?php if ( usces_is_options() ) : ?>

                    ~ 省略 ~

テンプレート修正 : wc_templates/wc_sku_select.php 98行目付近

<form action="<?php echo esc_url( USCES_CART_URL ); ?>" method="post">

    <div class="skuform" id="skuform">

        <div class="inner cf">

            <div class="right">

                <?php wcex_sku_select_form(); ?>


                <?php if ( usces_is_options() ) : ?>

                    ~ 省略 ~
<form action="<?php echo esc_url( USCES_CART_URL ); ?>" method="post">

    <div class="skuform" id="skuform">

        <div class="inner cf">

            <div class="right">

                <?php
                wcex_sku_select_form();
                wcex_sku_select_the_itemGpExp();
                ?>


                <?php if ( usces_is_options() ) : ?>

                    ~ 省略 ~

テンプレート修正 : wc_templates/wc_sku_select_service.php 95行目付近

<form action="<?php echo esc_url( USCES_CART_URL ); ?>" method="post">

    <div class="skuform" id="skuform">

        <div class="inner cf">

            <div class="right">

                <?php wcex_sku_select_form(); ?>


                <?php if ( usces_is_options() ) : ?>

                    ~ 省略 ~
<form action="<?php echo esc_url( USCES_CART_URL ); ?>" method="post">

    <div class="skuform" id="skuform">

        <div class="inner cf">

            <div class="right">

                <?php
                wcex_sku_select_form();
                wcex_sku_select_the_itemGpExp();
                ?>


                <?php if ( usces_is_options() ) : ?>

                    ~ 省略 ~

CSS追加 : auto_delivery.css

#wc_regular .itemGpExp dt,
#wc_regular .itemGpExp dd {
    width: auto;
}

【SKU Select】「単位」を表示する

WCEX SKU Select 1.4.5 より「単位」が動的に表示されるようになりますが、テンプレート側の修正も必要です。

テンプレート修正 : inc/front-customized.php 221行目

「単位」をspanタグやpタグなどで囲って「class=”unit_regular”」を追加してください。 こちらは、WCEX SKU Select と WCEX Auto Delivery を併用した時に適用される箇所になります。
<div class="c-box">
    <span class="quantity"><?php esc_html_e( 'Quantity', 'usces' ); ?><?php wcad_the_itemQuant(); ?><?php usces_the_itemSkuUnit(); ?></span>
    <span class="cart-button"><?php wcad_the_itemSkuButton( '&#xf07a;&nbsp;&nbsp;' . __( 'Apply for a regular purchase', 'autodelivery' ), 0 ); ?></span>
</div>
<div class="c-box">
    <span class="quantity"><?php esc_html_e( 'Quantity', 'usces' ); ?><?php wcad_the_itemQuant(); ?></span><span class="unit_regular"><?php usces_the_itemSkuUnit(); ?></span>
    <span class="cart-button"><?php wcad_the_itemSkuButton( '&#xf07a;&nbsp;&nbsp;' . __( 'Apply for a regular purchase', 'autodelivery' ), 0 ); ?></span>
</div>

テンプレート修正 : wc_templates/wc_sku_select_service.php 141行目

「単位」をspanタグやpタグなどで囲って「class=”unit”」を追加してください。
<div class="c-box">
    <span class="quantity"><?php esc_html_e( 'Quantity', 'usces' ); ?><?php usces_the_itemQuant(); ?><?php usces_the_itemSkuUnit(); ?></span>
    <span class="cart-button"><?php usces_the_itemSkuButton( wcct_get_options( 'cart_button' ), 0 ); ?></span>
</div>
<div class="c-box">
    <span class="quantity"><?php esc_html_e( 'Quantity', 'usces' ); ?><?php usces_the_itemQuant(); ?></span><span class="unit"><?php usces_the_itemSkuUnit(); ?></span>
    <span class="cart-button"><?php usces_the_itemSkuButton( wcct_get_options( 'cart_button' ), 0 ); ?></span>
</div>

テンプレート修正 : wc_templates/wc_sku_select.php 145行目

「単位」をspanタグやpタグなどで囲って「class=”unit”」を追加してください。
<div class="c-box">
    <span class="quantity"><?php esc_html_e( 'Quantity', 'usces' ); ?><?php usces_the_itemQuant(); ?><?php usces_the_itemSkuUnit(); ?></span>
    <span class="cart-button"><?php usces_the_itemSkuButton( wcct_get_options( 'cart_button' ), 0 ); ?></span>
</div>
<div class="c-box">
    <span class="quantity"><?php esc_html_e( 'Quantity', 'usces' ); ?><?php usces_the_itemQuant(); ?></span><span class="unit"><?php usces_the_itemSkuUnit(); ?></span>
    <span class="cart-button"><?php usces_the_itemSkuButton( wcct_get_options( 'cart_button' ), 0 ); ?></span>
</div>

CSS追加 : usces_cart.css

/* -- .skuquantity -- */
.skuform .quantity {
    margin-right: 0;
}

【DL Seller】サービス商品ページに数量フィールド表示

スタイル修正 : wc_templates/wc_item_single_service.php 169行目付近

else :
    ?>
    <div class="c-box">
        
        <span class="cart-button"><?php usces_the_itemSkuButton( wcct_get_options( 'cart_button' ), 0 ); ?></span>
    </div>
<?php endif; ?>
else :
    ?>
    <div class="c-box">
        <span class="quantity"><?php esc_html_e( 'Quantity', 'usces' ); ?><?php usces_the_itemQuant(); ?></span><span class="unit"><?php usces_the_itemSkuUnit(); ?></span>
        <span class="cart-button"><?php usces_the_itemSkuButton( wcct_get_options( 'cart_button' ), 0 ); ?></span>
    </div>
<?php endif; ?>

【Auto Delivery】定期購入商品ページの表示方法を修正

テンプレート修正 : inc/front-customized.php

修正内容につきましては該当箇所が多岐に渡る為、内容を照らし合わせて修正をお願いいたします

カスタムメニューの「current-menu-parent」のスタイル修正

Welcart Basic 1.7.5 の影響でカスタムメニューの背景色・文字色のハイライトを調整しています。

CSS追加 : style.css

@media screen and (min-width: 62.5em) {

    ~省略~

    /* -- current setting -- */
    #site-navigation li.current-menu-item > a,
    #site-navigation li.current-menu-ancestor > a {
        background: none;
        color: #fff;
    }

    #site-navigation li.current-menu-item > a::before,
    #site-navigation li.current-menu-ancestor > a::before {
        top: 0;
    }

    #site-navigation li li.current-menu-ancestor > a,
    #site-navigation li li.current-menu-item > a {
        background: none;
    }

    #site-navigation li li.current-menu-ancestor a:hover,
    #site-navigation li li.current-menu-item a:hover {
        background: none;
    }

    ~省略~

}