2016-07-31 13 views

Antwort

1

von mir gelöst. thankyou für nicht Stack-Überlauf zu helfen. auch Hüte an den Mann aus, der die Frage Downvoted.

function woocs_filter_gateways($gateway_list) 
{ 
    global $WOOCS; 
    $exclude = array(
     'paypal' => array('INR'), //do not show paypal gate if current currency is INR 
     'payuindia' => array('USD')//do not show payumoney gate if current currency is USD 
); 
//*** 
foreach ($exclude as $gateway_key => $currencies) 
{ 
    if (isset($gateway_list[$gateway_key]) AND in_array($WOOCS->current_currency, $currencies)) 
    { 
     unset($gateway_list[$gateway_key]); 
    } 
} 

return $gateway_list; 
}