- Timestamp:
- 2011/02/08 00:39:38 (16 years ago)
- bzr:base-revision:
- [email protected]
- bzr:committer:
- Kentaro Ohkouchi <[email protected]>
- bzr:file-ids:
data/Smarty/templates/default/shopping/confirm.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fshopping%2Fconfirm.tpl
data/Smarty/templates/default/shopping/payment.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fshopping%2Fpayment.tpl
data/Smarty/templates/mobile/shopping/confirm.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fmobile%2Fshopping%2Fconfirm.tpl
data/Smarty/templates/mobile/shopping/payment.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fmobile%2Fshopping%2Fpayment.tpl
data/Smarty/templates/mobile/shopping/select_deliv.tpl select_deliv.tpl-20110207152600-lm5bjhtot5ipow7j-1
data/Smarty/templates/sphone/shopping/confirm.tpl confirm.tpl-20101209134550-lsv02w9wikfx9cj3-35
data/Smarty/templates/sphone/shopping/payment.tpl payment.tpl-20101209134550-lsv02w9wikfx9cj3-40
data/class/SC_CartSession.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_CartSession.php
data/class/helper/SC_Helper_Purchase.php sc_helper_purchase.p-20101020100530-jyaoa7ch9pdfjqzp-1
data/class/pages/shopping/LC_Page_Shopping_Confirm.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping_Confirm.php
data/class/pages/shopping/LC_Page_Shopping_Payment.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping_Payment.php
html/install/sql/create_table_mysql.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fcreate_table_mysql.sql
html/install/sql/create_table_pgsql.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fcreate_table_pgsql.sql- bzr:mapping-version:
- v4
- bzr:merge:
[email protected]- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- [email protected]
- bzr:revno:
- 2840
- bzr:revprop:branch-nick:
- branches/version-2_5-dev
- bzr:root:
- branches/version-2_5-dev
- bzr:text-revisions:
data/Smarty/templates/default/shopping/confirm.tpl [email protected]
data/Smarty/templates/default/shopping/payment.tpl [email protected]
data/Smarty/templates/mobile/shopping/confirm.tpl [email protected]
data/Smarty/templates/mobile/shopping/payment.tpl [email protected]
data/Smarty/templates/mobile/shopping/select_deliv.tpl [email protected]
data/Smarty/templates/sphone/shopping/confirm.tpl [email protected]
data/Smarty/templates/sphone/shopping/payment.tpl [email protected]
data/class/SC_CartSession.php [email protected]
data/class/helper/SC_Helper_Purchase.php [email protected]
data/class/pages/shopping/LC_Page_Shopping_Confirm.php [email protected]
data/class/pages/shopping/LC_Page_Shopping_Payment.php [email protected]
html/install/sql/create_table_mysql.sql [email protected]
html/install/sql/create_table_pgsql.sql [email protected]- bzr:timestamp:
- 2011-02-08 00:39:32.996000051 +0900
- bzr:user-agent:
- bzr2.2.1+bzr-svn1.0.4
- svn:original-date:
- 2011-02-07T15:39:32.996000Z
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_Purchase.php
r20111 r20112 461 461 462 462 /** 463 * 商品種別ID からお届け時間の配列を取得する. 464 */ 465 function getDelivTime($productTypeId) { 466 $objQuery =& SC_Query::getSingletonInstance(); 467 $from = <<< __EOS__ 468 dtb_deliv T1 469 JOIN dtb_delivtime T2 470 ON T1.deliv_id = T2. deliv_id 471 __EOS__; 472 $objQuery->setOrder("time_id"); 473 $results = $objQuery->select("time_id, deliv_time", $from, 474 "product_type_id = ?", array($productTypeId)); 475 $arrDelivTime = array(); 476 foreach ($results as $val) { 477 $arrDelivTime[$val['time_id']] = $val['deliv_time']; 478 } 479 return $arrDelivTime; 463 * 配送業者IDからお届け時間の配列を取得する. 464 * 465 * @param integer $deliv_id 配送業者ID 466 * @return array お届け時間の配列 467 */ 468 function getDelivTime($deliv_id) { 469 $objQuery =& SC_Query::getSingletonInstance(); 470 $objQuery->setOrder('time_id'); 471 $results = $objQuery->select('time_id, deliv_time', 472 'dtb_delivtime', 473 'deliv_id = ?', array($deliv_id)); 474 $arrDelivTime = array(); 475 foreach ($results as $val) { 476 $arrDelivTime[$val['time_id']] = $val['deliv_time']; 477 } 478 return $arrDelivTime; 480 479 } 481 480 482 481 /** 483 482 * 商品種別ID から配送業者を取得する. 484 */ 485 function getDeliv($productTypeId) { 486 $objQuery =& SC_Query::getSingletonInstance(); 487 return $objQuery->select("*", "dtb_deliv", "product_type_id = ?", 488 array($productTypeId)); 489 } 490 491 /** 492 * 配送業者ID から, 有効な支払方法を取得する. 483 * 484 * @param integer $product_type_id 商品種別ID 485 * @return array 配送業者の配列 486 */ 487 function getDeliv($product_type_id) { 488 $objQuery =& SC_Query::getSingletonInstance(); 489 $objQuery->setOrder('rank'); 490 return $objQuery->select('*', 'dtb_deliv', 'product_type_id = ?', 491 array($product_type_id)); 492 } 493 494 /** 495 * 配送業者ID から, 有効な支払方法IDを取得する. 493 496 * 494 497 * @param integer $deliv_id 配送業者ID … … 497 500 function getPayments($deliv_id) { 498 501 $objQuery =& SC_Query::getSingletonInstance(); 499 $from = <<< __EOS__ 500 dtb_deliv T1 501 LEFT JOIN dtb_payment_options T2 502 ON T1.deliv_id = T2.deliv_id 503 __EOS__; 504 $objQuery->setOrder('T2.rank'); 505 return $objQuery->getCol('payment_id', $from, 'T1.deliv_id = ?', 502 $objQuery->setOrder('rank'); 503 return $objQuery->getCol('payment_id', 'dtb_payment_options', 504 'deliv_id = ?', 506 505 array($deliv_id), MDB2_FETCHMODE_ORDERED); 507 506 }
Note: See TracChangeset
for help on using the changeset viewer.
