Zen Cart Logo
Forums / General Questions / Adding message on payment page

Adding message on payment page

Locked

Views: 1,125

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Jan 2007, 15:16
#1
fats1964 avatar

fats1964

New Zenner

Join Date:
Jan 2007
Posts:
34
Plugin Contributions:
0

Adding message on payment page

I have done my site so customers are directed to Paypals site, but I think it puts them off, so I want to put a warning or instructions so they will know what will happen

20 Jan 2007, 18:08
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Adding message on payment page

Sounds like a good idea. Presumably you will be editing your tpl_checkout_payment_default.php file to add this message.

20 Jan 2007, 23:49
#3
wils avatar

wils

Zen Follower

Join Date:
Apr 2006
Location:
Göteborg
Posts:
124
Plugin Contributions:
0

Re: Adding message on payment page

Hi,

I have done the same (to notify customers that they will be redirected and then sent back), and am working on a small contrib both for the checkout_payment (general payment information+image) and checkout_confirmation (redirect + payment instructions) page. For confirmation I use the code below. In tpl_checkout_confirmation_default.php

after

<h4 id="checkoutConfirmDefaultPaymentTitle"><?php echo $GLOBALS[$class]->title; ?></h4>

add

<?    
// Confirmation message START WILS
if (defined(strtoupper(MODULE_PAYMENT_.$class._CONFIRMATION_DESCRIPTION))) {
   echo "<div class=PaymentConfirm>";
 constant(strtoupper(MODULE_PAYMENT_.$class._CONFIRMATION_DESCRIPTION));
     echo "</div>";
}
// Confirmation message END WILS
?>
```where MODULE_PAYMENT_YOURPAYMENT_CONFIRMATION_DESCRIPTION has to be defined in your payment language file.

Also, I use the following in the stylesheet:


div.PaymentConfirm {
width: 100%;
background-color: yellow;
border: 1px dashed red;
padding: .4em;
float: left;
margin-left: 0.5em;}


I'll post both the override files with complete instructions and css next week.
20 Jan 2007, 23:57
#4
wils avatar

wils

Zen Follower

Join Date:
Apr 2006
Location:
Göteborg
Posts:
124
Plugin Contributions:
0

Re: Adding message on payment page

See also http://zen-cart.com/forum/showthread.php?t=56079 for more on my ideas, which may be what you are looking for.

/Wils