Skip to content

Commit e056797

Browse files
committed
Update instructions
1 parent f4e20cb commit e056797

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,18 @@ Released under the GPL V3 license: https://opensource.org/licenses/GPL-3.0
1414
## Installation
1515

1616
1. Upload the files in the `upload` folder to root of your osCommerce store.
17-
1. In: `includes/javascript/javascript.php` add:
18-
```
19-
<script src="https://sdk.paylike.io/3.js"></script>
20-
<script src="<?=DIR_WS_JAVASCRIPT?>paylike.js"></script>
17+
1. In: `includes/template_top.php` add:
2118
```
22-
Between `<?php if($content == 'checkout') { ?> <? } ?>` (line:43-47).
19+
<?php
20+
if ( basename( $PHP_SELF ) == 'checkout_confirmation.php' ) {
21+
?>
22+
<script src="https://sdk.paylike.io/3.js"></script>
23+
<script src="<?php echo DIR_WS_INCLUDES ?>javascript/paylike.js"></script>
24+
<?php
25+
}
26+
?>
27+
```
28+
Anywhere betwen the `head` tags.
2329
1. Install the Paylike module from modules -> payment in the admin
2430
1. Insert the app key and your public key in the settings and enable the plugin
2531

0 commit comments

Comments
 (0)