|
@@ -361,6 +361,13 @@ function LoadProducts(position, issubcat) {
|
|
|
$("#prodiv"+ishow).attr("class","wrapper2");
|
|
|
$("#prowatermark"+ishow).hide();
|
|
|
ishow++; //Next product to show after print data product
|
|
|
+ <?php
|
|
|
+ // Add js from hooks
|
|
|
+ $parameters=array();
|
|
|
+ $parameters['caller'] = 'loadProducts';
|
|
|
+ $hookmanager->executeHooks('completeJSProductDisplay', $parameters);
|
|
|
+ print $hookmanager->resPrint;
|
|
|
+ ?>
|
|
|
}
|
|
|
//console.log("Hide the prowatermark for ishow="+ishow);
|
|
|
idata++; //Next data everytime
|
|
@@ -627,6 +634,15 @@ function Search2(keyCodeForEnter, moreorless) {
|
|
|
}
|
|
|
$("#prodiv" + i).data("rowid", data[i]['rowid']);
|
|
|
$("#prodiv" + i).data("iscat", 0);
|
|
|
+
|
|
|
+ <?php
|
|
|
+ // Add js from hooks
|
|
|
+ $parameters=array();
|
|
|
+ $parameters['caller'] = 'search2';
|
|
|
+ $hookmanager->executeHooks('completeJSProductDisplay', $parameters);
|
|
|
+ print $hookmanager->resPrint;
|
|
|
+ ?>
|
|
|
+
|
|
|
nbsearchresults++;
|
|
|
}
|
|
|
}).always(function (data) {
|