Post by HankMcSpank » Wed Feb 27, 2013 7:17 pm

Hiya,

i've googled but without success so hopefully I solve this issue-ettte here!

When checking out with Paypal standard, I want to add a line underneath the paypal text to say...

(for cards, on next screen select 'Pay with a Debit or Credit card')

....at the moment the above text sits alongside the payment method (which looks a bit 'bust/cluttered)

Here's contents of the paypal standard module as it is at present

Code: Select all

<?php
// Text
$_['text_title']    = 'PayPal or Credit/Debit Card (for cards, on next screen select \'Pay with a Debit or Credit card\')';
$_['text_reason'] 	= 'REASON';
$_['text_testmode']	= 'Warning: The payment gateway is in \'Sandbox Mode\'. Your account will not be charged.';
$_['text_total']	= 'Shipping, Handling, Discounts & Taxes';
?>
so how would I get the bit of text showing in brackets on a new line (in other words what entry do I need in the php file to facilitate?)

Thanks,
Hank.

Active Member

Posts

Joined
Wed Apr 11, 2012 4:15 pm

Post by ChetanCx » Wed Feb 27, 2013 8:54 pm

Code: Select all

$_['text_title']    = 'PayPal or Credit/Debit Card <br>  (for cards, on next screen select \'Pay with a Debit or Credit card\')';

User avatar
Active Member

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by HankMcSpank » Wed Feb 27, 2013 9:52 pm

Thanks :-)

I was sure I'd tried that a few days ago....but nevertheless it worked!

The problem-ette is that now the 'Pay with Paypal/Credit Card' text adjacent to the radio button bit has moved up (ideally I wanted this bit to stay next right next to the radio button with the

(for cards, on next screen select 'Pay with a Debit or Credit card')

....underneath, but adding the <br> it seems to have centred between the two lines.

Also itallics codes don't seem to work i.e. <i> /<i>

Active Member

Posts

Joined
Wed Apr 11, 2012 4:15 pm

Post by ChetanCx » Wed Feb 27, 2013 10:56 pm

its

Code: Select all

<i> text </i> you can also use <em> text </em>
in default opencart theme there is no centering problem or italic problem.

with following code

Code: Select all

$_['text_title']    = 'PayPal <i><br> some italic <br> some more italic thing<br> last thing</i>';
output

Attachments

scr_temp.jpg

scr_temp.jpg (14 KiB) Viewed 563 times


User avatar
Active Member

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by HankMcSpank » Thu Feb 28, 2013 12:11 am

Many thanks, I've implemented your suggestions, but unlike your's the first line is not aligned with the radio button so well...

Image


nothing to lose sleep over though!


Many thanks once again :-)

Active Member

Posts

Joined
Wed Apr 11, 2012 4:15 pm
Who is online

Users browsing this forum: No registered users and 19 guests