Jump to content

smarty else if to change checkout message?


ags

Recommended Posts

Is there a way I can change the checkout message based on which payment processor my client selects? I currently use PayPal and when Google Wallet is used the load bar just hangs there because the client has to click the button, see attached.

 

I would like to insert something like "Please click the button below to complete your checkout" for Google Wallet users and just use the standard for PayPal. You can see in the message that I already changed the default but I would like to use an else/if statement if I can to change the entire message based on client selection.

 

Also, if I can use an else/if statement to remove the loading bar that would be great too.

 

Thanks in advance!

whmcs-checkout.PNG

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

If you add {debug} to /templates/*your active template*/forwardpage.tpl and then visit it in your browser, you'll see a popup listing all the available variables.

That will show you wish one to use in the if statement to determine which gateway is in use.

 

Relevant documentation:

http://docs.whmcs.com/Template_Syntax

Link to comment
Share on other sites

Thanks for that, but I don't see any variable pertaining to the payment gateways. I'm using a google wallet payment gateway, and the only reference I found in the debug out for it is this:

 

{$code}	"<script src="https://wallet.google.co..."

 

Is {$code} the variable? Can't be can it? Too general.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated