News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

hooks

Started by natdroid, July 29, 2015, 05:59:20 AM

Previous topic - Next topic

natdroid

CorDevelopers, please consider adding more hooks to the default template. We need hooks in product_listing, <head> and other pages
It would be a great addition

eCommerce Core

Please provide more detailed suggestion and we will add hooks or give you an alternative suggestion

eCommerce Core

Quote from: natdroid on September 01, 2015, 01:52:26 AM
/storefront/view/default/template/common/page.tpl  hook inside <head> tag

/storefront/view/default/template/pages/product/product_listing.tpl   

/storefront/view/default/template/common/footer.tpl

You do not need hook for the head. You can append to head.tpl template with _post.tpl or simply applied with woking to head.php controller.

Where do you suggest hooks in /storefront/view/default/template/pages/product/product_listing.tpl  or /storefront/view/default/template/common/footer.tpl  ?



eCommerce Core

Quote from: natdroid on September 10, 2015, 07:16:20 AM
admin/view/default/template/pages/sale/order_history.tpl
hk_order_comment_pre  hook must get triggered somewhere after the foreach loop  :-\
You are right about this. Updated for 1.2.4

https://github.com/abantecart/abantecart-src/commit/fd05b0f419c2ecebc573795350ef860fcf4ee2b8

Thank you for pointing this out.

abolabo

Quote from: natdroid on September 13, 2015, 09:08:38 AM
Quote from: eCommerce Core on September 11, 2015, 11:58:00 AM
You do not need hook for the head. You can append to head.tpl template with _post.tpl

example Please!


1. open main.php file of your extension (see folder extensions/your_ext_txt_id ) and add 'common/head.post.tpl' into array $templates = array('storefront' => ()...
2. create file extensions/your_ext_txt_id/storefront/view/your_ext_txt_id/template/common/head.post.tpl and place some html-code into it.
3. enjoy :)

abolabo


abolabo



Forum Rules Code of conduct
AbanteCart.com 2010 -