Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello,

 

i modified the store so an image is displayed for all payment options we are offering in checkout_payment.php

 

Now the Payment image, such as paypal also shows up in invoice.php

 

For example, here is how i got the paypal logo into checkout_payment.php by editing the language file of paypal_ipn.php

 

define('MODULE_PAYMENT_PAYPAL_IPN_TEXT_TITLE', 'PayPal<br>

<img src="'.DIR_WS_CATALOG.'paypal_logo.gif" border=0 alt="Paypal"></a>');

 

I am lacking basic Php skills to format that payment method field in invoice.php to text only, or is there another simple approach? Anyway here the code section of invoice.php containing that "ENTRY_PAYMENT_METHOD" filed:

 

 

</tr>

<tr>

<td align="left" valign="bottom"> </td>

</tr>

<tr>

<td align="left" valign="bottom"> </td>

</tr>

</table></td>

<td background="../images/borders/mainwhite_06.gif"> <img src="../images/borders/mainwhite_06.gif" width="19" height="21" alt=""></td>

</tr>

<tr>

<td> <img src="../images/borders/mainwhite_07.gif" width="11" height="18" alt=""></td>

<td background="../images/borders/mainwhite_08.gif"> <img src="../images/borders/mainwhite_08.gif" width="24" height="18" alt=""></td>

<td> <img src="../images/borders/mainwhite_09.gif" width="19" height="18" alt=""></td>

</tr>

</table>

</td>

</tr>

</table></td>

</tr>

<tr>

<td><table width="100%" border="0" >

<tr>

<td class="main-payment"><b><?php echo ENTRY_ORDER_NUMBER ?></b> <?php echo

tep_db_input($oID); ?>

</td>

<td class="main-payment"><b><?php echo ENTRY_ORDER_DATE ?> </b><?php echo tep_date_short($order->info['date_purchased']); ?></td>

<td class="main-payment"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b> <?php echo $order->info['payment_method']; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

 

 

Any help is highly appreciated.

 

Chris

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...