Created
August 15, 2018 02:46
-
-
Save gartes/142f1da66645aa598280fd72076aec63 to your computer and use it in GitHub Desktop.
VmModel-paymentmethod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Получить параметры способа оплаты | |
$paymentmethodModel = VmModel::getModel('paymentmethod'); | |
$paymentmethodData = $paymentmethodModel->getPayment($this->cart->virtuemart_paymentmethod_id) ; | |
if( isset ( $paymentmethodData->cost_percent_total ) ){ | |
$DATA->SUBTOTAL->PAYMENT_PARAM_DISCOUNT = $paymentmethodData->cost_percent_total ; | |
}else{ | |
$DATA->SUBTOTAL->PAYMENT_PARAM_DISCOUNT = false ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment