Welcart Square 1.0.16 をリリースしました。
[更新内容]
-
税別価格での「総額表示」修正
Welcart Square 1.0.16では、2021年4月1日より義務化される商品の「総額表示」の修正をおこなっております。当サイトのマイページより最新のテーマをダウンロードしていただき、運営されている WordPress の管理画面よりアップデートを行ってください。
※ 税別価格で総額を表示させる場合には、Welcart のバージョンも 2.1.4 以降をご利用いただく必要がございます。また、親テーマの Welcart Basic も管理画面より最新バージョン(1.3.1 以降)にアップデートしてください。
アップデートが行えない場合
Welcart Square 本体をカスタマイズされている場合は、下記の修正内容をもとにテンプレート・CSS の修正をおこなってください。
「総額表示」のテンプレートとCSSの対応について
①トップページの商品一覧
挿入箇所: welcart_basic-square/front-page.php 85行目
usces_crform_the_itemPriceCr_taxincluded
82 < div class = "item-info-wrap" > 83 < div class = "itemname" >< a href="<?php the_permalink(); ?>" rel="bookmark"><? php usces_the_itemName(); ?></ a ></ div > 84 < div class = "itemprice" ><? php usces_the_firstPriceCr() . usces_guid_tax(); ?></ div > 85 <? php usces_crform_the_itemPriceCr_taxincluded(); ?> 86 </ div > <!-- item-info-box --> |
スタイルの追加
挿入箇所: welcart_basic-square/style.css 1076行目
1076/* ---- .tax_inc_block ---- */ 1077 .tax_inc_block { 1078 color: #333; 1079 font-size: 12px; 1080 text-align: right; 1081 margin-top: -2px; 1082 } 1083 .tax_inc_block em { 1084 margin-right: 3px; 1085 color: #333; 1086 } |
②商品一覧ページ
挿入箇所: welcart_basic-square/category.php 78行目
usces_crform_the_itemPriceCr_taxincluded
75 < div class = "item-info-wrap" > 76 < div class = "itemname" >< a href="<?php the_permalink(); ?>" rel="bookmark"><? php usces_the_itemName(); ?></ a ></ div > 77 < div class = "itemprice" ><? php usces_the_firstPriceCr() . usces_guid_tax(); ?></ div > 78 <? php usces_crform_the_itemPriceCr_taxincluded(); ?> 79 </ div > <!-- item-info-box --> |
③複合検索結果
挿入箇所: welcart_basic-square/wc_templates/wc_search_page.php 84行目
usces_crform_the_itemPriceCr_taxincluded
81 < div class = "item-info-wrap" > 82 < div class = "itemname" >< a href="<?php the_permalink(); ?>" rel="bookmark"><? php usces_the_itemName(); ?></ a ></ div > 83 < div class = "itemprice" ><? php usces_the_firstPriceCr() . usces_guid_tax(); ?></ div > 84 <? php usces_crform_the_itemPriceCr_taxincluded(); ?> 85 </ div > <!-- item-info-box --> |
④商品詳細ページ
1)通常物販
挿入箇所: welcart_basic-square/wc_templates/wc_item_single.php 121行目
usces_crform_the_itemPriceCr_taxincluded
116 < div class = "field_price" > 117 <? php if( usces_the_itemCprice('return') > 0 ) : ?> 118 < span class = "field_cprice" ><? php usces_the_itemCpriceCr(); ?></ span > 119 <? php endif; ?> 120 <? php usces_the_itemPriceCr(); ?><? php usces_guid_tax(); ?> 121 <? php usces_crform_the_itemPriceCr_taxincluded(); ?> 122 </ div > |
スタイルの追加
挿入箇所: welcart_basic-square/usces_cart.css 1265行目
1265 /* ---- .tax_inc_block ---- */ 1266 .item-info .tax_inc_block { 1267 margin: -2px 0 0; 1268 } |
2)SKU Select
挿入箇所: welcart_basic-square/wc_templates/wc_sku_select.php 120行目
wcex_sku_select_crform_the_itemPriceCr_taxincluded
115 < div class = "field_price" > 116 <? php if( usces_the_itemCprice('return') > 0 ) : ?> 117 < span class = "field_cprice ss_cprice" ><? php usces_the_itemCpriceCr(); ?></ span > 118 <? php endif; ?> 119 < span class = "sell_price ss_price" ><? php usces_the_itemPriceCr(); ?></ span ><? php usces_guid_tax(); ?> 120 <? php wcex_sku_select_crform_the_itemPriceCr_taxincluded(); ?> 121 </ div > |
3)SKU Select(サービス)
挿入箇所: welcart_basic-square/wc_templates/wc_sku_select_service.php 108行目
wcex_sku_select_crform_the_itemPriceCr_taxincluded
103 < div class = "field_price" > 104 <? php if( usces_the_itemCprice('return') > 0 ) : ?> 105 < span class = "field_cprice ss_cprice" ><? php usces_the_itemCpriceCr(); ?></ span > 106 <? php endif; ?> 107 < span class = "sell_price ss_price" ><? php usces_the_itemPriceCr(); ?></ span ><? php usces_guid_tax(); ?> 108 <? php wcex_sku_select_crform_the_itemPriceCr_taxincluded(); ?> 109 </ div > |
4)DL Seller(データ)
挿入箇所: welcart_basic-square/wc_templates/wc_item_single_data.php 118行目
usces_crform_the_itemPriceCr_taxincluded
103 < div class = "field_price" > 104 <? php if( usces_the_itemCprice('return') > 0 ) : ?> 105 < span class = "field_cprice" ><? php usces_the_itemCpriceCr(); ?></ span > 106 <? php endif; ?> 107 <? php usces_the_itemPriceCr(); ?><? php usces_guid_tax(); ?> 108 <? php usces_crform_the_itemPriceCr_taxincluded(); ?> 109 </ div > |
5)DL Seller(サービス)
挿入箇所: welcart_basic-square/wc_templates/wc_item_single_service.php 108行目
usces_crform_the_itemPriceCr_taxincluded
103 < div class = "field_price" > 104 <? php if( usces_the_itemCprice('return') > 0 ) : ?> 105 < span class = "field_cprice" ><? php usces_the_itemCpriceCr(); ?></ span > 106 <? php endif; ?> 107 <? php usces_the_itemPriceCr(); ?><? php usces_guid_tax(); ?> 108 <? php usces_crform_the_itemPriceCr_taxincluded(); ?> 109 </ div > |
6)通常物販 + Auto Delivery
挿入箇所: welcart_basic-square/inc/front-customized.php 64行目
wcad_crform_the_itemPriceCr_taxincluded
59 < div class = "field_price" > 60 <? php if( usces_the_itemCprice('return') > 0 ) : ?> 61 < span class = "field_cprice" ><? php usces_the_itemCpriceCr(); ?></ span > 62 <? php endif; ?> 63 <? php wcad_the_itemPriceCr(); ?><? php usces_guid_tax(); ?> 64 <? php wcad_crform_the_itemPriceCr_taxincluded(); ?> 65 </ div > |
スタイルの追加
挿入箇所: welcart_basic-square/auto_delivery.css 66行目
66 /* ---- .tax_inc_block ---- */ 67 #wc_regular .tax_inc_block { 68 margin-top: 0; 69 } |
7)SKU Select + Auto Delivery
挿入箇所: welcart_basic-square/inc/front-customized.php 163行目
wcex_sku_select_crform_the_itemRPriceCr_taxincluded
158 < div class = "field_price" > 159 <? php if( usces_the_itemCprice('return') > 0 ) : ?> 160 < span class = "field_cprice ss_cprice_regular" ><? php usces_the_itemCpriceCr(); ?></ span > 161 <? php endif; ?> 162 < span class = "sell_price ss_price_regular" ><? php wcad_the_itemPriceCr(); ?></ span ><? php usces_guid_tax(); ?> 163 <? php wcex_sku_select_crform_the_itemRPriceCr_taxincluded(); ?> 164 </ div > |
⑤「商品一覧」ウィジェット
挿入箇所: welcart_basic-square/inc/front-customized.php 592行目
usces_crform_the_itemPriceCr_taxincluded
590 $list .= '< div class = "item-info-wrap" >< div class = "inner" >' . "\n"; 591 $list .= '< div class = "itemname" >' . usces_the_itemName( 'return' ) . '</ div >' . "\n"; 592 $list .= '< div class = "itemprice" >' . usces_the_firstPriceCr( 'return' ) . usces_guid_tax( 'return' ) . '</ div >' . usces_crform_the_itemPriceCr_taxincluded( true, '', '', '', true, false, true, 'return' ) . "\n"; 593 $list .= get_welcart_basic_campaign_message() . "\n"; 594 $list .= '</ div ></ div >' . "\n"; |
⑥「ベストセラー」ウィジェット
スタイルの追加
挿入箇所: welcart_basic-square/style.css 820行目
820 /* ---- .widget .tax_inc_block ---- */ 821 .widget_welcart_bestseller .tax_inc_block { 822 width: 100%; 823 } |