Jump to content

Display a message at top of check out page


Recommended Posts

Hi all,

 

I would like to add a simple message or image across the top of the check out page, stating that the page is secure and your details are safe etc.

 

I use the one page check out with guest check out also.

 

I've tried editing the 'themes/mytheme/order-opc-new-account.tpl' file and also tried transplanting the blockbanner module into the various hooks but with no luck.

 

Any help and advice would be much appreciated,

Thanks,

Rhys

Link to comment
Share on other sites

Which page are you talking about, are you doing the 5 step check out or the one page?

 

I have edited several of those templates to state that our cut off time for same day processing is 3pm EST and had to edit it in.

 

Here is the code I use, which also includes javascript to say what time it is in EST

{* ================================================================================================= *}
{* EDIT - Start: Added The Order Processing Cut Off Time  (02/14/2012 - BRC)	  *}
{* ================================================================================================= *}
<div style="font-family:Verdana,sans-serif; font-size:11px; font-weight:bold; color:#0000ff; padding:20px 0px 0px 5px;">
<img src="{$img_dir}icon/notice_icon.gif" alt="Notification" style="padding:0px 5px 0px 0px;" align="middle" />
Orders received after 3:00pm EST will be processed the following business day. The current time is:
{literal}
<script type="text/javascript">
 var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
var suffix = "am";
if (hours >= 12) {
 suffix = "pm";
 hours = hours - 12;
}
if (hours == 0) {
 hours = 12;
}
if (minutes < 10)
 minutes = "0" + minutes
document.write(" " + hours + ":" + minutes + "" + suffix + " EST")
</script>
{/literal}
</div>
{* ================================================================================================= *}
{* EDIT - END					   *}
{* ================================================================================================= *}

 

/theme/shopping-cart.tpl = Viewing the Cart page (for order.php and order-opc.php)

/theme/order-address.tpl = Check Out page (showing the listed addresses of the given account)

/theme/order-payment.tpl = Payment Method page ((final checkout page)

 

Those are the three I changed, I think there is one more or even the order-opc...tpl files as well you can adjust.

Link to comment
Share on other sites

As for where to place the code it depends on the tpl file honestly.

 

for example if you want to put it on top of the breadcrumb trail at the top of the page .. then you will want it to be above this code in the "shopping-cart.tpl" file.

 

{capture name=path}{l s='Your shopping cart'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h1 id="cart_title">{l s='Shopping cart summary'}</h1>

 

I have not tried it but that would be my guess, so just look through the tpl files and figure on placement. Look at the wording and information that is in the file and you can kind of see where to put it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...