Skip to content

Commit 577fc94

Browse files
committed
v1.0.4
* Add new choices for order cancellation. * Minor bugfixes
1 parent f48f7d8 commit 577fc94

File tree

4 files changed

+37
-12
lines changed

4 files changed

+37
-12
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,9 @@ The easiest and fastest way is via our live chat on our [website](https://blockb
134134
#### 1.0.3
135135
* Minor bugfixes.
136136

137+
#### 1.0.4
138+
* Add new choices for order cancellation.
139+
* Minor bugfixes.
140+
137141
### Upgrade Notice
138142
* No breaking changes

admin/language/en-gb/payment/blockbee.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
$_['sixty_minutes'] = 'Every 60 Minutes';
6161

6262
$_['order_cancelation_timeout'] = 'Order cancelation timeout';
63+
$_['fifteen_minutes_cancellation'] = '15 Minutes';
64+
$_['thirty_minutes_cancellation'] = '30 Minutes';
65+
$_['forty_five_minutes_cancellation'] = '45 Minutes';
6366
$_['one_hour'] = '1 Hour';
6467
$_['six_hours'] = '6 Hours';
6568
$_['twelve_hours'] = '12 Hours';
@@ -91,4 +94,4 @@
9194
$_['info_icon'] = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="ms-1 bi bi-info-circle" viewBox="0 0 16 16">
9295
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
9396
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
94-
</svg>';
97+
</svg>';

admin/view/template/payment/blockbee.twig

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,24 @@
441441
{% endif %}
442442
>{{ never }}
443443
</option>
444+
<option value="900"
445+
{% if payment_blockbee_order_cancelation_timeout == '900' %}
446+
selected="selected"
447+
{% endif %}
448+
>{{ fifteen_minutes_cancellation }}
449+
</option>
450+
<option value="1800"
451+
{% if payment_blockbee_order_cancelation_timeout == '1800' %}
452+
selected="selected"
453+
{% endif %}
454+
>{{ thirty_minutes_cancellation }}
455+
</option>
456+
<option value="2700"
457+
{% if payment_blockbee_order_cancelation_timeout == '2700' %}
458+
selected="selected"
459+
{% endif %}
460+
>{{ forty_five_minutes_cancellation }}
461+
</option>
444462
<option value="3600"
445463
{% if payment_blockbee_order_cancelation_timeout is empty or payment_blockbee_order_cancelation_timeout == '3600' %}
446464
selected="selected"
@@ -454,7 +472,7 @@
454472
>{{ six_hours }}
455473
</option>
456474
<option value="43200"
457-
{% if payment_blockbee_order_cancelation_timeout == '21600' %}
475+
{% if payment_blockbee_order_cancelation_timeout == '43200' %}
458476
selected="selected"
459477
{% endif %}
460478
>{{ twelve_hours }}
@@ -534,22 +552,22 @@
534552
<div class="col-12 text-center" style="margin-bottom: 20px">
535553
<label class="control-label text-center" style="float: none !important;">
536554
{{ entry_cryptocurrencies }}
537-
</label>
555+
</label>
538556
</div>
539-
<div class="col-sm-4 center">
557+
<div class="col-sm-4 center">
540558
<input type="hidden" id="blockbee_cryptocurrencies_array_cache" name="payment_blockbee_cryptocurrencies_array_cache"
541559
value='{{ payment_blockbee_cryptocurrencies_array|json_encode() }}'>
542-
560+
543561
<select name="payment_blockbee_cryptocurrencies[]" multiple="multiple" size="10" id="payment_cry" class="form-select">
544562
{% for ticker, coin in payment_blockbee_cryptocurrencies_array %}
545563
<option value='{{ ticker }}'
546564
{{ payment_blockbee_cryptocurrencies[ticker] is defined and payment_blockbee_cryptocurrencies[ticker] == ticker ? 'selected="selected"' : '' }}
547565
>{{ coin['name'] }}
548566
</option>
549-
{% endfor %}
550-
</select>
551-
552-
</div>
567+
{% endfor %}
568+
</select>
569+
570+
</div>
553571
</div>
554572
<div class="row mb-3">
555573
<div class="col-12">
@@ -568,4 +586,4 @@
568586
</div>
569587
</div>
570588
</div>
571-
{{ footer }}
589+
{{ footer }}

install.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "BlockBee Payment Module",
33
"code": "blockbee",
4-
"version": "1.0.3",
4+
"version": "1.0.4",
55
"author": "BlockBee",
66
"link": "https://blockbee.io"
7-
}
7+
}

0 commit comments

Comments
 (0)