File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments