Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Flashing text during checkout to alert of new bank details

Flashing text during checkout to alert of new bank details

4 Jul 2011, 11:38 PM
#1
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Post #1 by amyleew

Hi there

I have seen a zencart site that has flashing text on the last page before they confirm their order to say their bank details have changed and I would like to know how to do it.

All it says is 'IMPORTANT' and it is in red and blinks.

Is someone able to tell me what code I put in that file so it appears in red and flashes text?

Thanks

Amy

4 Jul 2011, 11:48 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #2 by schoolboy

If you'd have asked this question 12 years ago, I would have said "Just stick the word inside a <blink> tag"...

But <blink> was deprecated over a decade ago...

Have you done any code writing to insert your desired "text" into checkout_payment yet?

20 years a Zencart User

5 Jul 2011, 12:18 AM
#3
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Post #3 by amyleew

Hi, thanks for your reply

No, I haven't changed anything yet. This is what is inside the file that displays the bank details when they choose direct deposit as a payment option and what I would like it so say:

BANK DETAILS CHANGED 1 JULY 2011 (blinking)

define('MODULE_PAYMENT_DIRBANK_TEXT_EMAIL_FOOTER',
"Please use the following details to transfer your total order value:\n\n" .
"\nAccount No.: " . MODULE_PAYMENT_DIRBANK_ACCNUM .
"\nBSB Number: " . MODULE_PAYMENT_DIRBANK_BSB .
"\nAccount Name: " . MODULE_PAYMENT_DIRBANK_ACCNAM .
"\nBank Name: " . MODULE_PAYMENT_DIRBANK_BANKNAM .
"\n\nPlease use NAME or ORDER NUMBER as reference. The reference you enter is for XX reference, not your own\n");

define('MODULE_PAYMENT_DIRBANK_TEXT_TITLE', 'Direct Bank Deposit. Payment must clear within 72 hrs or order will be cancelled');
define('MODULE_PAYMENT_DIRBANK_TEXT_DESCRIPTION',

'<BR>Please use the following details to transfer your total order value:<br><pre>' .
"\nAccount No.: " . MODULE_PAYMENT_DIRBANK_ACCNUM .
"\nBSB Number: " . MODULE_PAYMENT_DIRBANK_BSB .
"\nAccount Name: " . MODULE_PAYMENT_DIRBANK_ACCNAM .
"\nBank Name: " . MODULE_PAYMENT_DIRBANK_BANKNAM .
'</pre><p>Please use NAME or ORDER NUMBER as reference. The reference you enter is for XX reference, not your own');
?>

Here's hoping I'm even trying to edit the right spot!

Amy

5 Jul 2011, 12:19 AM
#4
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Post #4 by amyleew

Oh, checkout_payment. I'm not even in the right spot after all :blush:

5 Jul 2011, 7:27 PM
#5
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Post #5 by athens_collectibles

How about replacing the "BANK DETAILS CHANGED 1 JULY 2011" text with an animated gif image?

5 Jul 2011, 10:08 PM
#6
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Post #6 by amyleew

Making the gif wont be hard but I still don't know how to insert it though. Is someone able to help me with what I code I need to insert a picture?

6 Jul 2011, 4:56 AM
#7
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Post #7 by athens_collectibles

Sorry about the delay in answering; apparently we are in different time zones.

I might be able to help. Take a look at my checkout page (names and order details are fictitious) and tell me where you need the flashing text to be. Or, better yet, provide a screen shot of your own page.

I will experiment a bit and will come back.

6 Jul 2011, 10:05 AM
#8
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Post #8 by amyleew

My checkout looks pretty similar although I love two of the things you have there and have wondered myself how to make them happen.

As for the .gif, I would like it on the next page. In my checkout, you choose bank deposit and then the next page displays the account details. That is the page I would like the .gif on somewhere in the area of the red line so it is around the bank details position but it doesn't really matter.

May I ask, how did you do the terms and conditions part and also the 'Attention' message under the PayPal option? They are fantastic! I have needed the terms and conditions thing for a long time but haven't really looked into it.

6 Jul 2011, 10:09 AM
#9
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #9 by schoolboy

I'm not sure what payment module you are using for your BANK DRAFT / MONEYORDER option, but assuming it is CHECK/MONEYORDER (or a clone of it)...

... then you can make a simple addition to the associated LANGUAGE file.

includes/languages/english/modules/payment/moneyorder.php

Look for:

  define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Bank Draft/Money Order');

change to:

  define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Bank Draft/Money Order <img src="images/animated.gif">');

In my example, the gif is housed in the main images folder, but you can PATH it however you like.

if you add a CLASS to the <img> tag, you can then also style it in the stylesheet.css file.

<img class="animatedGif" src="images/animated.gif">

And in your stylesheet.css ...

.animatedGif {
padding: 0 0 0 3px;
}

(or whatever styling you need/want).

MAKE SURE your gif is the same pixel height as the TEXT - Bank Draft/Money Order

20 years a Zencart User

6 Jul 2011, 11:11 AM
#10
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Post #10 by athens_collectibles

I was going to give you a solution along the lines of Schoolboy's but he was faster (not surprising as I'm not a boy any more)! :laugh:

Assuming that you want the flashing text below the line "Please use the following details to transfer your total order value:", you can enter this line in Admin > Tools > Developers Tool Kit and identify the file where the line appears. You could then change it to read:

Please use the following details to transfer your total order value:<br /><br /><img class="animatedGif" src="images/animated.gif"><br /><br />

You can see an example of text as animated gif in my Login page. Scroll to the end of page and see the prompt to subscribe to the newsletter.

Coming to the red ATTENTION message below the PayPal image:

Edit line 22 of file: includes/languages/english/modules/payment/my_template/paypal.php from:

define('MODULE_PAYMENT_PAYPAL_ACCEPTANCE_MARK_TEXT', 'Save time. Check out securely. <br />Pay without sharing your financial information.');

To:

define('MODULE_PAYMENT_PAYPAL_ACCEPTANCE_MARK_TEXT', 'Check out with your credit card or PayPal account. <br /><br /><font color="red">ATTENTION: Although credit cards are processed in PayPal\'s secure environment, you are not required to maintain or open a PayPal account. You will be transferred to PayPal after you confirm the order and you will have two options: Login to your PayPal account on the right side of the screen if you want to use it OR click on the "Continue" link on the left side to pay with your credit card.</font>');

You can of course enter a different text as you like. This is a modification of a core file, so be careful and take a note of whatever changes you make so that you can apply them again when the Zen Cart version is updated.

As for the Terms and Conditions, do you mean my Terms and Conditions page? If yes, this is not difficult, it requires a javascript, some CSS and an unordered list. I am using the same technique in other pages as well (for example Privacy, Shipping Information etc) and I could give you the code required to implement on your site.

5 Aug 2011, 4:08 AM
#11
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Post #11 by amyleew

Thank you both for the replies. I have been so busy I haven't even given it another thought until now.

I like the idea of the terms and conditions box during checkout that they must tick to say they agree to them before they can continue checking out.

I am having some issues with people not reading mine then getting angry when something doesn't play out the way they like it. I'd like it just like the screen print below from Athens Collectibles... that would be perfect. Is that what uses the CSS and javascript you mentioned? I have my terms all written out under the shipping page. Are you able to explain how I go about putting that code in so if they haven't read it it has a link for them to go check it out.

Most people don't read what is screaming at them on the home page so this might be just the answer I need.

5 Aug 2011, 6:28 AM
#12
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Post #12 by athens_collectibles

I like the idea of the terms and conditions box during checkout that they must tick to say they agree to them before they can continue checking out.
To enable the check box, you only need to go to Configuration > Regulations > Confirm Terms and Conditions During Checkout Procedure and set it to "true".

As for the Javascript, CSS etc mentioned in my previous post, this is only to achieve the effect of unfolding each answer according to the question selected in my Terms & Conditions page and has nothing to do with the check box at checkout.

5 Aug 2011, 7:53 AM
#13
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Post #13 by amyleew

That was a quick reply! I had no idea it was so easy to add the terms box... all done in 3 seconds. I can't believe I hadn't seen that option before. I wish I had have looked into this a long time ago!

I don't think I need it unfolding but it does look fancy!

Thanks for the help and have a nice weekend. :smile:

5 Aug 2011, 8:03 AM
#14
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Post #14 by athens_collectibles

We all learn something every day!

Happy weekend to you too! :D