• Resolved sulive

    (@sulive)


    Morning,

    When I select bank transfer via Options -> Payment providers, there is a message box in which I can add payment information. Also the parameters {total} and {order_number} are available.

    The parameter total contains the currency sign and the amount.
    My question is: I have entered an URL like: https://www.mysite.com/pay-ad/?order={order_number}&total={total}

    Since the currency sign is now included in {total} I would like to remove the currency sign before I call the php file. How do I do that?

    Thanks,
    Sylvia

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    try adding in your theme functions.php file the code below

    
    add_filter( "adext_bank_transfer_custom_text", "my_adext_bank_transfer_custom_text", 10, 2 );
    function my_adext_bank_transfer_custom_text($html, $data) {
        return str_replace( "{total_raw}", $data["price"], $html );
    }
    

    Then in the Bank Transfer message you should be able to use {total_raw} variable which should display the total price as a number.

    Thread Starter sulive

    (@sulive)

    Thanks it works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove the currency sign’ is closed to new replies.