File tree Expand file tree Collapse file tree 6 files changed +21
-7
lines changed
admin/view/template/payment
catalog/controller/payment/mollie-api-client Expand file tree Collapse file tree 6 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Changelog #
4
4
5
+ #### Changes in release 10.0.1
6
+ + Fixed bug while saving API keys in multi-store setup
7
+ + Fixed bug that showed Mollie in payments list twice in admin
8
+
5
9
#### Changes in release 10.0.0
6
10
+ Created two separate versions of the module for OCMOD and VQMOD
7
11
+ Removed "util" support
Original file line number Diff line number Diff line change 276
276
<div class =" input-group message-block" >
277
277
<input type =" text" name =" <?php echo $store['store_id']; ?>_<?php echo $code; ?>_api_key" value =" <?php echo $store[$code . '_api_key']; ?>" placeholder =" live_..." id =" <?php echo $code; ?>_api_key" class =" form-control" store =" <?php echo $store['store_id']; ?>" <?php echo $store[ ' store_id' ]; ? >-data-payment-mollie-api-key/>
278
278
<input type =" text" value =" " class =" form-control" <?php echo $store[ ' store_id' ]; ? >-data-payment-mollie-api-key-hide>
279
- <span class =" toggleAPIKey" >Show</span >
279
+ <span class =" toggleAPIKey<?php echo $store['store_id']; ?> " >Show</span >
280
280
</div >
281
281
<?php if ($store['error_api_key']) { ?>
282
282
< div class= " text-danger" >< ?php echo $store [' error_api_key' ]; ?>< /div>
@@ -824,7 +824,7 @@ $(document).ready(function () {
824
824
$(' [<?php echo $store["store_id"] ?>-data-payment-mollie-api-key]' ).hide();
825
825
$(' [<?php echo $store["store_id"] ?>-data-payment-mollie-api-key-hide]' ).val(prefix + ' ******************************' );
826
826
827
- const toggleAPIKey = document.querySelector(' .toggleAPIKey' );
827
+ const toggleAPIKey = document.querySelector(' .toggleAPIKey<?php echo $store[ ' store_id ' ]; ?> ' );
828
828
829
829
toggleAPIKey.addEventListener(' click' , function (e) {
830
830
var elem1 = $(' [<?php echo $store["store_id"] ?>-data-payment-mollie-api-key-hide]' );
Original file line number Diff line number Diff line change 276
276
<span class =" input-group-addon" ><?php echo ($store[$code . '_api_key']) ? '<i class =" fa fa-check text-success" ></i >' : '<i class =" fa fa-minus" ></i >' ;?></span >
277
277
<input type =" text" name =" <?php echo $store['store_id']; ?>_<?php echo $code; ?>_api_key" value =" <?php echo $store[$code . '_api_key']; ?>" placeholder =" live_..." id =" <?php echo $code; ?>_api_key" class =" form-control" store =" <?php echo $store['store_id']; ?>" <?php echo $store[ ' store_id' ]; ? >-data-payment-mollie-api-key/>
278
278
<input type =" text" value =" " class =" form-control" <?php echo $store[ ' store_id' ]; ? >-data-payment-mollie-api-key-hide>
279
- <span class =" input-group-addon toggleAPIKey" ><i class =" fa fa-eye" ></i ></span >
279
+ <span class =" input-group-addon toggleAPIKey<?php echo $store['store_id']; ?> " ><i class =" fa fa-eye" ></i ></span >
280
280
</div >
281
281
<?php if ($store['error_api_key']) { ?>
282
282
< div class= " text-danger" >< ?php echo $store [' error_api_key' ]; ?>< /div>
@@ -868,7 +868,7 @@ $(document).ready(function () {
868
868
$(' [<?php echo $store["store_id"] ?>-data-payment-mollie-api-key]' ).hide();
869
869
$(' [<?php echo $store["store_id"] ?>-data-payment-mollie-api-key-hide]' ).val(prefix + ' ******************************' );
870
870
871
- const toggleAPIKey = document.querySelector(' .toggleAPIKey' );
871
+ const toggleAPIKey = document.querySelector(' .toggleAPIKey<?php echo $store[ ' store_id ' ]; ?> ' );
872
872
873
873
toggleAPIKey.addEventListener(' click' , function (e) {
874
874
var elem1 = $(' [<?php echo $store["store_id"] ?>-data-payment-mollie-api-key-hide]' );
Original file line number Diff line number Diff line change 5
5
class MollieHelper extends Controller
6
6
{
7
7
8
- const PLUGIN_VERSION = "10.0.0 " ;
8
+ const PLUGIN_VERSION = "10.0.1 " ;
9
9
10
10
const OUTH_URL = 'https://api.mollie.com/oauth2 ' ;
11
11
Original file line number Diff line number Diff line change @@ -887,7 +887,12 @@ if (!confirm('{{ text_confirm_refund }}')) {
887
887
<operation error =" skip" >
888
888
<search ><![CDATA[ $data['extensions'][] = array(]]> </search >
889
889
<add position =" before" >
890
- <![CDATA[ if (preg_match('/mollie_[a-z]*/i', $extension)) continue;]]>
890
+ <![CDATA[
891
+ if (version_compare(VERSION, '2.3.0.2', '==') && ($file == DIR_APPLICATION . 'controller/payment/mollie.php')) {
892
+ continue;
893
+ }
894
+
895
+ if (preg_match('/mollie_[a-z]*/i', $extension)) continue;]]>
891
896
</add >
892
897
</operation >
893
898
</file >
Original file line number Diff line number Diff line change @@ -886,7 +886,12 @@ if (!confirm('{{ text_confirm_refund }}')) {
886
886
<operation error =" skip" >
887
887
<search ><![CDATA[ $data['extensions'][] = array(]]> </search >
888
888
<add position =" before" >
889
- <![CDATA[ if (preg_match('/mollie_[a-z]*/i', $extension)) continue;]]>
889
+ <![CDATA[
890
+ if (version_compare(VERSION, '2.3.0.2', '==') && ($file == DIR_APPLICATION . 'controller/payment/mollie.php')) {
891
+ continue;
892
+ }
893
+
894
+ if (preg_match('/mollie_[a-z]*/i', $extension)) continue;]]>
890
895
</add >
891
896
</operation >
892
897
</file >
You can’t perform that action at this time.
0 commit comments