lepusa Posted May 6, 2016 Share Posted May 6, 2016 We would like to include a custom CMS block on the checkout pages, but only for some customer groups. This screen shot in Live View shows some text in red which we added by editing '/themes/default-bootstrap/order-steps.tpl': It is this info that we would like to place instead into a module that we can then control access to based on customer groups. Is the block named 'Theme configurator' accessible for this purpose? If not, is there a way to add a CSS class to certain pages based on customer groups? That would be another solution using our current 'order-steps.tpl' modification. Thanks! Link to comment Share on other sites More sharing options...
Daresh Posted May 6, 2016 Share Posted May 6, 2016 1. Add a custom hook in that place 2. Create a simple module that displays this text on that hook. 3. Set this modules access to only that group that you want to. Theme configurator itself won't do, because you need to set access to the whole module. I cases like this I create a copy of Theme Configurator with some custom hooks and set it's access. Link to comment Share on other sites More sharing options...
lepusa Posted May 6, 2016 Author Share Posted May 6, 2016 1. Add a custom hook in that place 2. Create a simple module that displays this text on that hook. 3. Set this modules access to only that group that you want to. Theme configurator itself won't do, because you need to set access to the whole module. I cases like this I create a copy of Theme Configurator with some custom hooks and set it's access. Thanks for the tips Daresh. 1. I have successfully created a custom hook named 'CheckoutNote' using this HookManager module. 2. I created a Custom CMS Information Block ('blockcmsinfo') with a Block ID of 1 (is this correct?) 3. Before I do this I believe there is more I need to do to make the custom hook accessible. How do I do this? Is this why I need to create a copy of the Theme Configurator block? Link to comment Share on other sites More sharing options...
Daresh Posted May 6, 2016 Share Posted May 6, 2016 You need a module that will register on that hook. There may be some tools to let you manage this, but I always prefer to code it myself. Write me a private message and I will send you my "Theme Configurator copy" module, it is still in development, not a final version, but should do the job for you. 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