Page 1 of 1

Hook or other Method needed to insert txt below billing Adress (checkout_payment.php)

Posted: Wed Jan 19, 2022 3:10 pm
by loop
Hi All
I need to put a txt (simple shoppingcart) below the Billing Address on checkout_payment.php

Code: Select all

<div class="border">
        <ul class="list-group list-group-flush">
          <li class="list-group-item"><?= PAYMENT_FA_ICON . $customer->make_address_label($_SESSION['billto'], true, ' ', '<br>') ?>
          </li>
        </ul>
      </div>
      
      HERE I LIKE THE TEXT
      
any ideas without overwriting checkout_payment.php?

Re: Hook or other Method needed to insert txt below billing Adress (checkout_payment.php)

Posted: Wed Jan 19, 2022 5:51 pm
by ozeworks
You could look at this Add On that puts an extra message on the cart page

app.php/addons/free_addon/shopping_cart_extra_message

and possibly clone it?

Re: Hook or other Method needed to insert txt below billing Adress (checkout_payment.php)

Posted: Thu Jan 20, 2022 3:08 pm
by loop
thank you for your idea, the problem is not to clone it, the problem is the place it's inserted, i want it in the white space below the adress field, to have it at the bottom or top it's not a problem with a hook.... hmmm

Re: Hook or other Method needed to insert txt below billing Adress (checkout_payment.php)

Posted: Fri Jan 21, 2022 11:07 am
by Fiber
loop wrote: Thu Jan 20, 2022 3:08 pm thank you for your idea, the problem is not to clone it, the problem is the place it's inserted, i want it in the white space below the adress field, to have it at the bottom or top it's not a problem with a hook.... hmmm
Copy checkout_payment.php into the override template in pages, do youre changes in checkout_payment, copy language file(s) insert the define, i have language files dutch and english and this the result.

Image

If I got it right, that's what you want, right?

Re: Hook or other Method needed to insert txt below billing Adress (checkout_payment.php)

Posted: Fri Jan 21, 2022 1:25 pm
by loop
Hi
that's exactly what i want, but i would love / like it with a hook without overwriting the template, but it won't be possible probably without overwriting... :(

Re: Hook or other Method needed to insert txt below billing Adress (checkout_payment.php)

Posted: Fri Jan 21, 2022 3:44 pm
by Fiber
loop wrote: Fri Jan 21, 2022 1:25 pm without overwriting the template
Nothing is overwritten, that's the beauty of this system :-)

Re: Hook or other Method needed to insert txt below billing Adress (checkout_payment.php)

Posted: Fri Jan 21, 2022 5:11 pm
by 14Steve14
Have you looked through the addons as there are several in there that can add a message on various pages within your store. They generallyu add the message at the top of the page, but it may be possible to agjust where they are placed. You could even copy and make something that fits as you need.

app.php/addons/free_addon/simple_header_message

app.php/addons/free_addon/holiday_promotional_message

There may be more.

Re: Hook or other Method needed to insert txt below billing Adress (checkout_payment.php)

Posted: Fri Jan 21, 2022 8:48 pm
by heatherbell
There are examples already in the User Guide - Example 3 could be applied to answer this topic's question -https://phoenixcart.org/phoenixcartwiki ... a_New_Hook