@@ -5,7 +5,6 @@ available by a user.
55
66Released under the GPL V3 license: https://opensource.org/licenses/GPL-3.0
77
8-
98## Supported osCommerce versions
109
1110* The plugin has been tested with osCommerce v.2.3.4.1 and osCommerce CE Phoenix
@@ -25,8 +24,8 @@ Released under the GPL V3 license: https://opensource.org/licenses/GPL-3.0
2524 <script src="https://sdk.paylike.io/3.js"></script>
2625 <script src= "includes/javascript/paylike.js"></script>
2726 <?php
28- }
29- ?>
27+ }
28+ ?>
3029 ```
3130 Anywhere betwen the `head` tags.
3231 6. In: `includes/.htaccess` add:
@@ -37,9 +36,41 @@ Released under the GPL V3 license: https://opensource.org/licenses/GPL-3.0
3736
3837 ```
3938 After the last line.
40- 7. Install the Paylike module from modules -> payment in the admin
41- 8. Insert the app key and your public key in the settings and enable the plugin
39+ 7. In: `admin/modules.php`
40+ 7.1.Add:
41+ ```
42+ require_once('includes/modules/payment/paylike/errors.php');
43+ ```
44+ Before require 'includes/application_top.php'; line;
45+
46+ 7.2.Add:
47+ ```
48+ require_once('includes/modules/payment/paylike/validate.php');
49+ ```
50+ After case 'save': line;
51+
52+ 7.3.Replace tep_db_query("UPDATE configuration SET configuration_value = '" . tep_db_input($value) . "' WHERE configuration_key = '" . tep_db_input($key) . "'"); line with:
53+ ```
54+ if(sizeof($errors) === 0 || array_search($key, $validation_keys) === FALSE){
55+ tep_db_query("UPDATE configuration SET configuration_value = '" . tep_db_input($value) . "' WHERE configuration_key = '" . tep_db_input($key) . "'");
56+ }
57+ ```
4258
59+ 7.4.Add:
60+ ```
61+ if(sizeof($errors)){
62+ tep_redirect(tep_href_link('modules.php', 'set=' . $set . '&module=' . $_GET['module'] . '&action=edit'));
63+ }
64+ ```
65+ Before tep_redirect(tep_href_link('modules.php', 'set=' . $set . '&module=' . $_GET['module'])); line;
66+
67+ 7.5.Add:
68+ ```
69+ <?php if(isset($errorHandler))$errorHandler->display(); ?>
70+ ```
71+ Before <div class="row no-gutters"> line.
72+ 8. Install the Paylike module from modules -> payment in the admin
73+ 9. Insert the app key and your public key in the settings and enable the plugin
4374
4475## Updating settings
4576
0 commit comments