Payment information and image for Zen-Cart

Payment information and image

The contrib can do three things:

  1. Add a description of a payment option
  2. Add an image for a payment option
  3. Add detailed instructions just before an order is confirmed 

The objective for this contrib is to display

(i) information for the payment options, which describe process, security etc where the customer selects the payment option, to make a customer feel more comfortable when selecting a payment option

(ii) an image next to the description mainly for estethic reasons

(iii) detailed instructions on the order confirmation page, if special considerations are needed.

The mod has four parts:

  • A. Two files are overridden
  • B. An addition to the stylesheet
  • C. Image files are added for the payment options
  • D. Information is added to the language file for the payment options

A. Two files are overridden:

1. and 2. are done in tpl_checkout_payment_default.php

3. is done in tpl_checkout_confirmation_default.php

Put both files in /includes/templates/your_template/templates

B. Add the following to your stylesheet (or something like it)

div.PaymentTable{

width:100%}

div.PaymentImg {

width: 25%;

float:right;

text-align:center;}

div.PaymentDescr {

width: 70%;

float: left;

margin-left: 0.5em;}

div.PaymentConfirm {

width: 100%;

background-color: yellow;

border: 1px dashed red;

padding: .4em;

float: left;

margin-left: 0.5em;}

C. Add a small image for one or more payment option

Put where you like, but suggested is in

includes/templates/YOUR_TEMPLATE/images/payment/

D. Add the following in your payment language file

// START - Added for Payment information and image for payment option XYZ

define(’MODULE_PAYMENT_XYZ_CC_COMPLETE_DESCRIPTION’, This is a safe credit card option. Our store never sees your card details, and do not store any card detals. After the order is confirmed, you will be directed to a sequre payment site. When payment is complete, you will return here.’);

define(’MODULE_PAYMENT_XYZ_CC_IMAGE’, ‘”includes/templates/YOUR_TEMPLATE/images/payment/logo_CC_XYZ.gif” width=”96″ height=”61″‘);

define(’MODULE_PAYMENT_XYZ_CC_CONFIRMATION_DESCRIPTION’, ‘After you click <b>’ . BUTTON_CONFIRM_ORDER_ALT .’</b> below, you will be directed to a sequre payment site at XYZ. When payment is complete, you will return here. ‘)

// END - Added for Payment information and image

The additions suggesetd in D can be added to any existing payment option.

Disclaimer. Use at your own risk. Files overridden are based on Oscommerce and Zen-Cart code. The author of the mod claims no credit for the original work. If you modify the mod, it is appreciated if you share this with me.

 

Tested with 1.3.0.2, 1.3.7.

Version history & change log

v1.1 
Added so invoice fee is shown by default in payment selection list using
TEXT_INFO_INVOICE_FEES if defined in the ot_invoice_fee.php language define file
(only for those who use the invoice contrib).
Checked on  1.3.7.

v1.0.
Updated with CSS instead of tables

v0.80
Added checkout confirmation information 

v0.50
First release. 

Download
for 1.3.7

Download
for 1.3.0.2

Latest version documentation

Bloggtoppen.se
[Valid RSS]