diff --git a/upload/admin/controller/payment/bitcoin.php b/upload/admin/controller/payment/bitcoin.php
index ca5c6c6..5bb302e 100644
--- a/upload/admin/controller/payment/bitcoin.php
+++ b/upload/admin/controller/payment/bitcoin.php
@@ -61,6 +61,13 @@ public function index() {
$this->data['text_disabled'] = $this->language->get('text_disabled');
$this->data['text_yes'] = $this->language->get('text_yes');
$this->data['text_no'] = $this->language->get('text_no');
+ $this->data['text_8'] = $this->language->get('text_8');
+ $this->data['text_7'] = $this->language->get('text_7');
+ $this->data['text_6'] = $this->language->get('text_6');
+ $this->data['text_5'] = $this->language->get('text_5');
+ $this->data['text_4'] = $this->language->get('text_4');
+ $this->data['text_3'] = $this->language->get('text_3');
+ $this->data['text_2'] = $this->language->get('text_2');
$this->data['entry_username'] = $this->language->get('entry_username');
$this->data['entry_address'] = $this->language->get('entry_address');
@@ -69,6 +76,7 @@ public function index() {
$this->data['entry_prefix'] = $this->language->get('entry_prefix');
$this->data['entry_order_status'] = $this->language->get('entry_order_status');
$this->data['entry_show_btc'] = $this->language->get('entry_show_btc');
+ $this->data['entry_btc_decimal'] = $this->language->get('entry_btc_decimal');
$this->data['entry_countdown_timer'] = $this->language->get('entry_countdown_timer');
$this->data['entry_status'] = $this->language->get('entry_status');
$this->data['entry_sort_order'] = $this->language->get('entry_sort_order');
@@ -167,6 +175,11 @@ public function index() {
} else {
$this->data[$this->payment_module_name.'_show_btc'] = $this->config->get($this->payment_module_name.'_show_btc');
}
+ if (isset($this->request->post[$this->payment_module_name.'_btc_decimal'])) {
+ $this->data[$this->payment_module_name.'_btc_decimal'] = $this->request->post[$this->payment_module_name.'_btc_decimal'];
+ } else {
+ $this->data[$this->payment_module_name.'_btc_decimal'] = $this->config->get($this->payment_module_name.'_btc_decimal');
+ }
if (isset($this->request->post[$this->payment_module_name.'_countdown_timer'])) {
$this->data[$this->payment_module_name.'_countdown_timer'] = $this->request->post[$this->payment_module_name.'_countdown_timer'];
} else {
diff --git a/upload/admin/language/english/payment/bitcoin.php b/upload/admin/language/english/payment/bitcoin.php
index 4034aa3..6557632 100644
--- a/upload/admin/language/english/payment/bitcoin.php
+++ b/upload/admin/language/english/payment/bitcoin.php
@@ -10,6 +10,13 @@
$_['text_bitcoin'] = '';
$_['text_yes'] = 'Yes';
$_['text_no'] = 'No';
+$_['text_8'] = '8';
+$_['text_7'] = '7';
+$_['text_6'] = '6';
+$_['text_5'] = '5';
+$_['text_4'] = '4';
+$_['text_3'] = '3';
+$_['text_2'] = '2';
// Entry
$_['entry_username'] = 'Bitcoin RPC Username:';
@@ -19,6 +26,7 @@
$_['entry_prefix'] = 'The prefix for the address labels:
The account will be in the form [prefix]_[order_id]';
$_['entry_order_status'] = 'Status of a new order:';
$_['entry_show_btc'] = 'Show BTC as a store currency:';
+$_['entry_btc_decimal'] = 'Calculate BTC amount to this many decimal places:';
$_['entry_countdown_timer'] = 'Time to complete order:
In seconds';
$_['entry_status'] = 'Status:';
$_['entry_sort_order'] = 'Sort Order:';
diff --git a/upload/admin/view/template/payment/bitcoin.tpl b/upload/admin/view/template/payment/bitcoin.tpl
index 7a07d03..6dee69a 100644
--- a/upload/admin/view/template/payment/bitcoin.tpl
+++ b/upload/admin/view/template/payment/bitcoin.tpl
@@ -71,6 +71,68 @@ Copyright (c) 2013 John Atkinson (jga)
+
+