• Resolved asattler

    (@asattler)


    In one of my current projects I needed to customize the checkout_form.php. Unfortunately there is no switch like it exists for the pay_button.php.

    I made it by myself now, but I know it is not update-save.

    if(file_exists(get_template_directory().'/paymill/checkout_form.php')){
    						require(get_template_directory().'/paymill/checkout_form.php');
    					}else{
                                                require(PAYMILL_DIR.'lib/tpl/checkout_form.php');
                                            }

    Thanks in advance

    https://www.ads-software.com/plugins/paymill/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter asattler

    (@asattler)

    after working some more on this stuff…
    From my opinion the pay_button.inc.php should be splitted up. There is too much mix of businesslogic and visual UI-stuff.

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    Some visual UI stuff is currently not intended to be customized except via CSS. The reason is, that the checkout form is a core file for handling payments via AJAX and I cannot offer free support for any modifications on that file. You may give it a CHMOD 444 to prevent to get it overwritten by updates.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[request] make checkout_form.php overrideable’ is closed to new replies.