pasivnyprijem Posted November 25, 2011 Share Posted November 25, 2011 Hi I would need to hook my module in the price "buy_block" as per print screen below (add here). anybody ani idea how to hook it there? Thanks Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted November 25, 2011 Share Posted November 25, 2011 In order to hook a module there you are going to need to create your own hook and then edit your tpl file to add your custom hook. You will then need to transplant your module to your custom hook. If you don't really know your way around PS this might be challenging. If you can explain in greater detail what you are trying to do I might be able to offer a different solution. Marty Shue Link to comment Share on other sites More sharing options...
Ehinarr Posted November 26, 2011 Share Posted November 26, 2011 Yor module must be hooked on "productactions" hook, that means you must add this line on install function: OR !$this->registerHook('productActions') and must have inside your module also this function: public function hookProductActions($params) { global $smarty; $smarty->assign('id_product', (int)(Tools::getValue('id_product'))); return ($this->display(__FILE__, 'your_module.tpl')); } You can also do not display any .tpl file, but just the smarty variables that you want to display on product.tpl file. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now