Jump to content

How to add text


BellaHarry

Recommended Posts

Hi, this is my first time here. I am using PrestaShop 1.6 and am a complete novice.

 

I would like to add text to my category pages at the bottom after the products and before footer.

 

I don't know how to use hooks, I am totally confused. Could someone please help? I didn't think it would be so hard to add text to any page other than the home page.

 

Thank you.

Link to comment
Share on other sites

It's explained in my modules course actually, virtually impossible to describe step by step here in the forum.
Basically create a module that creates a new hook, have it hook to the category back office as well. It also needs to whether extend the category class or create a new table to hold the setting

Then it would add a box in the category config page through that hook, where you could save the text for each category.

The last step would be adding the hook variable to category.tpl (theme folder) to display stuff.

The module obviously needs to output through it

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...