Skip to content

Commit

Permalink
Checkout text moved to language file
Browse files Browse the repository at this point in the history
  • Loading branch information
btcgear committed Dec 8, 2012
1 parent d4bc345 commit 11dced4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 7 additions & 1 deletion upload/catalog/controller/payment/bitcoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ class ControllerPaymentBitcoin extends Controller {
private $payment_module_name = 'bitcoin';
protected function index() {
$this->language->load('payment/'.$this->payment_module_name);
$this->data['button_bitcoin_confirm'] = $this->language->get('button_bitcoin_confirm');
$this->data['button_bitcoin_pay'] = $this->language->get('button_bitcoin_pay');
$this->data['text_please_send'] = $this->language->get('text_please_send');
$this->data['text_btc_to'] = $this->language->get('text_btc_to');
$this->data['text_to_complete'] = $this->language->get('text_to_complete');
$this->data['text_click_pay'] = $this->language->get('text_click_pay');
$this->data['text_uri_compatible'] = $this->language->get('text_uri_compatible');
$this->data['text_click_here'] = $this->language->get('text_click_here');
$this->data['text_if_not_redirect'] = $this->language->get('text_if_not_redirect');
$this->data['error_msg'] = $this->language->get('error_msg');
$this->data['error_confirm'] = $this->language->get('error_confirm');
$this->data['error_incomplete_pay'] = $this->language->get('error_incomplete_pay');
Expand Down
8 changes: 7 additions & 1 deletion upload/catalog/language/english/payment/bitcoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@

// Text
$_['text_title'] = 'Bitcoin - bitcoind';
$_['button_bitcoin_confirm'] = 'I sent it!';
$_['button_bitcoin_pay'] = 'Pay with Bitcoin';
$_['text_please_send'] = 'Please send';
$_['text_btc_to'] = 'BTC to';
$_['text_to_complete'] = 'to complete the transaction.';
$_['text_click_pay'] = 'Click to pay';
$_['text_uri_compatible'] = '(URI-compatible wallets only)';
$_['text_click_here'] = 'Click here';
$_['text_if_not_redirect'] = 'if you are not redirected automatically a few seconds after payment.';
$_['error_msg'] = 'Error communicating with payment provider. Please contact the store for assistance.';
$_['error_confirm'] = 'That didn\\\'t quite work. Please try again. If you receive this message multiple times, please contact us so we can help finalize your order.';
$_['error_incomplete_pay'] = 'We have not yet received your full payment. If you already sent it, try again in a few seconds. If you receive this message multiple times, please contact us so we can help finalize your order.';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ DEALINGS IN THE SOFTWARE.
$('#button-pay').on('click', function() {
html = '<div id="payment-wrapper" style="position:relative;">';
html += ' <div id="payment-left" style="float:left; margin-top:20px;">';
html += ' <div style="font-size:16px; padding:6px; text-align:center;">Please send <span style="font-size:18px; border-style:solid; border-width: 1px; border-radius:3px; padding-top:3px; padding-right:6px; padding-left:6px; padding-bottom:3px;"><?php echo $bitcoin_total; ?></span> BTC to </div>';
html += ' <div style="font-size:16px; padding:6px; text-align:center;"><?php echo $text_please_send ?> <span style="font-size:18px; border-style:solid; border-width: 1px; border-radius:3px; padding-top:3px; padding-right:6px; padding-left:6px; padding-bottom:3px;"><?php echo $bitcoin_total; ?></span> <?php echo $text_btc_to ?> </div>';
html += ' <div style="font-size:16px; padding:6px; text-align:center;"><span style="font-size:18px; border-style:solid; border-width: 1px; border-radius:3px; padding-top:3px; padding-right:6px; padding-left:6px; padding-bottom:3px;"><?php echo $bitcoin_send_address; ?></span></div>';
html += ' <div style="font-size:16px; padding:6px; text-align:center;"> to complete the transaction.</div>';
html += ' <div style="font-size:16px; padding:6px; text-align:center;"><a style="font-size: 16px;" href="bitcoin:<?php echo $bitcoin_send_address; ?>?amount=<?php echo $bitcoin_total; ?>">Click to pay</a> (URI-compatible wallets only)</div>';
html += ' <div style="font-size:16px; padding:6px; text-align:center;"> <?php echo $text_to_complete ?></div>';
html += ' <div style="font-size:16px; padding:6px; text-align:center;"><a style="font-size: 16px;" href="bitcoin:<?php echo $bitcoin_send_address; ?>?amount=<?php echo $bitcoin_total; ?>"><?php echo $text_click_pay ?></a> <?php echo $text_uri_compatible ?></div>';
html += ' </div>';
html += '<div id="payment-right" style="float: right;"><img src="http://chart.apis.google.com/chart?cht=qr&chl=bitcoin:<?php echo $bitcoin_send_address; ?>?amount=<?php echo $bitcoin_total; ?>&chs=160x160"></div></div>';
html += '<div class="buttons" style="clear: both; margin-bottom:6px; margin-top:12px;">';
html += ' <div class="center"><a id="button-confirm"><span>Click here</span></a> if you are not redirected automatically a few seconds after payment.</div>';
html += ' <div class="center"><a id="button-confirm"><span><?php echo $text_click_here ?></span></a> <?php echo $text_if_not_redirect ?></div>';
html += '</div>';
$.colorbox({
overlayClose: true,
Expand Down

0 comments on commit 11dced4

Please sign in to comment.