zsadam Posted March 25, 2021 Share Posted March 25, 2021 Hello, I have a PS 1.7.3.0 and from my page missing sign in/login in button. I want to put it on top but when i click on transplant module button after a minute loading i get error 500. Is there way to transplant it manually? Thanks in advance for the tips. Link to comment Share on other sites More sharing options...
joseantgv Posted March 26, 2021 Share Posted March 26, 2021 This is a bug in your version. Check table ps_hook_module. You just need to find the ID from the module and from the hook to insert a record. Link to comment Share on other sites More sharing options...
zsadam Posted April 2, 2021 Author Share Posted April 2, 2021 On 3/26/2021 at 5:04 PM, joseantgv said: This is a bug in your version. Check table ps_hook_module. You just need to find the ID from the module and from the hook to insert a record. Hello, so i found that displaytop hook is ID 21, and ps_customersignin module is ID 187. So how can i assign them. Im not really good in sql. Link to comment Share on other sites More sharing options...
musicmaster Posted April 3, 2021 Share Posted April 3, 2021 On 4/2/2021 at 11:18 AM, zsadam said: Hello, so i found that displaytop hook is ID 21, and ps_customersignin module is ID 187. So how can i assign them. Im not really good in sql. You can do that in the backoffice in Design->Positions and the "Transplant a hook". "Transplant a hook" is a bit of a misnomer as it is about adding a hook for a module. Link to comment Share on other sites More sharing options...
zsadam Posted April 3, 2021 Author Share Posted April 3, 2021 Thanks but my problem is exactly that when i click on transplant module button i get error 500 Link to comment Share on other sites More sharing options...
musicmaster Posted April 3, 2021 Share Posted April 3, 2021 You need to do two queries. First you need to find the first free position for this hook. That looks like SELECT max(position) as pos FROM ps_hook_module WHERE id_hook=21 You add one to that position for the next query. So if it was 8 the next query will be: INSERT INTO ps_hook SET id_hook=21,id_module=187, id_shop=1,position=9 Link to comment Share on other sites More sharing options...
zsadam Posted April 3, 2021 Author Share Posted April 3, 2021 5 minutes ago, musicmaster said: You need to do two queries. First you need to find the first free position for this hook. That looks like SELECT max(position) as pos FROM ps_hook_module WHERE id_hook=21 You add one to that position for the next query. So if it was 8 the next query will be: INSERT INTO ps_hook SET id_hook=21,id_module=187, id_shop=1,position=9 Thank you! However (as a not expert) where do i write these queries? Link to comment Share on other sites More sharing options...
musicmaster Posted April 3, 2021 Share Posted April 3, 2021 8 minutes ago, zsadam said: Thank you! However (as a not expert) where do i write these queries? Phpmyadmin. You have no choice. You will need to learn to use this. Link to comment Share on other sites More sharing options...
zsadam Posted April 3, 2021 Author Share Posted April 3, 2021 26 minutes ago, musicmaster said: Phpmyadmin. You have no choice. You will need to learn to use this. So i found that for first query pos 3, so second query needs to be position=4, however when i run it, it returns error #1054 - Unknown column 'id_module' in 'field list' Link to comment Share on other sites More sharing options...
musicmaster Posted April 3, 2021 Share Posted April 3, 2021 I see. I had an error in the second line. It should be: INSERT INTO ps_hook_module SET id_hook=21,id_module=187, id_shop=1,position=9 1 Link to comment Share on other sites More sharing options...
zsadam Posted April 3, 2021 Author Share Posted April 3, 2021 7 minutes ago, musicmaster said: I see. I had an error in the second line. It should be: INSERT INTO ps_hook_module SET id_hook=21,id_module=187, id_shop=1,position=9 Omg man! Big thanks! It works! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now