Back to PhocacartRenderFront class

Method getConfirmOrderText

public static
getConfirmOrderText
(mixed $orderValue = 0)

Method getConfirmOrderText - Source code

public static function getConfirmOrderText($orderValue = 0)
{
    $cFT = Text::_('COM_PHOCACART_CONFIRM_ORDER');
    $app = Factory::getApplication();
    $p = $app->getParams();
    $confirm_order_text = $p->get('cofirm_order_text', '');
    $confirm_order_text_zero = $p->get('cofirm_order_text_zero', '');
    if ($confirm_order_text != '' && $orderValue > 0) {
        $cFT = Text::_($confirm_order_text);
    }
    if ($confirm_order_text_zero != '' && $orderValue == 0) {
        $cFT = Text::_($confirm_order_text_zero);
    }
    return $cFT;
}