質問 > フロント機能 > 非課税商品のサイト上表記について |
フロント機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
ajscrum |
投稿日時: 2023/9/15 17:22
対応状況: −−−
|
新米 ![]() ![]() 登録日: 2023/8/15 居住地: 投稿: 8 |
Re: 非課税商品のサイト上表記について 頂いた内容で実装できました。
ありがとうございます。 ただ、規格が複数ある商品は非課税表記になったのですが、 規格がないものは税込表記のままです。 この点改善方法はございますでしょうか。 |
h_tanaka |
投稿日時: 2023/9/15 17:26
対応状況: −−−
|
神 ![]() ![]() 登録日: 2016/7/22 居住地: 愛媛県 投稿: 1402 |
Re: 非課税商品のサイト上表記について 規格なし商品でも同じ判定で制御できると思うのですが、どのように実装されましたか?
|
ajscrum |
投稿日時: 2023/9/15 18:01
対応状況: −−−
|
新米 ![]() ![]() 登録日: 2023/8/15 居住地: 投稿: 8 |
Re: 非課税商品のサイト上表記について ご確認お願いします。
{# 通常価格 #} {% if Product.hasProductClass -%} <div class="ec-productRole__priceRegular"> {% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %} <span class="ec-productRole__priceRegularPrice">{{ '通常価格'|trans }}:<span class="price01-default">{{ Product.getPrice01IncTaxMin|price }}</span></span> <span class="ec-productRole__priceRegularTax">{{ '税込'|trans }}</span> {% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %} <span class="ec-productRole__priceRegularPrice">{{ '通常価格'|trans }}:<span class="price01-default">{{ Product.getPrice01IncTaxMin|price }}~ {{ Product.getPrice01IncTaxMax|price }}</span></span> <span class="ec-productRole__priceRegularTax">{{ '税込'|trans }}</span> {% endif %} </div> {% else %} {% if Product.getPrice01Max is not null %} <span class="ec-productRole__priceRegularPrice">{{ '通常価格'|trans }}:{{ Product.getPrice01IncTaxMin|price }}</span> <span class="ec-productRole__priceRegularTax">{{ '税込'|trans }}</span> {% endif %} {% endif %} {# 販売価格 #} <div class="ec-productRole__price"> {% if Product.hasProductClass -%} {% if Product.getPrice02IncTaxMin == Product.getPrice02Min %} <div class="ec-price"> <span class="ec-price__price price02-default">{{ Product.getPrice02Min|price }}{{ Product.ProductClasses[0].tax_rate }}</span> <span class="ec-price__tax">{{ '(非課税)'|trans }}</span> </div> {% else %} <div class="ec-price"> <span class="ec-price__price price02-default">{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}</span> <span class="ec-price__tax">{{ '(税込)'|trans }}</span> </div> {% endif %} {% else %} <div class="ec-price"> <span class="ec-price__price">{{ Product.getPrice02IncTaxMin|price }}</span> <span class="ec-price__tax">{{ '(税込)'|trans }}</span> </div> {% endif %} </div> |
h_tanaka |
投稿日時: 2023/9/15 18:03
対応状況: −−−
|
神 ![]() ![]() 登録日: 2016/7/22 居住地: 愛媛県 投稿: 1402 |
Re: 非課税商品のサイト上表記について 実装前のソースコードと変わっていないようですが...?
|
ajscrum |
投稿日時: 2023/9/15 18:07
対応状況: −−−
|
新米 ![]() ![]() 登録日: 2023/8/15 居住地: 投稿: 8 |
Re: 非課税商品のサイト上表記について 申し訳ございませんでした。
私も気づき、編集して新しいコード入力しました。 |
h_tanaka |
投稿日時: 2023/9/15 18:12
対応状況: −−−
|
神 ![]() ![]() 登録日: 2016/7/22 居住地: 愛媛県 投稿: 1402 |
Re: 非課税商品のサイト上表記について
です。
|
« 1 (2) |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |