@@ -66,7 +66,7 @@ public function __construct()
6666 }
6767
6868 /**
69- * back office module configuration page content
69+ * Back office module configuration page content
7070 */
7171 public function getContent ()
7272 {
@@ -91,7 +91,8 @@ public function hookDisplayHeader($params, $back_office = false)
9191 }
9292
9393 /**
94- * To track transactions
94+ * Confirmation page hook.
95+ * This function is run to track transactions.
9596 */
9697 public function hookDisplayOrderConfirmation ($ params )
9798 {
@@ -102,7 +103,8 @@ public function hookDisplayOrderConfirmation($params)
102103 }
103104
104105 /**
105- * hook footer to load JS script for standards actions such as product clicks
106+ * Footer hook.
107+ * This function is run to load JS script for standards actions such as product clicks
106108 */
107109 public function hookDisplayFooter ()
108110 {
@@ -112,7 +114,8 @@ public function hookDisplayFooter()
112114 }
113115
114116 /**
115- * hook home to display generate the product list associated to home featured, news products and best sellers Modules
117+ * Homepage hook.
118+ * This function is run to manage analytics for product list associated to home featured, news products and best sellers Modules
116119 */
117120 public function hookDisplayHome ()
118121 {
@@ -122,7 +125,8 @@ public function hookDisplayHome()
122125 }
123126
124127 /**
125- * hook product page footer to load JS for product details view
128+ * Product page footer hook
129+ * This function is run to load JS for product details view
126130 */
127131 public function hookDisplayFooterProduct ($ params )
128132 {
@@ -133,7 +137,8 @@ public function hookDisplayFooterProduct($params)
133137 }
134138
135139 /**
136- * Hook admin order to send transactions and refunds details
140+ * Hook admin order.
141+ * This function is run to send transactions and refunds details
137142 */
138143 public function hookDisplayAdminOrder ()
139144 {
@@ -150,7 +155,8 @@ public function hookDisplayAdminOrder()
150155 }
151156
152157 /**
153- * admin office header to add google analytics js
158+ * Admin office header hook.
159+ * This function is run to add Google Analytics JavaScript
154160 */
155161 public function hookDisplayBackOfficeHeader ()
156162 {
@@ -160,7 +166,8 @@ public function hookDisplayBackOfficeHeader()
160166 }
161167
162168 /**
163- * Hook admin office header to add google analytics js
169+ * Product cancel action hook (in Back office).
170+ * This function is run to add Google Analytics JavaScript
164171 */
165172 public function hookActionProductCancel ($ params )
166173 {
@@ -180,7 +187,8 @@ public function hookActionOrderStatusPostUpdate($params)
180187 }
181188
182189 /**
183- * hook save cart event to implement addtocart and remove from cart functionality
190+ * Save cart event hook.
191+ * This function is run to implement 'add to cart' and 'remove from cart' functionalities
184192 */
185193 public function hookActionCartSave ()
186194 {
@@ -209,9 +217,9 @@ protected function _debugLog($function, $log)
209217 }
210218
211219 /**
212- * This method is trigger at the installation of the module
213- * - install all module tables
214- * - register hook used by the module.
220+ * This method is triggered at the installation of the module
221+ * - it installs all module tables
222+ * - it registers the hooks used by this module
215223 *
216224 * @return bool
217225 */
@@ -230,7 +238,7 @@ public function install()
230238
231239 /**
232240 * Triggered at the uninstall of the module
233- * - erase tables
241+ * - erases this module SQL tables
234242 *
235243 * @return bool
236244 */
0 commit comments