Changeset 17690 for branches/version-1


Ignore:
Timestamp:
2008/11/06 16:07:37 (15 years ago)
Author:
takegami
Message:

#397-392 モバイル解決

Location:
branches/version-1/html/mobile
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/version-1/html/mobile/nonmember/payment.php

    r15120 r17690  
    220220        } 
    221221    } 
     222     
     223   //¤ª»ÙʧÊýË¡¤ÎÀ°¹çÀ­ 
     224    $objView = new SC_SiteView(); 
     225    $objSiteInfo = $objView->objSiteInfo; 
     226    $arrInfo = $objSiteInfo->data; 
     227    $objCartSess = new SC_CartSession(); 
     228    $arrInfo = $objSiteInfo->data; 
     229    // ¹ØÆþ¶â³Û¤Î¼èÆÀÆÀ 
     230    $total_pretax = $objCartSess->getAllProductsTotal($arrInfo); 
     231    // »Ùʧ¤¤ÊýË¡¤Î¼èÆÀ 
     232    $arrPayment = lfGetPayment($total_pretax); 
     233    $pay_flag = true; 
     234    foreach ($arrPayment as $key => $payment) { 
     235        if ($payment['payment_id'] == $arrRet['payment_id']) { 
     236                $pay_flag = false; 
     237                break; 
     238            } 
     239    } 
     240    if ($pay_flag) { 
     241        sfDispSiteError(CUSTOMER_ERROR); 
     242    } 
     243     
    222244    return $objErr->arrErr; 
    223245} 
  • branches/version-1/html/mobile/products/payment.php

    r14676 r17690  
    218218        } 
    219219    } 
     220     
     221    //¤ª»ÙʧÊýË¡¤ÎÀ°¹çÀ­ 
     222    $objView = new SC_SiteView(); 
     223    $objSiteInfo = $objView->objSiteInfo; 
     224    $arrInfo = $objSiteInfo->data; 
     225    $objCartSess = new SC_CartSession(); 
     226    $arrInfo = $objSiteInfo->data; 
     227    // ¹ØÆþ¶â³Û¤Î¼èÆÀÆÀ 
     228    $total_pretax = $objCartSess->getAllProductsTotal($arrInfo); 
     229    // »Ùʧ¤¤ÊýË¡¤Î¼èÆÀ 
     230    $arrPayment = lfGetPayment($total_pretax); 
     231    $pay_flag = true; 
     232    foreach ($arrPayment as $key => $payment) { 
     233        if ($payment['payment_id'] == $arrRet['payment_id']) { 
     234                $pay_flag = false; 
     235                break; 
     236            } 
     237    } 
     238    if ($pay_flag) { 
     239        sfDispSiteError(CUSTOMER_ERROR); 
     240    } 
     241     
    220242    return $objErr->arrErr; 
    221243} 
  • branches/version-1/html/mobile/shopping/deliv.php

    r14676 r17690  
    134134    // ¤ªÆϤ±À褬¥Á¥§¥Ã¥¯¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¹¹¿·½èÍý¤ò¹Ô¤¦ 
    135135    if ($_POST['deli'] != "") { 
    136         if (sfIsInt($_POST['other_deliv_id'])) { 
    137             // ÅÐÏ¿ºÑ¤ß¤ÎÊ̤ΤªÆϤ±Àè¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­¹þ¤à 
     136        $objQuery = new SC_Query(); 
     137        if (sfIsInt($_POST['other_deliv_id'])) { 
     138                $deliv_count = $objQuery->count("dtb_other_deliv","customer_id=? and other_deliv_id = ?" ,array($objCustomer->getValue('customer_id'), $_POST['other_deliv_id'])); 
     139            if ($deliv_count != 1) { 
     140                sfDispSiteError(CUSTOMER_ERROR); 
     141            } 
     142            // ÅÐÏ¿ºÑ¤ß¤ÎÊ̤ΤªÆϤ±Àè¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­¹þ¤à 
    138143            lfRegistOtherDelivData($uniqid, $objCustomer, $_POST['other_deliv_id']); 
    139144            // Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯ 
  • branches/version-1/html/mobile/shopping/payment.php

    r14676 r17690  
    222222        } 
    223223    } 
     224     
     225   //¤ª»ÙʧÊýË¡¤ÎÀ°¹çÀ­ 
     226    $objView = new SC_SiteView(); 
     227    $objSiteInfo = $objView->objSiteInfo; 
     228    $arrInfo = $objSiteInfo->data; 
     229    $objCartSess = new SC_CartSession(); 
     230    $arrInfo = $objSiteInfo->data; 
     231    // ¹ØÆþ¶â³Û¤Î¼èÆÀÆÀ 
     232    $total_pretax = $objCartSess->getAllProductsTotal($arrInfo); 
     233    // »Ùʧ¤¤ÊýË¡¤Î¼èÆÀ 
     234    $arrPayment = lfGetPayment($total_pretax); 
     235    $pay_flag = true; 
     236    foreach ($arrPayment as $key => $payment) { 
     237        if ($payment['payment_id'] == $arrRet['payment_id']) { 
     238                $pay_flag = false; 
     239                break; 
     240            } 
     241    } 
     242    if ($pay_flag) { 
     243        sfDispSiteError(CUSTOMER_ERROR); 
     244    } 
     245     
    224246    return $objErr->arrErr; 
    225247} 
Note: See TracChangeset for help on using the changeset viewer.