Changeset 19915


Ignore:
Timestamp:
2011/01/14 18:40:07 (13 years ago)
Author:
kotani
Message:

#754 モバイルサイト ポイント機能対応

Location:
branches/version-2_5-dev/data
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/mobile/cart/index.tpl

    r19845 r19915  
    2222 */ 
    2323*}--> 
    24 <!--▼CONTENTS--> 
    25 <!--▼MAIN ONTENTS--> 
    26 <div align="center"><font color="#000080">かご表示</font></div> 
    27 <!--{if $tpl_message != ""}--> 
    28     <!--{$tpl_message}--><br> 
     24<center>かご表示</center> 
     25 
     26<hr> 
     27 
     28<!--{* カゴの中に商品がある場合にのみ表示 *}--> 
     29<!--{if count($cartKeys) > 1}--> 
     30<font color="#FF0000"><!--{foreach from=$cartKeys item=key name=cartKey}--><!--{$arrProductType[$key]}--><!--{if !$smarty.foreach.cartKey.last}-->、<!--{/if}--><!--{/foreach}--> 
     31は同時購入できません。お手数ですが、個別に購入手続きをお願い致します。<br></font> 
    2932<!--{/if}--> 
     33 
     34<!--{if strlen($tpl_error) != 0}--> 
     35<font color="#FF0000"><!--{$tpl_error|h}--></font><br> 
     36<!--{/if}--> 
     37 
     38<!--{if strlen($tpl_message) != 0}--> 
     39<!--{$tpl_message|h|nl2br}--><br> 
     40<!--{/if}--> 
     41 
    3042<!--{if count($cartItems) > 0}--> 
    3143<!--{foreach from=$cartKeys item=key}--> 
     
    3547    <input type="hidden" name="cartKey" value="<!--{$key}-->"> 
    3648    <!--ご注文内容ここから--> 
    37     <hr> 
     49    <!--{if count($cartKeys) > 1 }--> 
     50    <hr> 
     51    <!--{$arrProductType[$key]}--> 
     52    <hr> 
     53    <!--{/if}--> 
    3854    <!--{foreach from=$cartItems[$key] item=item}--> 
    3955        <!--{* 商品名 *}--><!--{$item.productsClass.name|h}--><br> 
     
    5672    商品合計:<!--{$tpl_total_inctax[$key]|number_format}-->円<br> 
    5773    合計:<!--{$arrData[$key].total-$arrData[$key].deliv_fee|number_format}-->円<br> 
     74    <br> 
     75 
     76    <!--{if $arrInfo.free_rule > 0}--> 
     77    <!--{if $arrData[$key].deliv_fee > 0}--> 
     78        あと「<!--{$tpl_deliv_free[$key]|number_format}-->円」で送料無料です!!<br> 
     79    <!--{else}--> 
     80        現在、「送料無料」です!!<br> 
     81    <!--{/if}--> 
     82    <br> 
     83    <!--{/if}--> 
     84 
    5885    <!--{if $smarty.const.USE_POINT !== false}--> 
    59         <br> 
    6086    <!--{if $arrData[$key].birth_point > 0}--> 
    6187        お誕生月ポイント<br> 
    6288        <!--{$arrData[$key].birth_point|number_format}-->pt<br> 
    6389    <!--{/if}--> 
    64         今回加算ポイント<br> 
    65         <!--{$arrData[$key].add_point|number_format}-->pt<br> 
     90    今回加算ポイント<br> 
     91    <!--{$arrData[$key].add_point|number_format}-->pt<br> 
     92    <br> 
    6693    <!--{/if}--> 
    67     <br> 
     94     
    6895    <center><input type="submit" value="注文する"></center> 
    6996</form> 
    70 <!--{/foreach}--> 
     97 
    7198<!--{if $tpl_prev_url != ""}--> 
    7299    <a href="<!--{$tpl_prev_url}-->">[emoji:69]お買物を続ける</a> 
    73100<!--{/if}--> 
     101<!--{/foreach}--> 
    74102<!--{else}--> 
    75103    ※現在カート内に商品はございません。<br> 
    76104<!--{/if}--> 
    77 <!--▲CONTENTS--> 
    78 <!--▲MAIN CONTENTS--> 
    79 <!--▲CONTENTS--> 
     105 
     106<!--{if $smarty.const.USE_POINT !== false}--> 
     107<hr> 
     108<!--{if $tpl_login}--> 
     109<!--{$tpl_name|h}--> 様の、現在の所持ポイントは「<!--{$tpl_user_point|number_format|default:0}--> pt」です。<br> 
     110<!--{else}--> 
     111ポイント制度をご利用になられる場合は、会員登録後ログインしていだだきますようお願い致します。<br> 
     112<!--{/if}--> 
     113ポイントは商品購入時に1ptを<!--{$smarty.const.POINT_VALUE}-->円として使用することができます。<br> 
     114<!--{/if}--> 
    80115 
    81116<br> 
  • branches/version-2_5-dev/data/Smarty/templates/mobile/mail_templates/order_mail.tpl

    r19764 r19915  
    5353 
    5454<!--{/section}--> 
     55<!--{if $arrOrder.customer_id && $smarty.const.USE_POINT !== false}--> 
     56■ポイント情報 
     57<!--{* ご注文前のポイント {$tpl_user_point} pt *}--> 
     58ご使用ポイント:<!--{$arrOrder.use_point|number_format|default:0}--> pt 
     59加算ポイント:<!--{$arrOrder.add_point|number_format|default:0}--> pt 
     60保持ポイント:<!--{$arrCustomer.point|number_format|default:0}--> pt 
     61<!--{/if}--> 
  • branches/version-2_5-dev/data/Smarty/templates/mobile/mypage/index.tpl

    r19833 r19915  
    2828いつもご利用いただきありがとうございます。<br> 
    2929<br> 
     30<!--★現在のポイント★--> 
     31<!--{if $smarty.const.USE_POINT !== false}--> 
     32現在の所持ポイントは「<!--{$CustomerPoint|number_format|default:"0"|h}-->」Ptです。<br> 
     33<br> 
     34<!--{/if}--> 
     35 
    3036<a href="history.php" accesskey="1"><!--{1|numeric_emoji}-->購入履歴</a><br> 
    3137<a href="change.php" accesskey="2"><!--{2|numeric_emoji}-->登録内容変更</a><br> 
  • branches/version-2_5-dev/data/Smarty/templates/mobile/products/detail.tpl

    r19835 r19915  
    2222 */ 
    2323*}--> 
    24 <!--▼CONTENTS--> 
    25 <!--▼MAIN CONTENTS--> 
    26 <!--タイトルここから--> 
    27 <!--★商品名★--> 
    28 <div align="center"><!--{$arrProduct.name|h}--></div> 
     24<center><!--{$tpl_subtitle|h}--></center> 
    2925<hr> 
    30 <!--タイトルここまで--> 
    31 <!--詳細ここから--> 
     26 
     27<!--★商品画像★--> 
    3228<!--{if $smarty.get.image != ''}--> 
    33   <!--{assign var=key value="`$smarty.get.image`"}--> 
     29<!--{assign var=key value="`$smarty.get.image`"}--> 
    3430<!--{else}--> 
    35   <!--{assign var=key value="main_image"}--> 
     31<!--{assign var=key value="main_image"}--> 
    3632<!--{/if}--> 
    37 <img src="<!--{$arrFile[$key].filepath}-->"> 
     33<center><img src="<!--{$arrFile[$key].filepath}-->"></center> 
     34 
     35<!--★商品サブ画像★--> 
    3836<!--{if $subImageFlag == true}--> 
    3937<br>画像 
     
    5654  <!--{/if}--> 
    5755  <!--{/section}--> 
     56<br> 
    5857<!--{/if}--> 
    5958<br> 
     59 
    6060<!--{* オペビルダー用 *}--> 
    6161<!--{if "sfViewDetailOpe"|function_exists === TRUE}--> 
    6262<!--{include file=`$smarty.const.MODULE_REALDIR`mdl_opebuilder/detail_ope_mb_view.tpl}--> 
    6363<!--{/if}--> 
    64 <!--★詳細メインコメント★--> 
     64 
     65<!--★詳細メインコメント★--> 
    6566[emoji:76]<!--{$arrProduct.main_comment|nl2br_html}--><br> 
    6667<br> 
    67 <!--アイコン--> 
     68 
     69<!--★商品コード★--> 
     70商品コード: 
     71<!--{if $arrProduct.product_code_min == $arrProduct.product_code_max}--> 
     72<!--{$arrProduct.product_code_min|h}--> 
     73<!--{else}--> 
     74<!--{$arrProduct.product_code_min|h}-->~<!--{$arrProduct.product_code_max|h}--> 
     75<!--{/if}--> 
     76<br> 
     77 
    6878<!--★販売価格★--> 
    6979<font color="#FF0000"><!--{$smarty.const.SALE_PRICE_TITLE}-->(税込): 
     
    7383    <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--> 
    7484<!--{/if}--> 
    75 円</font><br/> 
     85円</font> 
     86<br/> 
     87 
     88<!--{if $arrProduct.price01_max > 0}--> 
    7689<!--★通常価格★--> 
    77 <!--{if $arrProduct.price01_max > 0}--> 
    7890<font color="#FF0000"><!--{$smarty.const.NORMAL_PRICE_TITLE}-->: 
    7991<!--{if $arrProduct.price01_min == $arrProduct.price01_max}--> 
     
    8294<!--{$arrProduct.price01_min|number_format}-->~<!--{$arrProduct.price01_max|number_format}--> 
    8395<!--{/if}--> 
    84 円</font><br> 
     96円</font> 
     97<br> 
    8598<!--{/if}--> 
     99 
     100<!--★ポイント★--> 
     101<!--{if $smarty.const.USE_POINT !== false}--> 
     102ポイント: 
     103<!--{if $arrProduct.price02_min == $arrProduct.price02_max}--> 
     104    <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}--> 
     105<!--{else}--> 
     106    <!--{if $arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id == $arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}--> 
     107        <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}--> 
     108    <!--{else}--> 
     109        <!--{$arrProduct.price02_min|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}-->~<!--{$arrProduct.price02_max|sfPrePoint:$arrProduct.point_rate:$smarty.const.POINT_RULE:$arrProduct.product_id}--> 
     110    <!--{/if}--> 
     111<!--{/if}--> 
     112Pt<br> 
     113<!--{/if}--> 
     114<br> 
     115 
     116<!--★関連カテゴリ★--> 
     117関連カテゴリ:<br> 
     118<!--{section name=r loop=$arrRelativeCat}--> 
     119<!--{section name=s loop=$arrRelativeCat[r]}--> 
     120<a href="<!--{$smarty.const.URL_PATH}-->products/list.php?category_id=<!--{$arrRelativeCat[r][s].category_id}-->"><!--{$arrRelativeCat[r][s].category_name}--></a> 
     121<!--{if !$smarty.section.s.last}--><!--{$smarty.const.SEPA_CATNAVI}--><!--{/if}--> 
     122<!--{/section}--> 
     123<br> 
     124<!--{/section}--> 
     125<br> 
     126 
    86127<form name="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|h}-->"> 
    87128    <input type="hidden" name="mode" value="select"> 
     
    94135<!--{/if}--> 
    95136</form> 
    96 <!--詳細ここまで--> 
    97 <!--▲CONTENTS--> 
    98137 
    99 <br> 
    100138<hr> 
    101139 
  • branches/version-2_5-dev/data/Smarty/templates/mobile/shopping/confirm.tpl

    r19897 r19915  
    4747【購入金額】<br> 
    4848商品合計:<!--{$tpl_total_inctax[$cartKey]|number_format}-->円<br> 
     49<!--{if $smarty.const.USE_POINT !== false}--> 
     50<!--{assign var=discount value=`$arrData.use_point*$smarty.const.POINT_VALUE`}--> 
     51ポイント値引き:-<!--{$discount|number_format|default:0}-->円<br> 
     52<!--{/if}--> 
    4953送料:<!--{$arrData.deliv_fee|number_format}-->円<br> 
    5054<!--{if $arrData.charge > 0}-->手数料:<!--{$arrData.charge|number_format}-->円<br><!--{/if}--> 
     
    5357 
    5458<br> 
     59 
     60<!--{* ログイン済みの会員のみ *}--> 
     61<!--{if $tpl_login == 1 && $smarty.const.USE_POINT !== false}--> 
     62【ポイント確認】<br> 
     63ご注文前のポイント:<!--{$tpl_user_point|number_format|default:0}-->Pt<br> 
     64ご使用ポイント:-<!--{$arrData.use_point|number_format|default:0}-->Pt<br> 
     65<!--{if $arrData.birth_point > 0}-->お誕生月ポイント:+<!--{$arrData.birth_point|number_format|default:0}-->Pt<br><!--{/if}--> 
     66今回加算予定のポイント:+<!--{$arrData.add_point|number_format|default:0}-->Pt<br> 
     67<!--{assign var=total_point value=`$tpl_user_point-$arrData.use_point+$arrData.add_point`}--> 
     68加算後のポイント:<!--{$total_point|number_format}-->Pt<br> 
     69 
     70<br> 
     71<!--{/if}--> 
    5572 
    5673<!--{* 販売方法判定(ダウンロード販売のみの場合はお届け先を表示しない) *}--> 
     
    88105<br> 
    89106 
     107<!--{if $arrData.message != ""}--> 
     108【その他お問い合わせ】<br> 
     109<!--{$arrData.message|h|nl2br}--><br> 
     110<!--{/if}--> 
     111 
     112<br> 
     113 
    90114<br> 
    91115 
     
    93117</form> 
    94118<form action="<!--{$smarty.const.MOBILE_SHOPPING_PAYMENT_URL_PATH}-->" method="post"> 
    95 <input type="hidden" name="mode" value="deliv_date"> 
     119<input type="hidden" name="mode" value=""> 
    96120<input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->"> 
    97 <input type="hidden" name="payment_id" value="<!--{$arrData.payment_id}-->"> 
    98 <input type="hidden" name="deliv_date" value="<!--{$arrData.deliv_date}-->"> 
    99 <input type="hidden" name="deliv_time_id" value="<!--{$arrData.deliv_time_id}-->"> 
    100 <!--{if $cartdown != 2}--> 
    101 <input type="hidden" name="mode" value="deliv_date"> 
    102 <!--{/if}--> 
    103121<center><input type="submit" value="戻る"></center> 
    104122</form> 
  • branches/version-2_5-dev/data/Smarty/templates/mobile/shopping/payment.tpl

    r19835 r19915  
    2222 */ 
    2323*}--> 
    24 <center>支払い方法指定</center> 
     24<center>お支払方法・お届け時間等の指定</center> 
    2525 
    2626<hr> 
    2727 
    2828<form method="post" action="?"> 
    29 <input type="hidden" name="mode" value="deliv_date"> 
     29<input type="hidden" name="mode" value="confirm"> 
    3030<input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->"> 
    31 <input type="hidden" name="deliv_date" value="<!--{$arrForm.deliv_date.value}-->"> 
    32 <input type="hidden" name="deliv_time_id" value="<!--{$arrForm.deliv_time_id.value}-->"> 
    33 <!--<input type="hidden" name="message" value="">--> 
    34 <!--{if $tpl_login == 1}--> 
    35 <!--<input type="hidden" name="point_check" value="2">--> 
    36 <!--{/if}--> 
    37  
     31■お支払方法 <font color="#FF0000">*</font><br> 
    3832<!--{assign var=key value="payment_id"}--> 
    3933<!--{if $arrErr[$key] != ""}--> 
    40 <font color="red"><!--{$arrErr[$key]}--></font> 
     34<font color="#FF0000"><!--{$arrErr[$key]}--></font> 
    4135<!--{/if}--> 
    4236<!--{section name=cnt loop=$arrPayment}--> 
     
    4539<br> 
    4640<!--{/section}--> 
     41<br> 
     42 
     43■お届け日<br> 
     44<!--{assign var=key value="deliv_date"}--> 
     45<!--{if $arrErr[$key] != ""}--> 
     46<font color="#FF0000"><!--{$arrErr[$key]}--></font> 
     47<!--{/if}--> 
     48<!--{if $arrDelivDate}--> 
     49<select name="<!--{$key}-->"> 
     50<option value="">指定なし</option> 
     51<!--{html_options options=$arrDelivDate selected=$arrForm[$key].value}--> 
     52</select> 
     53<!--{else}--> 
     54ご指定頂けません。 
     55<!--{/if}--> 
     56<br> 
     57<br> 
     58 
     59■お届け時間<br> 
     60<!--{assign var=key value="deliv_time_id"}--> 
     61<!--{if $arrErr[$key] != ""}--> 
     62<font color="#FF0000"><!--{$arrErr[$key]}--></font> 
     63<!--{/if}--> 
     64<select name="<!--{$key}-->"> 
     65<option value="">指定なし</option> 
     66<!--{html_options options=$arrDelivTime selected=$arrForm[$key].value}--> 
     67</select> 
     68<br> 
     69<br> 
     70 
     71■その他お問い合わせ<br> 
     72<!--{assign var=key value="message"}--> 
     73<!--{if $arrErr[$key] != ""}--> 
     74<font color="#FF0000"><!--{$arrErr[$key]}--></font> 
     75<!--{/if}--> 
     76<textarea cols="20" rows="2" name="<!--{$key}-->"><!--{$arrForm[$key].value|h}--></textarea> 
     77<br> 
     78<br> 
     79 
     80<!--{if $tpl_login == 1 && $smarty.const.USE_POINT !== false}--> 
     81■ポイント使用の指定<br> 
     821ポイントを<!--{$smarty.const.POINT_VALUE}-->円として使用する事ができます。<br> 
     83<br> 
     84<!--{$objCustomer->getValue('name01')|h}--> <!--{$objCustomer->getValue('name02')|h}-->様の、現在の所持ポイントは「<!--{$tpl_user_point|number_format|default:0}-->Pt」です。<br> 
     85<br> 
     86今回ご購入合計金額: <!--{$arrData.subtotal|number_format}-->円<br> 
     87(送料、手数料を含みません。)<br> 
     88<br> 
     89<input type="radio" name="point_check" value="1" <!--{$arrForm.point_check.value|sfGetChecked:1}-->>ポイントを使用する<br> 
     90<!--{assign var=key value="use_point"}--> 
     91<!--{if $arrErr[$key] != ""}--> 
     92<font color="#FF0000"><!--{$arrErr[$key]}--></font> 
     93<!--{/if}--> 
     94<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|default:$tpl_user_point}-->" maxlength="<!--{$arrForm[$key].length}-->" size="6">&nbsp;ポイントを使用する。<br> 
     95<input type="radio" name="point_check" value="2" <!--{$arrForm.point_check.value|sfGetChecked:2}-->>ポイントを使用しない<br> 
     96<br> 
     97<!--{/if}--> 
    4798 
    4899<center><input type="submit" value="次へ"></center> 
     100</form> 
     101 
     102<form action="<!--{$tpl_back_url|h}-->" method="get"> 
    49103<center><input type="submit" name="return" value="戻る"></center> 
    50104</form> 
    51105 
    52 <br> 
    53106<hr> 
    54107 
  • branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage.php

    r19908 r19915  
    209209            $this->CustomerName1 = $objCustomer->getvalue('name01'); 
    210210            $this->CustomerName2 = $objCustomer->getvalue('name02'); 
     211            $this->CustomerPoint = $objCustomer->getvalue('point'); 
    211212        } 
    212213    } 
  • branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php

    r19908 r19915  
    139139        if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
    140140 
    141         // 戻るボタンの処理(モバイル) 
    142         if (Net_UserAgent_Mobile::isMobile() === true) { 
    143             if (!empty($_POST['return'])) { 
    144                 switch ($_POST['mode']) { 
    145                 case 'confirm': 
    146                     $_POST['mode'] = 'payment'; 
    147                     break; 
    148                 default: 
    149                     // 正常な推移であることを記録しておく 
    150                     $objSiteSess->setRegistFlag(); 
    151                     if ($this->cartdown == 2) { 
    152                         // ダウンロード商品のみの場合はカート画面へ戻る 
    153                         SC_Response_Ex::sendRedirect(CART_URL_PATH); 
    154                     } else { 
    155                         SC_Response_Ex::sendRedirect(SHOPPING_URL); 
    156                     } 
    157                     exit; 
    158                 } 
    159             } 
    160         } 
    161  
    162141        switch($_POST['mode']) { 
    163         // お届け日時指定(モバイル) 
    164         case 'deliv_date': 
    165             // 入力値の変換 
    166             $this->objFormParam->convParam(); 
    167             $this->arrErr = $this->lfCheckError($this->arrData, $this->arrPayment); 
    168             if (!isset($this->arrErr['payment_id'])) { 
    169                 // 支払い方法の入力エラーなし 
    170                 $this->tpl_mainpage = 'shopping/deliv_date.tpl'; 
    171                 $this->tpl_title = "お届け日時指定"; 
    172                 break; 
    173             } else { 
    174                 // ユーザユニークIDの取得 
    175                 $uniqid = $objSiteSess->getUniqId(); 
    176                 // 受注一時テーブルからの情報を格納 
    177                 $this->lfSetOrderTempData($uniqid); 
    178             } 
    179             break; 
    180142        case 'confirm': 
    181143            // 入力値の変換 
     
    198160                // 受注一時テーブルからの情報を格納 
    199161                $this->lfSetOrderTempData($uniqid); 
    200                 if (Net_UserAgent_Mobile::isMobile() === true && !isset($this->arrErr['payment_id'])) { 
    201                     // 支払い方法の入力エラーなし 
    202                     $this->tpl_mainpage = 'shopping/deliv_date.tpl'; 
    203                     $this->tpl_title = "お届け日時指定"; 
    204                 } 
    205162            } 
    206163            break; 
     
    244201        $this->objFormParam->addParam("お支払い方法", "payment_id", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
    245202        $this->objFormParam->addParam("ポイント", "use_point", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK", "ZERO_START")); 
    246         $this->objFormParam->addParam("ご質問", "message", LTEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
     203        $this->objFormParam->addParam("その他お問い合わせ", "message", LTEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
    247204        $this->objFormParam->addParam("ポイントを使用する", "point_check", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"), '2'); 
    248205 
Note: See TracChangeset for help on using the changeset viewer.