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

Open to all! Ask other shopowners for help.
Post Reply
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

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

Post 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?


Join The Code Co-op to get access to your library in the Code Co-op Forum
ozeworks
Certified Developer
Posts: 17
Joined: Tue Dec 21, 2021 2:58 pm
Phoenix Version:
Has thanked: 5 times
Been thanked: 1 time

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

Post 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?
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

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

Post 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
Fiber
Contributor
Posts: 173
Joined: Mon Oct 26, 2020 12:16 pm
Phoenix Version: v1.1.0.6
Has thanked: 17 times
Been thanked: 27 times

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

Post 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?
Turn up the Max
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

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

Post 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... :(
Fiber
Contributor
Posts: 173
Joined: Mon Oct 26, 2020 12:16 pm
Phoenix Version: v1.1.0.6
Has thanked: 17 times
Been thanked: 27 times

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

Post 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 :-)
Turn up the Max
14Steve14
Senior Contributor
Posts: 921
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

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

Post 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.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

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

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply