Search the Community
Showing results for tags 'execute'.
-
I use two functions in my custom code lets say function Query and function QueryLang The first one returns db::getInstance()->executeS($sql); In the second one after I prepare my query to include the respective _lang table, I call the first one but in bux fixing when I was doing var_dump($result) it was showing as text and not array. Why?
-
Hello community, I want to execute some code when order is validated but I want to have access to some data from order. How I can achieve that? In my case I want to add something to actionUpdateQuantity and actionValidateOrder hooks in my module but I don't know how I should call for parametrs like $id_product, $id_product_attribute, $quantity in public function hookActionValidateOrder() { //logic here with some vars that I would to know how to get } Any help will be very appreciated. ------------------------------------------ EDIT ------------------------------------------ I found this thread with very good explanation -> https://www.prestashop.com/forums/topic/276894-how-to-use-action-hooks/?do=findComment&comment=1392070 and this is very usefull as well -> http://doc.prestashop.com/display/PS15/Hooks+in+PrestaShop+1.5
-
Hello, I have a question aobut hooks. Let me give you an example. I installed module "blockspecials" which is hooked to the "displayRightColumn" and nowhere else. I also searched all my tpl files and there are no "{$HOOK_RIGHT_COLUMN}" anywhere inside. But when I do: "echo 'test';" inside hookRightColumn function of blockspecials module, the text "test" is visible on every page. Why is that? It's pointless for me because it seems that code of every installed module executes always (tpl files ale unimportant in this case).