Ignore:
Timestamp:
2013/01/28 22:45:57 (11 years ago)
Author:
Seasoft
Message:

#2070 (ダウンロード商品購入 以前の注文手続きで入力したお届け先情報が保持される)

Location:
branches/version-2_12-dev/data
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/Smarty/templates/default/shopping/confirm.tpl

    r22457 r22458  
    174174 
    175175        <!--{* ▼お届け先 *}--> 
    176         <!--{* 販売方法判定(ダウンロード販売の場合はお届け先を表示しない) *}--> 
    177         <!--{if $cartKey != $smarty.const.PRODUCT_TYPE_DOWNLOAD}--> 
    178             <!--{foreach item=shippingItem from=$arrShipping name=shippingItem}--> 
    179                 <h3>お届け先<!--{if $is_multiple}--><!--{$smarty.foreach.shippingItem.iteration}--><!--{/if}--></h3> 
    180                 <!--{if $is_multiple}--> 
    181                     <table summary="ご注文内容確認"> 
    182                         <col width="10%" /> 
    183                         <col width="60%" /> 
    184                         <col width="20%" /> 
    185                         <col width="10%" /> 
     176        <!--{foreach item=shippingItem from=$arrShipping name=shippingItem}--> 
     177            <h3>お届け先<!--{if $is_multiple}--><!--{$smarty.foreach.shippingItem.iteration}--><!--{/if}--></h3> 
     178            <!--{if $is_multiple}--> 
     179                <table summary="ご注文内容確認"> 
     180                    <col width="10%" /> 
     181                    <col width="60%" /> 
     182                    <col width="20%" /> 
     183                    <col width="10%" /> 
     184                    <tr> 
     185                        <th scope="col">商品写真</th> 
     186                        <th scope="col">商品名</th> 
     187                        <th scope="col">単価</th> 
     188                        <th scope="col">数量</th> 
     189                        <!--{* XXX 購入小計と誤差が出るためコメントアウト 
     190                        <th scope="col">小計</th> 
     191                        *}--> 
     192                    </tr> 
     193                    <!--{foreach item=item from=$shippingItem.shipment_item}--> 
    186194                        <tr> 
    187                             <th scope="col">商品写真</th> 
    188                             <th scope="col">商品名</th> 
    189                             <th scope="col">単価</th> 
    190                             <th scope="col">数量</th> 
     195                            <td class="alignC"> 
     196                                <a 
     197                                    <!--{if $item.productsClass.main_image|strlen >= 1}--> href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$item.productsClass.main_image|sfNoImageMainList|h}-->" class="expansion" target="_blank" 
     198                                    <!--{/if}--> 
     199                                > 
     200                                    <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" alt="<!--{$item.productsClass.name|h}-->" /></a> 
     201                            </td> 
     202                            <td><!--{* 商品名 *}--><strong><!--{$item.productsClass.name|h}--></strong><br /> 
     203                                <!--{if $item.productsClass.classcategory_name1 != ""}--> 
     204                                    <!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--><br /> 
     205                                <!--{/if}--> 
     206                                <!--{if $item.productsClass.classcategory_name2 != ""}--> 
     207                                    <!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}--> 
     208                                <!--{/if}--> 
     209                            </td> 
     210                            <td class="alignR"> 
     211                                <!--{$item.price|sfCalcIncTax|number_format}-->円 
     212                            </td> 
     213                            <td class="alignC"><!--{$item.quantity}--></td> 
    191214                            <!--{* XXX 購入小計と誤差が出るためコメントアウト 
    192                             <th scope="col">小計</th> 
     215                            <td class="alignR"><!--{$item.total_inctax|number_format}-->円</td> 
    193216                            *}--> 
    194217                        </tr> 
    195                         <!--{foreach item=item from=$shippingItem.shipment_item}--> 
    196                             <tr> 
    197                                 <td class="alignC"> 
    198                                     <a 
    199                                         <!--{if $item.productsClass.main_image|strlen >= 1}--> href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$item.productsClass.main_image|sfNoImageMainList|h}-->" class="expansion" target="_blank" 
    200                                         <!--{/if}--> 
    201                                     > 
    202                                         <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" alt="<!--{$item.productsClass.name|h}-->" /></a> 
    203                                 </td> 
    204                                 <td><!--{* 商品名 *}--><strong><!--{$item.productsClass.name|h}--></strong><br /> 
    205                                     <!--{if $item.productsClass.classcategory_name1 != ""}--> 
    206                                         <!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--><br /> 
    207                                     <!--{/if}--> 
    208                                     <!--{if $item.productsClass.classcategory_name2 != ""}--> 
    209                                         <!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}--> 
    210                                     <!--{/if}--> 
    211                                 </td> 
    212                                 <td class="alignR"> 
    213                                     <!--{$item.price|sfCalcIncTax|number_format}-->円 
    214                                 </td> 
    215                                 <td class="alignC"><!--{$item.quantity}--></td> 
    216                                 <!--{* XXX 購入小計と誤差が出るためコメントアウト 
    217                                 <td class="alignR"><!--{$item.total_inctax|number_format}-->円</td> 
    218                                 *}--> 
    219                             </tr> 
    220                         <!--{/foreach}--> 
    221                     </table> 
    222                 <!--{/if}--> 
    223  
    224                 <table summary="お届け先確認" class="delivname"> 
    225                     <col width="30%" /> 
    226                     <col width="70%" /> 
    227                     <tbody> 
     218                    <!--{/foreach}--> 
     219                </table> 
     220            <!--{/if}--> 
     221 
     222            <table summary="お届け先確認" class="delivname"> 
     223                <col width="30%" /> 
     224                <col width="70%" /> 
     225                <tbody> 
     226                    <tr> 
     227                        <th scope="row">お名前</th> 
     228                        <td><!--{$shippingItem.shipping_name01|h}--> <!--{$shippingItem.shipping_name02|h}--></td> 
     229                    </tr> 
     230                    <tr> 
     231                        <th scope="row">お名前(フリガナ)</th> 
     232                        <td><!--{$shippingItem.shipping_kana01|h}--> <!--{$shippingItem.shipping_kana02|h}--></td> 
     233                    </tr> 
     234                    <tr> 
     235                        <th scope="row">郵便番号</th> 
     236                        <td>〒<!--{$shippingItem.shipping_zip01|h}-->-<!--{$shippingItem.shipping_zip02|h}--></td> 
     237                    </tr> 
     238                    <tr> 
     239                        <th scope="row">住所</th> 
     240                        <td><!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01|h}--><!--{$shippingItem.shipping_addr02|h}--></td> 
     241                    </tr> 
     242                    <tr> 
     243                        <th scope="row">電話番号</th> 
     244                        <td><!--{$shippingItem.shipping_tel01}-->-<!--{$shippingItem.shipping_tel02}-->-<!--{$shippingItem.shipping_tel03}--></td> 
     245                    </tr> 
     246                    <tr> 
     247                        <th scope="row">FAX番号</th> 
     248                        <td> 
     249                            <!--{if $shippingItem.shipping_fax01 > 0}--> 
     250                                <!--{$shippingItem.shipping_fax01}-->-<!--{$shippingItem.shipping_fax02}-->-<!--{$shippingItem.shipping_fax03}--> 
     251                            <!--{/if}--> 
     252                        </td> 
     253                    </tr> 
     254                    <!--{if $cartKey != $smarty.const.PRODUCT_TYPE_DOWNLOAD}--> 
    228255                        <tr> 
    229                             <th scope="row">お名前</th> 
    230                             <td><!--{$shippingItem.shipping_name01|h}--> <!--{$shippingItem.shipping_name02|h}--></td> 
     256                            <th scope="row">お届け日</th> 
     257                            <td><!--{$shippingItem.shipping_date|default:"指定なし"|h}--></td> 
    231258                        </tr> 
    232259                        <tr> 
    233                             <th scope="row">お名前(フリガナ)</th> 
    234                             <td><!--{$shippingItem.shipping_kana01|h}--> <!--{$shippingItem.shipping_kana02|h}--></td> 
     260                            <th scope="row">お届け時間</th> 
     261                            <td><!--{$shippingItem.shipping_time|default:"指定なし"|h}--></td> 
    235262                        </tr> 
    236                         <tr> 
    237                             <th scope="row">郵便番号</th> 
    238                             <td>〒<!--{$shippingItem.shipping_zip01|h}-->-<!--{$shippingItem.shipping_zip02|h}--></td> 
    239                         </tr> 
    240                         <tr> 
    241                             <th scope="row">住所</th> 
    242                             <td><!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01|h}--><!--{$shippingItem.shipping_addr02|h}--></td> 
    243                         </tr> 
    244                         <tr> 
    245                             <th scope="row">電話番号</th> 
    246                             <td><!--{$shippingItem.shipping_tel01}-->-<!--{$shippingItem.shipping_tel02}-->-<!--{$shippingItem.shipping_tel03}--></td> 
    247                         </tr> 
    248                         <tr> 
    249                             <th scope="row">FAX番号</th> 
    250                             <td> 
    251                                 <!--{if $shippingItem.shipping_fax01 > 0}--> 
    252                                     <!--{$shippingItem.shipping_fax01}-->-<!--{$shippingItem.shipping_fax02}-->-<!--{$shippingItem.shipping_fax03}--> 
    253                                 <!--{/if}--> 
    254                             </td> 
    255                         </tr> 
    256                         <!--{if $cartKey != $smarty.const.PRODUCT_TYPE_DOWNLOAD}--> 
    257                             <tr> 
    258                                 <th scope="row">お届け日</th> 
    259                                 <td><!--{$shippingItem.shipping_date|default:"指定なし"|h}--></td> 
    260                             </tr> 
    261                             <tr> 
    262                                 <th scope="row">お届け時間</th> 
    263                                 <td><!--{$shippingItem.shipping_time|default:"指定なし"|h}--></td> 
    264                             </tr> 
    265                         <!--{/if}--> 
    266                     </tbody> 
    267                 </table> 
    268             <!--{/foreach}--> 
    269         <!--{/if}--> 
     263                    <!--{/if}--> 
     264                </tbody> 
     265            </table> 
     266        <!--{/foreach}--> 
    270267        <!--{* ▲お届け先 *}--> 
    271268 
  • branches/version-2_12-dev/data/Smarty/templates/mobile/shopping/confirm.tpl

    r22206 r22458  
    6969        <!--{/if}--> 
    7070 
    71         <!--{* 販売方法判定(ダウンロード販売のみの場合はお届け先を表示しない) *}--> 
    72         <!--{if $cartKey != $smarty.const.PRODUCT_TYPE_DOWNLOAD}--> 
     71        <!--{if $arrShipping}--> 
    7372            【お届け先】<br> 
    7473            <!--{foreach item=shippingItem from=$arrShipping name=shippingItem}--> 
  • branches/version-2_12-dev/data/Smarty/templates/sphone/shopping/confirm.tpl

    r22206 r22458  
    169169 
    170170        <!--★お届け先の確認★--> 
    171         <!--{* 販売方法判定(ダウンロード販売のみの場合はお届け先を表示しない) *}--> 
    172         <!--{if $cartKey != $smarty.const.PRODUCT_TYPE_DOWNLOAD}--> 
     171        <!--{if $arrShipping}--> 
    173172            <section class="delivconfirm_area"> 
    174173                <h3 class="subtitle">お届け先</h3> 
  • branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping.php

    r22431 r22458  
    351351        switch ($product_type_id) { 
    352352            case PRODUCT_TYPE_DOWNLOAD: 
     353                $objPurchase->unsetAllShippingTemp(true); 
    353354                $objPurchase->saveOrderTemp($uniqid, array(), $objCustomer); 
    354355                $objSiteSess->setRegistFlag(); 
Note: See TracChangeset for help on using the changeset viewer.