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

Welcart Voll 1.4.3 をリリース

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

ヘッダー画像のリンク先設定が効かなくなってしまった不具合を修正

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

<?php if ( get_header_image() ) : ?>
<?php
if ( get_header_image() ) :
$headers = get_uploaded_header_images();
?>

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

<?php $headers = get_uploaded_header_images(); ?>
< 削除 >

テンプレート修正 : front-page.php 23行目〜34行目

// this code is refered to: http://frankiejarrett.com/get-an-attachment-id-by-url-in-wordpress/
// in order to get attachment id from image url.
$parse_url = explode( parse_url( WP_CONTENT_URL, PHP_URL_PATH ), $value['url'] );
$this_host = str_ireplace( 'www.', '', parse_url( home_url(), PHP_URL_HOST ) );
$file_host = str_ireplace( 'www.', '', parse_url( $value['url'], PHP_URL_HOST ) );
if ( ! isset( $parse_url[1] ) || empty( $parse_url[1] ) || ( $this_host !== $file_host ) ) {
return;
}
global $wpdb;
$img_id      = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->prefix}posts WHERE guid RLIKE %s;", $parse_url[1] ) );
$img_meta    = get_post( $img_id[0] );
$img_caption = $img_meta->post_excerpt;
$img_id      = $value['attachment_id'];
$img_width   = ( ! empty( $value['width'] ) ) ? ' width="' . $value['width'] . '"' : '';
$img_height  = ( ! empty( $value['height'] ) ) ? ' height="' . $value['height'] . '"' : '';
$img_meta    = get_post( $img_id );
$img_caption = ( ! empty( $img_meta->post_excerpt ) ) ? $img_meta->post_excerpt : '';

テンプレート修正 : front-page.php 37行目〜44行目

<?php if ( $img_meta->post_content && ( strpos( $img_meta->post_content, 'jpg' ) === false ) ) : ?>
<a href="<?php echo esc_html( $img_meta->post_content ); ?>">
<?php endif; ?>
<img src="<?php echo esc_attr( $value['url'] ); ?>">
<?php if ( $img_meta->post_content && ( strpos( $img_meta->post_content, 'jpg' ) === false ) ) : ?>
</a>
<?php endif; ?>
<?php if ( ! empty( $img_caption ) ) : ?>
<?php
if ( ! empty( $img_meta->post_content ) ) :
?>
<a href="<?php echo esc_url( $img_meta->post_content ); ?>">
<?php
endif;
?>
<img src="<?php echo esc_url( $value['url'] ); ?>"<?php echo esc_attr( $img_width ); ?><?php echo esc_attr( $img_height ); ?> alt="<?php echo esc_attr( $value['alt_text'] ); ?>" />
<?php
if ( ! empty( $img_meta->post_content ) ) :
?>
</a>
<?php
endif;
if ( ! empty( $img_caption ) ) :
?>

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

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

global $post;
global $post, $usces;

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

$html .= '<li class="stock">' . __( 'Few Stock', 'welcart_basic_voll' ) . '</li>' . "\n";
$html .= '<li class="stock">' . esc_attr( $usces->zaiko_status[1] ) . '</li>' . "\n";

会員ページのナビゲーションの構造変更

テンプレート修正 : wc_templates/member/wc_member_page.php 55行目

<li><?php do_action( 'usces_action_member_submenu_list' ); ?></li>
<?php do_action( 'usces_action_member_submenu_list' ); ?>

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

テンプレート修正 : header.php 185行目

<li class="fb"><a href="https://www.facebook.com/<?php wcct_options( 'facebook_id' ); ?>" target="_blank" rel="nofollow"><i class="fa fa-facebook"></i></a></li>
<li class="fb"><a href="https://www.facebook.com/<?php wcct_options( 'facebook_id' ); ?>" target="_blank" rel="nofollow"><i class="facebook-svg"></i></a></li>

テンプレート修正 : header.php 190行目

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

テンプレート修正 : header.php 195行目

<li class="insta"><a href="https://www.instagram.com/<?php wcct_options( 'instagram_id' ); ?>" target="_blank" rel="nofollow"><i class="fa fa-instagram"></i></a></li>
<li class="insta"><a href="https://www.instagram.com/<?php wcct_options( 'instagram_id' ); ?>" target="_blank" rel="nofollow"><i class="instagram-svg"></i></a></li>

CSS修正 : style.css 726〜729行目

.sns li a {
display: block;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
.sns li a {
display: block;
width: 40px;
height: 40px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}

CSS修正 : style.css 733〜735行目

.sns li i {
line-height: 40px;
}
.sns li i {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
}

CSS追加 : style.css 742行目以降

.sns li i::before {
content: "";
display: block;
width: 25px;
height: 25px;
mask-repeat: no-repeat;
mask-size: contain;
mask-position: center center;
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: contain;
-webkit-mask-position: center center;
background-color: #090909;
}

.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");
}

CSS追加 : style.css 2585行目以降

.sns li a {
width: 35px;
height: 35px;
}
.sns li i::before {
width: 20px;
height: 20px;
}

CSS修正 : style.css 2552〜2554行目

.sns li i {
line-height: 35px;
}
.sns li i {
width: 35px;
height: 35px;
}

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

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

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

<?php wcex_auto_delivery_sku_select_form(); ?>
<?php if ( usces_is_options() ) : ?>
<?php
wcex_auto_delivery_sku_select_form();
wcex_sku_select_the_itemGpExp( '', true );
if ( usces_is_options() ) :
?>

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

<?php wcex_sku_select_form(); ?>

<?php if ( usces_is_options() ) : ?>
<?php
wcex_sku_select_form();
wcex_sku_select_the_itemGpExp();

if ( usces_is_options() ) :
?>

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

<?php wcex_sku_select_form(); ?>

<?php if ( usces_is_options() ) : ?>
<?php
wcex_sku_select_form();
wcex_sku_select_the_itemGpExp();

if ( usces_is_options() ) :
?>

CSS追加 : auto_delivery.css

wc_regular .itemGpExp dt,
#wc_regular .itemGpExp dd {
    width: auto;
}[/php]
</div>

<div id="in-link9">
<p class="hl hl3">【SKU Select】「単位」を表示する</p>
WCEX SKU Select 1.4.5 より「単位」が動的に表示されるようになりますが、テンプレート側の修正も必要です。
<p class="mt-3"><span class="fc-red">テンプレート修正 </span>: inc/front-customized.php 233行目</p>
「単位」をspanタグやpタグなどで囲って「<b>class="unit_regular"</b>」を追加してください。
こちらは、WCEX SKU Select と WCEX Auto Delivery を併用した時に適用される箇所になります。
[php title="変更前" highlight="2"]<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>[/php]
[php title="変更後" highlight="2"]<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>[/php]
<p class="mt-3"><span class="fc-red">テンプレート修正 </span>: wc_templates/wc_sku_select_service.php 132行目</p>
「単位」をspanタグやpタグなどで囲って「<b>class="unit"</b>」を追加してください。
[php title="変更前" highlight="2"]<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>[/php]
[php title="変更後" highlight="2"]<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]
<p class="mt-3"><span class="fc-red">テンプレート修正 </span>: wc_templates/wc_sku_select.php 131行目</p>
「単位」をspanタグやpタグなどで囲って「<b>class="unit"</b>」を追加してください。
[php title="変更前" highlight="2"]<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>[/php]
[php title="変更後" highlight="2"]<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]
</div>

<div id="in-link6">
<p class="hl hl3">【Auto Delivery】定期購入商品ページの表示方法を修正</p>
<span class="fc-red">テンプレート修正 </span>: inc/front-customized.php<br>
修正内容につきましては該当箇所が多岐に渡る為、内容を照らし合わせて修正をお願いいたします
</div>

<div id="in-link7">
<p class="hl hl3">【DL Seller】サービス商品ページに数量フィールド表示</p>
<span class="fc-red">テンプレート追加 </span>: wc_templates/wc_item_single_service.php 170行目辺り<br>
[php title="変更前"]
<div class="c-box">
<span class="cart-button"><?php usces_the_itemSkuButton( wcct_get_options( 'cart_button' ), 0 ); ?></span>
</div>
[/php]
[php title="変更後" highlight="2"]
<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]
</div>

<div id="in-link8">
<p class="hl hl3">カスタムメニューの「current-menu-parent」のスタイル修正</p>
Welcart Basic 1.7.5 の影響でカスタムメニューの背景色・文字色のハイライトを調整しています。
<p><span class="fc-red">CSS修正 </span>: style.css 2650行目あたり</p>
[css title="修正前" highlight="5-7,16,18,21,24,35-37"]@media screen and (min-width: 62.5em) {

    ~省略~



    #site-navigation li a:hover::after {
        opacity: 1;
    }

    #site-navigation ul li,
    #site-navigation ul li:first-child {
        border: none;
    }

    #site-navigation ul li.current_page_item a,
    #site-navigation ul li.current-menu-parent a {
        background: #none;
    }

    #site-navigation ul li.current_page_item a::after,
    #site-navigation ul li.current-menu-parent a::after {
        top: 0;

    }

    #site-navigation ul li a {
        display: block;
        position: relative;
        margin: 0;
        padding: 1.25em;
        overflow: hidden;
    }

    #site-navigation ul li a:hover {
        background: none;
    }

    ~省略~

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

    ~省略~

    #site-navigation li a:hover::after,
    #site-navigation li.current-menu-item > a::after,
    #site-navigation li.current-menu-ancestor > a::after {
        opacity: 1;
    }

    #site-navigation ul li,
    #site-navigation ul li:first-child {
        border: none;
    }

    #site-navigation ul li.current-menu-item a,
    #site-navigation ul li.current-menu-parent a {
        background: #fff;
    }

    #site-navigation ul li.current-menu-item a::after,
    #site-navigation ul li.current-menu-parent a::after {
        top: 0;
        opacity: 1;
    }

    #site-navigation ul li a {
        display: block;
        position: relative;
        margin: 0;
        padding: 1.25em;
        overflow: hidden;
    }





    ~省略~

}

CSS修正 : style.css 2730行目あたり

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

    ~省略~

    #site-navigation ul ul li a,
    #site-navigation ul ul li:first-child a {
        margin: 0;
        padding: 1.0714em 1.4285em;
        color: inherit;
    }

    #site-navigation ul ul li a:hover {
        background-color: #fff;
    }

    #site-navigation ul li li a::before,
    #site-navigation ul li li a::after {
        display: none;
    }

    /* -- ul ul ul ^--*/
    #site-navigation ul ul ul {
        top: -2px;
        right: auto;
        left: 100%;
        width: 100%;
        padding: 0;
    }

    ~省略~

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

    ~省略~


    #site-navigation ul ul li a {
        margin: 0;
        padding: 1.0714em 1.4285em;
        color: inherit;
    }





    #site-navigation ul li li a::before,
    #site-navigation ul li li a::after {
        display: none;
    }

    /* -- ul ul ul ^--*/
    #site-navigation ul ul ul {
        top: -1px;
        right: auto;
        left: 100%;

        padding: 0;
    }

    ~省略~

}

テンプレート修正 : inc/theme-customizer.php 2106行目あたり

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

    ~省略~







    #site-navigation ul li a {
        color: <?php echo esc_attr( $mb_text ); ?>;
    }


    #site-navigation li a::after {
        background-color: <?php echo esc_attr( $mb_current ); ?>;
    }
















    ~省略~

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

    ~省略~

    #site-navigation ul ul,
    #site-navigation ul ul li {
        border-color: <?php echo esc_attr( $mb_bg ); ?>;
    }
    #site-navigation ul li a,
    #site-navigation li.current-menu-item > a,
    #site-navigation li.current-menu-ancestor > a {
        color: <?php echo esc_attr( $mb_text ); ?>;
    }
    #site-navigation ul li a::after,
    #site-navigation li.current-menu-item > a::after,
    #site-navigation li.current-menu-ancestor > a::after {
        background-color: <?php echo esc_attr( $mb_current ); ?>;
    }
    #site-navigation ul ul :hover > a,
    #site-navigation li a:hover {
        background-color: <?php echo esc_attr( $mb_current ); ?>;
        color: <?php echo esc_attr( $mb_text ); ?>;
    }
    #site-navigation li li.current-menu-ancestor > a,
    #site-navigation li li.current-menu-item > a {
        background-color: <?php echo esc_attr( $mb_text ); ?>;
        color: <?php echo esc_attr( $mb_current ); ?>;
    }
    #site-navigation li li.current-menu-ancestor a:hover,
    #site-navigation li li.current-menu-item li a:hover {
        background-color: <?php echo esc_attr( $mb_current ); ?>;
        color: <?php echo esc_attr( $mb_text ); ?>;
    }

    ~省略~

}

テンプレート修正 : inc/theme-customizer.php 2138行目あたり

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

    ~省略~

    #site-navigation ul ul,
    #site-navigation ul ul li,
    #site-navigation ul ul li:first-child{
        border-color: <?php echo esc_attr( $mb_bg ); ?>;
    }
    #site-navigation ul li.current_page_item a,
    #site-navigation ul li.current-menu-parent a {
        background-color: <?php echo esc_attr( $mb_current ); ?>;
    }
    #site-navigation ul ul li a,
    #site-navigation ul ul li:first-child a,
    #site-navigation ul li.current_page_item li a,
    #site-navigation ul li.current-menu-parent li a {
        color: <?php echo esc_attr( $mb_bg ); ?>;
        background-color: <?php echo esc_attr( $mb_text ); ?>;
    }
    #site-navigation ul ul li a:hover,
    #site-navigation ul ul li:first-child a:hover,
    #site-navigation ul li.current_page_item li a:hover,
    #site-navigation ul li.current-menu-parent li a:hover {
        color: <?php echo esc_attr( $mb_text ); ?>;
        background-color: <?php echo esc_attr( $mb_current ); ?>
    }

    ~省略~

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

~省略~

























~省略~

}