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

Welcart Basic 1.3.1 をリリース

Welcart Basic 1.3.1 をリリースしました。


[更新内容]

  • 税別価格での「総額表示」の修正

    Welcart Basic 1.3.1では、2021年4月1日より義務化される商品の「総額表示」の修正をおこなっております。まずは、管理画面 > テーマから最新版にアップデートしてください。
    ※ 税別価格で総額を表示させる場合には、Welcart のバージョンも 2.1.4 以降をご利用いただく必要がございます。

アップデートが行えない場合

Welcart Basic 本体をカスタマイズされている場合など、アップデートが行えない場合は、下記の修正内容をもとにテンプレート・CSS の修正を行ってください。

商品詳細ページの表示

売価の税込価格表示テンプレートタグの追加

usces_crform_the_itemPriceCr_taxincluded

タグ追加
welcart_basic/wc_templates/wc_item_single.php 116行目
welcart_basic/wc_templates/wc_item_single_data.php 111行目
welcart_basic/wc_templates/wc_item_single_service.php 104行目

<div class="field_price">
<?php if( usces_the_itemCprice('return') > 0 ) : ?>
    <span class="field_cprice"><?php usces_the_itemCpriceCr(); ?></span>
<?php endif; ?>
    <?php usces_the_itemPriceCr(); ?><?php usces_guid_tax(); ?>
</div>
<?php usces_crform_the_itemPriceCr_taxincluded(); ?>

レイアウト調整

スタイル追加: usces_cart.css 108行目

.item-info .field_price em {
    font-size: .5em;
}
/* ---- .tax_inc_block ---- */
.item-info .tax_inc_block {
    clear: both;
    text-align: right;
    font-size: 12px;
}
.item-info .tax_inc_block em {
    margin-right: 3px;
    color: #262626;
}

スタイル追加: usces_cart.css 1608行目
@media screen and (min-width: 38.75em) {} 内に追加

.item-info .zaikostatus,
.item-info .field_price {
    margin-bottom: .357143em;
    float: none;
}
/* ---- .tax_inc_block ---- */
.item-info .tax_inc_block {
    margin: -8px 0 10px;
    clear: both;
    text-align: right;
}

WCEX SKU Select の対応

売価の税込価格表示テンプレートタグの追加

wcex_sku_select_crform_the_itemPriceCr_taxincluded

タグ追加
welcart_basic/wc_templates/wc_sku_select.php 117行目
welcart_basic/wc_templates/wc_sku_select.php 103行目

<div class="field_price">
<?php if( usces_the_itemCprice('return') > 0 ) : ?>
    <span class="field_cprice ss_cprice"><?php usces_the_itemCpriceCr(); ?></span>
<?php endif; ?>
    <span class="sell_price ss_price"><?php usces_the_itemPriceCr(); ?></span><?php usces_guid_tax(); ?>
</div>
<?php wcex_sku_select_crform_the_itemPriceCr_taxincluded(); ?>

WCEX Auto Delivery の対応

売価の税込価格表示テンプレートタグの追加

wcad_crform_the_itemPriceCr_taxincluded

タグ追加
welcart_basic/inc/template-functions.php 150行目

<div class="field">
    <div class="zaikostatus"><?php _e('stock status', 'usces'); ?> : <?php usces_the_itemZaikoStatus(); ?></div>
    <div class="field_price">
    <?php if( usces_the_itemCprice('return') > 0 ) : ?>
        <span class="field_cprice"><?php usces_the_itemCpriceCr(); ?></span>
    <?php endif; ?>
        <?php wcad_the_itemPriceCr(); ?><?php usces_guid_tax(); ?>
    </div>
    <?php wcad_crform_the_itemPriceCr_taxincluded(); ?>
</div>

WCEX Auto Delivery + WCEX SKU Select の対応

売価の税込価格表示テンプレートタグの追加

wcex_sku_select_crform_the_itemRPriceCr_taxincluded

タグ追加
welcart_basic/inc/template-functions.php 242行目

<div class="field_price">
<?php if( usces_the_itemCprice('return') > 0 ) : ?>
    <span class="field_cprice ss_cprice_regular"><?php usces_the_itemCpriceCr(); ?></span>
<?php endif; ?>
    <span class="sell_price ss_price_regular"><?php wcad_the_itemPriceCr(); ?></span><?php usces_guid_tax(); ?>
</div>
<?php wcex_sku_select_crform_the_itemRPriceCr_taxincluded(); ?>

商品一覧

売価の税込価格表示テンプレートタグの追加

usces_crform_the_itemPriceCr_taxincluded

タグ追加
welcart_basic/front_page.php 37行目
welcart_basic/category.php 33行目
welcart_basic/search.php 28行目
welcart_basic/wc_templates/wc_search_page.php 61行目

<div class="itemimg">
    <a href="<?php the_permalink() ?>"><?php usces_the_itemImage(0, 300, 300); ?></a>
    <?php welcart_basic_campaign_message(); ?>
</div>
<div class="itemprice"><?php usces_the_firstPriceCr(); usces_guid_tax(); ?></div>
<?php usces_crform_the_itemPriceCr_taxincluded(); ?>
<?php if(! usces_have_zaiko_anyone() ) : ?>

レイアウト調整

スタイル追加: style.css 1124行目

/* ---- .tax_inc_block ---- */
.type-grid .tax_inc_block,
.front-il .tax_inc_block,
.search-li .tax_inc_block,
.assistance_item .tax_inc_block {
    margin-top: -2px;
    text-align: right;
    font-size: 12px;
}
.type-grid .tax_inc_block em,
.front-il .tax_inc_block em,
.search-li .tax_inc_block em,
.assistance_item .tax_inc_block em {
    margin-right: 3px;
    color: #262626;
}

ウィジェット

「Welcart 商品一覧」ウィジェット

売価の税込価格表示テンプレートタグの追加

usces_crform_the_itemPriceCr_taxincluded

タグ追加
welcart_basic/widget/item-list.php 36行目

$list .= '<div class="item-info-wrap"><div class="inner">' . "\n";
    $list .= '<div class="itemname">' . usces_the_itemName( 'return' ) . '</div>' . "\n";
    $list .= '<div class="itemprice">' . usces_the_firstPriceCr( 'return' ) . usces_guid_tax( 'return' ) . '</div>' . usces_crform_the_itemPriceCr_taxincluded( true, '', '', '', true, false, true, 'return' ) . get_welcart_basic_campaign_message() . "\n";
$list .= '</div></div>' . "\n";

レイアウト調整

スタイル追加: style.css 979行目

.widget_basic_item_list .itemprice {
    font-weight: bold;
    text-align: right;
}
.widget_basic_item_list .tax_inc_block {
    margin: -3px 0 0 0;
    padding-right: 7px;
    text-align: right;
    font-size: 12px;
}
.widget_basic_item_list .tax_inc_block em {
    margin-right: 3px;
    color: #262626;
}

「ベストセラー」ウィジェット

売価の税込価格表示テンプレートタグの追加

usces_crform_itemPriceCr_taxincluded

タグ追加
welcart_basic/inc/widget-customized.php 14行目

if( usces_have_zaiko_anyone( $post_id ) ) {
    $list .= '<div class="itemprice">' . usces_the_firstPriceCr( 'return', $post ) . usces_guid_tax('return') . '</div>'."\n";
    $list .= usces_crform_itemPriceCr_taxincluded( $post_id );
} else {
    $skus = $usces->get_skus( $post_id );
    $num = $skus[0]['stock'];
    $list .= '<div class="itemsoldout">'.$usces->zaiko_status[$num].'</div>'."\n";
}

レイアウト調整

スタイル追加: style.css 670行目

.widget_welcart_bestseller .itemsoldout {
    color: #e00;
    font-size: .85714em;
    font-weight: bold;
    width: 70%;
    text-align: right;
}
/* ---- .tax_inc_block ---- */
.widget_welcart_bestseller .tax_inc_block {
    margin: -3px 0 0 0;
    padding-right: 7px;
    text-align: right;
    font-size: 12px;
    width: 70%;
}
.widget_welcart_bestseller .tax_inc_block em {
    margin-right: 3px;
    color: #262626;
}