If it is enabled, then it would have been enabled for a reason and it’s probably not a good idea to disable it. Why would that have anything to do with the problem? No one else mentioned that they had to do that.straightlight wrote: ↑Thu Sep 23, 2021 9:03 amContact your host so that their support staff can do it for you.
Because disabling MOD security is a requirement starting from installation.CJC wrote: ↑Thu Sep 23, 2021 9:17 amIf it is enabled, then it would have been enabled for a reason and it’s probably not a good idea to disable it. Why would that have anything to do with the problem? No one else mentioned that they had to do that.straightlight wrote: ↑Thu Sep 23, 2021 9:03 amContact your host so that their support staff can do it for you.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Ok - 2 followups:straightlight wrote: ↑Thu Sep 23, 2021 9:34 amBecause disabling MOD security is a requirement starting from installation.
1. I don't see any mention of MOD Security in the system requirements section of the OC Documentation.
2. I misunderstood the original post for the modifications. I assumed that the code shown in the post was an example of what he had changed in the 3 files in the attachment. However, this is not the case. The code is for a 4th file that also needs to be modified. Once I modified the 4th file the address information entered at registration is now saved in the customer record.
Then, the issue you were experiencing was with an installed extension.CJC wrote: ↑Thu Sep 23, 2021 9:51 amOk - 2 followups:straightlight wrote: ↑Thu Sep 23, 2021 9:34 amBecause disabling MOD security is a requirement starting from installation.
1. I don't see any mention of MOD Security in the system requirements section of the OC Documentation.
2. I misunderstood the original post for the modifications. I assumed that the code shown in the post was an example of what he had changed in the 3 files in the attachment. However, this is not the case. The code is for a 4th file that also needs to be modified. Once I modified the 4th file the address information entered at registration is now saved in the customer record.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
No, that's not what I said at all. I said that I didn't completely follow the instructions from xxvirusxx. There were 4 files to modify in his solution and I only modified 3. Had nothing to do with any other extension.straightlight wrote: ↑Thu Sep 23, 2021 9:55 amThen, the issue you were experiencing was with an installed extension.
Also, you didn't answer the question about where it is stated that MOD Security needs to be disabled for OC.
File modifications are still about extensions. As for MOD security, it's server-specifics.CJC wrote: ↑Thu Sep 23, 2021 8:16 pmNo, that's not what I said at all. I said that I didn't completely follow the instructions from xxvirusxx. There were 4 files to modify in his solution and I only modified 3. Had nothing to do with any other extension.straightlight wrote: ↑Thu Sep 23, 2021 9:55 amThen, the issue you were experiencing was with an installed extension.
Also, you didn't answer the question about where it is stated that MOD Security needs to be disabled for OC.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
xxvirusxx wrote: ↑Fri May 29, 2020 11:53 pmMake backup of register file from controller, language, template and upload files from attachment.
Or use an text editor to compare with yours and make changes.
You can search by: Start Address to see where I put the code.
LE. In catalog/model/account/customer.php add this line:After:Code: Select all
$this->db->query("INSERT INTO " . DB_PREFIX . "address SET customer_id = '" . (int)$customer_id . "', firstname = '" . $this->db->escape($data['firstname']) . "', lastname = '" . $this->db->escape($data['lastname']) . "', company = '" . $this->db->escape($data['company']) . "', address_1 = '" . $this->db->escape($data['address_1']) . "', address_2 = '" . $this->db->escape($data['address_2']) . "', city = '" . $this->db->escape($data['city']) . "', postcode = '" . $this->db->escape($data['postcode']) . "', country_id = '" . (int)$data['country_id'] . "', zone_id = '" . (int)$data['zone_id'] . "', custom_field = '" . $this->db->escape(isset($data['custom_field']['address']) ? json_encode($data['custom_field']['address']) : '') . "'");
Or you can make ocmod extensionCode: Select all
$customer_id = $this->db->getLastId();
Thank you so much for the contribution! I just started writing one and I stumbled access your much cleaner version!!
Who is online
Users browsing this forum: No registered users and 533 guests