Daamon

Add Custom Text To Gateway / Choose Payment Method Page

Recommended Posts

Daamon    0

Hi,

I want to add some custom text to the [host]/shop/index.php?_a=gateway page - see attached for page, and where I want to insert the text.

Which file(s) do I need to edit to do this? I've had a search in the forums and a look in the cPanel files but can't find anything.

Cheers.

ChoosePmtMethod.PNG

Share this post


Link to post
Share on other sites

keat    17

You can change the phrase "Choose Payment Method", to include the additional text you may require, but I see that you may have already changed this anyway.

I'l hazard a guess that any edits would need to be in skins/yourskin/templates/content.gateway.php

 

but this only a guess on my behalf i'm afraid

 

  • Like 1

Share this post


Link to post
Share on other sites
Dirty Butter    718

Is this something you want to add above all gateway choices, or each one separately?

For above all try this in content.checkout.php:

            <ul class="no-bullet center" id="gateway_error">
<h3>Above All</h3>

               {foreach from=$GATEWAYS item=gateway}

If it's something separate you want, it would have to be in the plugin code somewhere.

  • Like 1

Share this post


Link to post
Share on other sites
Daamon    0

@keat Thanks for replying - I'll check out that file and see what's in there. I've not changed any text in the screen shot I posted - the text inside the red ring (and the ring itself) were a crude MSPaint edit of the screenshot.
You say "You can change the phrase "Choose Payment Method", to include the additional text you may require" - can you share how please? Thanks.
@Dirty Butter Thanks for replying. Yes, I would like some custom text above all gateway choices (in our case, only PayPal). I'll take a look in the file you mention.

 

I'll get back with my findings and results. Cheers both!

Share this post


Link to post
Share on other sites
Daamon    0

Editing the skins/yourskin/templates/content.gateway.php did the trick - thanks @keat!

@Dirty Butter Adding in that code the file you suggesteddidn't work - no text appeared (I may have put the code in the wrong place) and it also caused the page to fail to load - just blank .

Share this post


Link to post
Share on other sites
Dirty Butter    718

Hmmm. I added it to mine before putting the code on here, and it did work. Are you still on v6.0.12? As I am on 6.1.7 with some 6.1.8 patches. If so, that's probably the difference.

Share this post


Link to post
Share on other sites
Daamon    0

Yeah, we're still on 6.0.12 (I know, I know...)

I also included the {foreach from=$GATEWAYS item=gateway} - I suspect maybe I shouldn't have? It was approaching midnight my time when I was doing it...

I think I tried it without that and it still didn't work. Where (which line) should I have inserted it?

Share this post


Link to post
Share on other sites
ayz1    30

Try adding YOUR REQUIRED TEXT as follows in skins/yourskin/templates/content.gateway.php

      <div class="row">
         <div class="small-12 columns">YOUR REQUIRED TEXT
            <ul class="no-bullet center" id="gateway_error">
               {foreach from=$GATEWAYS item=gateway}

Share this post


Link to post
Share on other sites
Dirty Butter    718

I tested my content.checkout.php solution above again. It still works. I did show a line before and after the needed addition, so you could see where to put it. But glad the content.gateway.php works for you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now