Index: /branches/comu-ver2/data/Smarty/templates/default/shopping/payment.tpl
===================================================================
--- /branches/comu-ver2/data/Smarty/templates/default/shopping/payment.tpl (revision 18254)
+++ /branches/comu-ver2/data/Smarty/templates/default/shopping/payment.tpl (revision 18311)
@@ -22,111 +22,113 @@
-
Index: /branches/comu-ver2/data/class/pages/shopping/LC_Page_Shopping_Payment.php
===================================================================
--- /branches/comu-ver2/data/class/pages/shopping/LC_Page_Shopping_Payment.php (revision 18275)
+++ /branches/comu-ver2/data/class/pages/shopping/LC_Page_Shopping_Payment.php (revision 18311)
@@ -148,4 +148,6 @@
// 支払い方法の取得
$this->arrPayment = $this->lfGetPayment($total_pretax);
+ // 支払い方法の画像があるなしを取得($img_show true:ある false:なし)
+ $this->img_show = $this->lfGetImgShow($this->arrPayment);
// お届け時間の取得
$arrRet = $objDb->sfGetDelivTime($this->objFormParam->getValue('payment_id'));
@@ -534,4 +536,16 @@
return $this->objFormParam;
}
+
+ /* 支払い方法の画像があるなしを取得($img_show true:ある false:なし) */
+ function lfGetImgShow($arrPayment) {
+ $img_show = false;
+ foreach ($this->arrPayment as $payment) {
+ if (strlen($payment["payment_image"]) > 0 ){
+ $img_show = true;
+ break;
+ }
+ }
+ return $img_show;
+ }
}
?>