Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / adding a message to check out page

adding a message to check out page

Locked

Views: 3,133

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
6 Dec 2006, 1:20 PM
#1
davek7 avatar

davek7

New Zenner

Join Date:
Jun 2006
Posts:
23
Plugin Contributions:
0

adding a message to check out page

My client asked me if I could add a message to his checkout page at
http://www.portlandwinegear.com

"I need you to add something at the checkout that says "To place your order using payment other than Paypal, please contact us at 503-231-1121 or email [email protected]. Thank you. We have a way of taking credit cards over the phone now but we need people to know this before they go somewhere else.
Thanks,
Joe"

Can this be done or do I have to add this to the front page?

7 Dec 2006, 7:03 AM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: adding a message to check out page

You'll need to modify two files:

First: includes/languages/english/checkout_payment.php

create a new define statement

define ('TEXT_CUSTOMER_MESSAGE', 'To place your order using payment other than Paypal, please contact us at 503-231-1121 or email [email protected]. Thank you.');

Save the file to includes/languages/english/YOUR_TEMPLATE/checkout_payment.php and upload to you server

two: includes/templates/template_default/templates/tpl_checkout_payment_default.php

find:

<h1 id="checkoutPaymentHeading"><?php echo HEADING_TITLE; ?></h1>

below this line add the following:

<?php echo TEXT_CUSTOMER_MESSAGE; ?>

Save the file to includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php and upload to your server

8 Dec 2006, 5:39 PM
#3
davek7 avatar

davek7

New Zenner

Join Date:
Jun 2006
Posts:
23
Plugin Contributions:
0

Re: adding a message to check out page

clydejones:

You'll need to modify two files:

First: includes/languages/english/checkout_payment.php

create a new define statement

define ('TEXT_CUSTOMER_MESSAGE', 'To place your order using payment other than Paypal, please contact us at 503-231-1121 or email [email protected]. Thank you.');

> 
> Save the file to includes/languages/english/YOUR_TEMPLATE/checkout_payment.php and upload to you server
> 
> two: includes/templates/template_default/templates/tpl_checkout_payment_default.php
> 
> find:
> ```
<h1 id="checkoutPaymentHeading"><?php echo HEADING_TITLE; ?></h1>

below this line add the following:

<?php echo TEXT_CUSTOMER_MESSAGE; ?>
> 
> Save the file to includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php and upload to your server

Thanks Clyde, I made the changes that you mentioned above, but where you mentioned:
Save the file to includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php and upload to your server

my template name is not in that directory. Instead I added the line to 
/home/portlao0/public_html/shop/includes/languages/english/shopping_cart.php 
file and its is showing up where I want it. How can I bold the letters and make the email a link using html is a php file? All my editing is done on my webhost server so I don't need to upload. 

This is the locaton of my winegear template:
	/ public_html / shop / includes / templates / winegear_template /

Why is this different than your instructions? Thanks, Dave
8 Dec 2006, 8:25 PM
#4
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: adding a message to check out page

YOUR_TEMPLATE is a generic term to indicate the any name you choose. You'll also see CUSTOM used and it serves the same purpose.

When writing instructions and with literally thousands of carts out there one can't write the actual file structure used by each and every user.

8 Dec 2006, 9:11 PM
#5
davek7 avatar

davek7

New Zenner

Join Date:
Jun 2006
Posts:
23
Plugin Contributions:
0

Re: adding a message to check out page

Thanks Clyde.

Can I bold the statement in that file? and make the email address a link?

8 Dec 2006, 10:28 PM
#6
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: adding a message to check out page

Of course you can style it any way you need.

On linking to the e-mail address I wouldn't in order to prevent spam bots going through and "harvesting" the address. But if you think the risk is low then go ahead.

8 Dec 2006, 10:59 PM
#7
davek7 avatar

davek7

New Zenner

Join Date:
Jun 2006
Posts:
23
Plugin Contributions:
0

Re: adding a message to check out page

You're maybe right about leaving the email the way it is. But if I want to add

<h2> tags to make it bold will take the html tags? How would I write it?
8 Dec 2006, 11:25 PM
#8
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: adding a message to check out page

Just rewrite the define statement as follows:

define ('TEXT_CUSTOMER_MESSAGE', '<h2>To place your order using payment other than Paypal, please contact us at 503-231-1121 or <a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">E-Mail Us</a> Thank you.</h2>');

This will also send them to the contact page where they can compose an e-mail message if the choose.

You can see how it looks on the main page of my http://mysticmountainnaturals.com/testsite/