app/template/default/Cart/index.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'cart_page' %}
  10. {% block main %}
  11.     <!--wrapper start-->
  12. <div id="wrapper" class="clearfix">
  13.     <div id="one_column">
  14. <!--left_column start-->
  15.         <div id="left_column_mod">
  16. <!--glo start-->
  17.             <ul id="glo" class="b5">
  18.                 <li><a href="{{ url('cart')}}"><span class="white">01</span>&nbsp;&nbsp;資料請求リストを見る</a></li>
  19.                 <li><a href="{{ url('abouts')}}"><span class="white">02</span>&nbsp;&nbsp;当サイトについて</a></li>
  20.                 <li><a href="{{ url('contact')}}"><span class="white">03</span>&nbsp;&nbsp;お問い合わせ</a></li>
  21.             </ul>
  22. <!--/glo end-->
  23.         </div>
  24. <!--/left_column end-->
  25. <!--right_column start-->
  26.         <div id="right_column_cart">
  27.             <h3 style="color:black;width:750px;">現在の資料請求リスト</h3>
  28.             <div class="inner" style="width:740px;">
  29.                 {% if Carts != null %}
  30.                 <form name="form1" id="form1" method="post" action="/cart/index.php">
  31.                 <input type="hidden" name="mode" value="confirm" />
  32.                 <input type="hidden" name="transactionid" value="" />
  33.                 <input type="hidden" name="cart_no" value="" />
  34.                     <table width="100%"  border="0" cellspacing="1" cellpadding="0" class="table_padding bg_l_brown clear" summary="現在のカゴの中">
  35.                         <tr>
  36.                             <th class="bg_cream" style="width:100px;">削除</th>
  37.                             <th class="bg_cream" style="width:250px;">物件写真</th>
  38.                             <th class="bg_cream">物件名称</th>
  39.                         </tr>
  40.                         {% for CartIndex,Cart in Carts %}
  41.                             {% for CartItem in Cart.CartItems %}
  42.                                 {% set ProductClass = CartItem.ProductClass %}
  43.                                 {% set Product = ProductClass.Product %}
  44.                                 <tr>
  45.                                     <td class="bg_white orange align_center">
  46.                                         <a href="{{ url('cart_handle_item', {'operation': 'remove', 'productClassId': ProductClass.id }) }}" {{ csrf_token_for_anchor() }} class="ec-icon" data-method="put" data-message="カートから商品を削除してもよろしいですか?">
  47.                                             <p>削除</p>
  48.                                         </a>
  49.                                     </td>
  50.                                     <td class="bg_white align_center">
  51.                                         <a>
  52.                                             <img src="{{ asset(Product.main_image|no_image_product, 'save_image') }}" style="width:200px;height:150px" alt="" />
  53.                                         </a>
  54.                                     </td>
  55.                                     <td class="bg_white bold"><strong><a href="{{ url('product_detail', {'id': Product.id}) }}">{{Product.name}}</a></strong><br/></td>
  56.                                 </tr>
  57.                              {% endfor %}
  58.                         {% endfor %}
  59.                     </table>
  60.                     <p class="align_center orange t10 clear">上記内容でよろしければ「資料請求手続きへ」</p>
  61.                     <p class="align_center t10">
  62.                         <a href="{{ url('homepage')}}" onmouseover="chgImg('../html/user_data/assets/images/b_buy_h.gif','b_buy');" onmouseout="chgImg('../html/user_data/assets/images/b_buy.gif','b_buy');">
  63.                             <img src="../html/user_data/assets/images/b_buy.gif" width="114" height="21" alt="物件選択を続ける" name="b_buy" id="b_buy" />
  64.                         </a>&nbsp;&nbsp;
  65.                         <a href={{ url('shopping_nonmember') }} onmouseover="chgImgImageSubmit('../html/user_data/assets/images/b_carry_h.gif',this)" onmouseout="chgImgImageSubmit('../html/user_data/assets/images/b_carry.gif',this)" src="../html/user_data/assets/images/images/b_carry.gif" alt="資料請求へ" name="confirm" />
  66.                             <img src="../html/user_data/assets/images/b_carry.gif" alt="資料請求へ">
  67.                         </a>
  68.                     </p>
  69.                 </form>
  70.                 {% else %}
  71.                     <p class="t10 black bold">※ 現在カート内に商品はございません。</p>
  72.                 {% endif %}
  73.             </div>
  74.         </div>
  75. <!--/right_column end-->
  76.     </div>
  77. </div>
  78. <!--/wrapper end-->
  79. {% endblock %}