SSブログ

EC-cube3 商品名を改行(タグ) [EC-cube3]

商品一覧の商品名と、商品詳細の商品名に改行を入れる方法。というか、タグを使えるようにする。

商品一覧のテンプレ
eccube-3.0.8/app/template/default/Product/detail.twig

<dt class="item_name">{{ Product.name }}</dt>を
<dt class="item_name">{{ include(template_from_string(Product.name|raw|nl2br)) }}</dt>に。

商品一覧の商品名<h3 class="item_name">{{  Product.name }}・・・のを所を
<h3 class="item_name">{{ include(template_from_string(Product.name|raw|nl2br) }}</h3>に。

現在のカゴの中
<a target="_blank" href="{{ url('product_detail', {id : Product.id} ) }}">{{ Product.name }}</a>を
<a target="_blank" href="{{ url('product_detail', {id : Product.id} ) }}">{{ include(template_from_string(Product.name|raw|nl2br)) }}</a>に。

商品の購入の
<dt class="item_name text-default">{{ orderDetail.productName }}の部分を<dt class="item_name text-default">{{ include(template_from_string(orderDetail.productName|raw|nl2br)) }}に


nice!(0)  コメント(0) 
共通テーマ:パソコン・インターネット

nice! 0

コメント 0

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。