Jump to content

Custom Module


Recommended Posts

Hi, I have created an app that at the moment is private and shared through a zip file for testing purposes.

What I want to do is to add an alert div before the configuration form (see example screenshot). The issue is that I am not finding any documentation regarding the different elements I can add to the page. Do you have any recommendations?1531201489_Schermata2022-06-15alle17_52_16.thumb.png.d0b03cd08b24ab28dc02bfa61e1f221d.png

Link to comment
Share on other sites

And where is the problem?
You have a function for displaying content, the form getContent ().
Add your own div to this feature.

https://devdocs.prestashop.com/1.7/modules/creation/adding-configuration-page/

 

public function getContent()
{
	$output = '';
	$output .= '<div class="alert alert-danger" role="alert">'.$this->l('here is top alert message').'<div>';
      
	return $output . $this->displayForm();
}

 

Edited by knacky (see edit history)
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...