[Svn-src-all:901] [version-2_5-dev 19789] カートページのデザイン修正及び商品種別でのカート振り分け対応(一時)
yomoro
admin @ mail.ec-cube.net
2010年 12月 29日 (水) 17:13:17 JST
Subversion committed to /home/svn/open 19789
http://svn.ec-cube.net/open_trac/changeset/19789
┌────────────────────────────┐
│更新者 : yomoro │
│更新日時: 2010-12-29 17:13:17 +0900 (水, 29 12月 2010)│
└────────────────────────────┘
Log:
--------------------------------------------------------
カートページのデザイン修正及び商品種別でのカート振り分け対応(一時)
Changed: [U:修正,A:追加,D:削除]
--------------------------------------------------------
U branches/version-2_5-dev/data/Smarty/templates/sphone/cart/index.tpl
U branches/version-2_5-dev/html/sphone/user_data/packages/sphone/css/table.css
U branches/version-2_5-dev/html/sphone/user_data/packages/sphone/css/wreckage.css
変更: branches/version-2_5-dev/data/Smarty/templates/sphone/cart/index.tpl
===================================================================
--- branches/version-2_5-dev/data/Smarty/templates/sphone/cart/index.tpl 2010-12-29 07:51:40 UTC (rev 19788)
+++ branches/version-2_5-dev/data/Smarty/templates/sphone/cart/index.tpl 2010-12-29 08:13:17 UTC (rev 19789)
@@ -82,17 +82,14 @@
<input type="hidden" name="cartKey" value="<!--{$key}-->" />
<table summary="商品情報">
<tr>
- <th>削除</th>
<th>商品写真</th>
<th>商品名</th>
- <th>単価</th>
+ <th>価格</th>
<th>数量</th>
<th>小計</th>
</tr>
<!--{foreach from=$cartItems[$key] item=item}-->
<tr style="<!--{if $item.error}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->">
- <td><a href="?" onclick="fnModeSubmit('delete', 'cart_no', '<!--{$item.cart_no}-->'); return false;">削除</a>
- </td>
<td class="phototd">
<a
<!--{if $item.productsClass.main_image|strlen >= 1}-->
@@ -101,7 +98,8 @@
target="_blank"
<!--{/if}-->
>
- <img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&width=65&height=65" alt="<!--{$item.productsClass.name|h}-->" /></a>
+ <img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&width=40&height=40" alt="<!--{$item.productsClass.name|h}-->" /></a><br />
+<a href="?" onclick="fnModeSubmit('delete', 'cart_no', '<!--{$item.cart_no}-->'); return false;">削除</a>
</td>
<td><!--{* 商品名 *}--><strong><!--{$item.productsClass.name|h}--></strong><br />
<!--{if $item.productsClass.classcategory_name1 != ""}-->
@@ -111,42 +109,42 @@
<!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}-->
<!--{/if}-->
</td>
- <td class="pricetd">
+ <td>
<!--{$item.productsClass.price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->円
</td>
- <td id="quantity"><!--{$item.quantity}-->
- <ul id="quantity_level">
+ <td><!--{$item.quantity}-->
+ <br />
+<ul id="quantity_level">
<li><a href="?" onclick="fnModeSubmit('up','cart_no','<!--{$item.cart_no}-->'); return false"><img src="<!--{$TPL_DIR}-->img/button/btn_plus.gif" width="16" height="16" alt="+" /></a></li>
<li><a href="?" onclick="fnModeSubmit('down','cart_no','<!--{$item.cart_no}-->'); return false"><img src="<!--{$TPL_DIR}-->img/button/btn_minus.gif" width="16" height="16" alt="-" /></a></li>
- </ul>
- </td>
- <td class="pricetd"><!--{$item.total_inctax|number_format}-->円</td>
- </tr>
+ </ul></td>
+ <td><!--{$item.total_inctax|number_format}-->円</td>
+ </tr>
<!--{/foreach}-->
<tr>
- <th colspan="5" class="resulttd">小計</th>
- <td class="pricetd"><!--{$tpl_total_inctax[$key]|number_format}-->円</td>
+ <th colspan="3" class="resulttd">小計</th>
+ <td colspan="2" class="pricetd"><!--{$tpl_total_inctax[$key]|number_format}-->円</td>
</tr>
<tr>
- <th colspan="5" class="resulttd">合計</th>
- <td class="pricetd"><em><!--{$arrData.total-$arrData.deliv_fee|number_format}-->円</em></td>
+ <th colspan="3" class="resulttd">合計</th>
+ <td colspan="2" class="pricetd"><em><!--{$arrData.total-$arrData.deliv_fee|number_format}-->円</em></td>
</tr>
<!--{if $smarty.const.USE_POINT !== false}-->
<!--{if $arrData.birth_point > 0}-->
<tr>
- <th colspan="5" class="resulttd">お誕生月ポイント</th>
- <td class="pricetd"><!--{$arrData.birth_point|number_format}-->pt</td>
+ <th colspan="3" class="resulttd">お誕生月ポイント</th>
+ <td colspan="2" class="pricetd"><!--{$arrData.birth_point|number_format}-->pt</td>
</tr>
<!--{/if}-->
<tr>
- <th colspan="5" class="resulttd">今回加算ポイント</th>
- <td class="pricetd"><!--{$arrData.add_point|number_format}-->pt</td>
+ <th colspan="3" class="resulttd">今回加算ポイント</th>
+ <td colspan="2" class="pricetd"><!--{$arrData.add_point|number_format}-->pt</td>
</tr>
<!--{/if}-->
</table>
<div class="tblareabtn">
<!--{if strlen($tpl_error) == 0}-->
- <p>上記内容でよろしければ「購入手続きへ」ボタンをクリックしてください。</p>
+ <p>上記内容でよろしければ「購入手続きへ」ボタンをクリックしてください。</p>
<!--{/if}-->
<p>
@@ -158,8 +156,8 @@
<input type="hidden" name="cartKey" value="<!--{$key}-->" />
<input type="image" onmouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/button/btn_buystep_on.gif',this)" onmouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/button/btn_buystep.gif',this)" src="<!--{$TPL_DIR}-->img/button/btn_buystep.gif" width="130" height="30" alt="購入手続きへ" name="confirm" />
<!--{/if}-->
- </p>
- </div>
+ </p>
+ </div>
</form>
<!--{/foreach}-->
<!--{else}-->
変更: branches/version-2_5-dev/html/sphone/user_data/packages/sphone/css/table.css
===================================================================
--- branches/version-2_5-dev/html/sphone/user_data/packages/sphone/css/table.css 2010-12-29 07:51:40 UTC (rev 19788)
+++ branches/version-2_5-dev/html/sphone/user_data/packages/sphone/css/table.css 2010-12-29 08:13:17 UTC (rev 19789)
@@ -415,6 +415,11 @@
/* テーブル・カゴ
----------------------------------------------- */
+
+table[summary="商品情報"]{
+ font-size:60%;
+}
+
table[summary="商品情報"] tr:nth-child(even) td{
background-color: #ffffff;
}
@@ -429,12 +434,8 @@
vertical-align: middle;
max-width: 200px;
}
-table[summary="商品情報"] tr:nth-child(even) td:first-child{
-width: 38%;
-font-size: 13px;
-}
table[summary="商品情報"] tr:nth-child(even) td:last-child{
-width: 38%;
+width: 15%;
overflow: visible;
}
table[summary="商品情報"] ul,
@@ -447,7 +448,8 @@
}
table[summary="商品情報"] ul li a{
display: inline-block;
-margin: 7px;
+margin: 1px;
+padding:0;
}
table[summary="商品情報"] tr:nth-last-of-type(1) td,
table[summary="商品情報"] tr:nth-last-of-type(2) td,
変更: branches/version-2_5-dev/html/sphone/user_data/packages/sphone/css/wreckage.css
===================================================================
--- branches/version-2_5-dev/html/sphone/user_data/packages/sphone/css/wreckage.css 2010-12-29 07:51:40 UTC (rev 19788)
+++ branches/version-2_5-dev/html/sphone/user_data/packages/sphone/css/wreckage.css 2010-12-29 08:13:17 UTC (rev 19789)
@@ -19,7 +19,7 @@
vertical-align: baseline;
}
.phototd {
- width: 75px;
+ width: 60px;
text-align: center;
}
.centertd {
Svn-src-all メーリングリストの案内