Changing PopUP Button

I'm trying to change the popup button of the credit module to take people to the Credit page when their balance is not enough. I tracked the code up to this line:

 $fBalance = (float)$this->_oDb->getProfile(array('type' => 'balance', 'id' => $iBuyerId));
        if($fAmount > $fBalance)
            return echoJson(array('code' => 3, 'msg' => _t('_bx_credits_err_low_balance')));

Basically, this uses the template popup_trans_prompt_cnt.html. I want to use a different template so that I can change the 'OK' button to a different button that takes the user to the Credit Home Page. 

  • 561
  • More
Replies (1)
    • Hello Scholar !

      The changes of the mentioned popup will affect the whole UNA as it is a system part. It would be better to change the text of the message via the Polyglot - possible to add the link or smth likae that.

      Login or Join to comment.