Skip to content

Commit fc5a581

Browse files
Merge pull request #2 from nofrixion/fix-helper-dialog
Fix helper dialog
2 parents feb6206 + 57a4248 commit fc5a581

File tree

5 files changed

+34
-19
lines changed

5 files changed

+34
-19
lines changed

README.md

+20-10
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,32 @@ It is recommended to use the `composer` PHP package manager for production magen
1414

1515
### Installation ###
1616

17-
- Install the files:
18-
- Using composer (recommended). Run `composer require nofrixion/magento2-payments-module`
19-
- Using a ZIP file (not recommended). Unzip the ZIP file in `app/code/Nofrixion/Payments`
20-
- Enable the module by running `php bin/magento module:enable Nofrixion_Payments`
21-
- Apply database updates by running `php bin/magento setup:upgrade` (for production, also add the parameter `--keep-generated` or you will need to run `php bin/magento setup:di:compile` again.)
22-
- Flush the cache by running `php bin/magento cache:flush`
17+
- Install the NoFrixion payments module using composer by running the following commands:
18+
19+
```bash
20+
composer require nofrixion/magento2-payments-module
21+
php bin/magento module:enable Nofrixion_Payments
22+
php bin/magento setup:upgrade
23+
php bin/magento setup:di:compile
24+
php bin/magento cache:flush
25+
```
26+
27+
\* it is also possible to install the module by downloading the ZIP file from github and extracting it to `{magento-install-directory/app/code/Nofrixion/Payments`. Then run the last four commands in the sequence above to enable the plugin. This method is NOT recommended for production environments.
2328

2429
Note, there are several third-party caching products that may be deployed in your Magento environment and prevent the payments module from appearing in the Magento administration interface. If the Nofrixion Payments module is not visible after following the above steps, most third party caches will be cleared by restarting the apache server.
2530

2631
### Updates ###
2732

28-
If you have installed the payments module using the composer command specified above, you can update the plugin using composer. The following procedure will update the payments plugin to the most recent stable version:
33+
If you have installed the payments module using the composer command specified above, you can update the plugin using composer. From a shell session on your magento server, run:
34+
35+
```bash
36+
composer update nofrixion/magento2-payments-module
37+
php bin/magento setup:upgrade
38+
php bin/magento setup:di:compile
39+
php bin/magento cache:flush
40+
```
2941

30-
- From a shell session on your magento server, run `composer update nofrixion/magento2-payments-module`.
31-
- Apply database updates by running `php bin/magento setup:upgrade` (for production, also add the parameter `--keep-generated` or you will need to run `php bin/magento setup:di:compile` again.)
32-
- Flush the cache by running `php bin/magento cache:flush`
42+
If you are updating a production environment, we recommend [placing the store in maintenance mode](https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/tutorials/maintenance-mode.html) first.
3343

3444
### Removal ###
3545

view/frontend/layout/checkout_index_index.xml

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?xml version="1.0" ?>
22
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
3+
<head>
4+
<css src="Nofrixion_Payments::css/nofrixion-styles.css"/>
5+
</head>
36
<body>
47
<referenceBlock name="checkout.root">
58
<arguments>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#spacer {
2+
padding-left: 10%;
3+
}
+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.nofrixion-tooltip {
2-
.lib-tooltip(right,
3-
@_tooltip-min-width: 400px,
4-
@_tooltip-max-width: 800px,
5-
@_tooltip-arrow-size: 5px);
6-
}
2+
.lib-tooltip(bottom,
3+
@_tooltip-arrow-size: 0px);
4+
z-index: 2;
5+
}

view/frontend/web/template/payment/nofrixion.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label>
77

88
<!-- BEGIN Nofrixion tooltip -->
9-
10-
<span class="nofrixion-tooltip" style="padding-left: 20%;">
9+
<span id="spacer"></span>
10+
<span class="nofrixion-tooltip">
1111
<a href="#" class="tooltip-toggle" data-bind="text: 'What is ' + getTitle() + '?'"></a>
1212
<span class="tooltip-content">
13-
<span style="display: inline-block; vertical-align: top; padding: 1em; width: 40%;">
13+
<span style="display: inline-block; vertical-align: top; padding: 1em">
1414
<p>Pay by bank allows you to make a payment directly from your bank account without using a credit
1515
card or other payment methods.</p>
1616
</span>
17-
<span style="display: inline-block;width: 50%;">
17+
<span style="display: inline-block">
1818
<img src="https://cdn.nofrixion.com/img/paybybank.gif"
1919
alt="Pay by bank animation.">
2020
</img>

0 commit comments

Comments
 (0)