Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Here's a list of all hooks in 2.0.12 Rate Topic   * * * * * 1 votes

 
  • johndoe
  • Junior Member
  • Members
  • Join Date: 07-Apr 09
  • 10 posts

Posted 26 January 2010 - 07:50 PM #1

I'm creating a number of custom addons and tried to find a list of all available hooks. Perhaps it's my shortcoming but I couldn't find a list anywhere. I finally resorted to searching over all php files to see where fn_set_hook is called. This gave me a list of (all?) hooks currently used in version 2.0.12

I though I would share it here for others who might be interested:

Sorted per file where the hook is called:
HOOK                                           FILE
--------------------------------------------   -------------------------------------------------------
delete_event                                   addons/gift_registry/func.php
update_event                                   addons/gift_registry/func.php
get_tag_objects                                addons/tags/controllers/admin/tags.php
delete_banners                                 addons/banners/controllers/admin/banners.php
get_banners                                    addons/banners/func.php
stat_product_search_data                       addons/statistics/controllers/admin/statistics.php
get_discussion_object_data                     addons/discussion/func.php
get_discussion_objects                         addons/discussion/func.php
is_accessible_discussion                       addons/discussion/func.php
buy_together_restricted_product                addons/buy_together/controllers/admin/products.post.php
buy_together_restricted_product                addons/buy_together/func.php
buy_together_pre_add_to_cart                   addons/buy_together/func.php
get_gift_certificate_info                      addons/gift_certificates/func.php
delete_gift_certificate                        addons/gift_certificates/func.php
delete_news                                    addons/news_and_emails/controllers/admin/news.php
get_news_data                                  addons/news_and_emails/func.php
update_news                                    addons/news_and_emails/func.php
update_newsletter                              addons/news_and_emails/func.php
sitemap_link_object                            addons/google_sitemap/func.php
sitemap_link                                   addons/google_sitemap/func.php
sitemap_item                                   addons/google_sitemap/func.php
rma_recalculate_order                          addons/rma/func.php
order_products_post                            addons/recurring_billing/func.php
get_price_function                             addons/recurring_billing/js/func.js
seo_link                                       addons/seo/func.php
convert_tpl_url                                addons/seo/func.php
convert_php_url                                addons/seo/func.php
get_seo_vars                                   addons/seo/func.php
get_rewrite_rules                              addons/seo/func.php
validate_sef_object                            addons/seo/func.php
seo_is_indexed_page                            addons/seo/func.php
pre_add_to_wishlist                            addons/wishlist/controllers/customer/wishlist.php
delete_wishlist_product                        addons/wishlist/controllers/customer/wishlist.php
auth_routines                                  controllers/common/auth.php
reorder                                        controllers/customer/orders.php
checkout_profile_update                        controllers/customer/checkout.php
prepare_checkout_payment_methods               controllers/customer/checkout.php
checkout_summary                               controllers/customer/checkout.php
top_menu_form                                  controllers/customer/init.php
delete_order                                   controllers/admin/orders.php
get_shipments                                  controllers/admin/shipments.php
get_status_params_definition                   controllers/admin/statuses.php
exim_get_product_url                           controllers/admin/exim.php
update_page                                    controllers/admin/pages.php
delete_page                                    controllers/admin/pages.php
clone_page                                     controllers/admin/pages.php
page_object_by_type                            controllers/admin/pages.php
update_product                                 controllers/admin/products.php
clone_product                                  controllers/admin/products.php
global_update                                  controllers/admin/products.php
get_product_options                            controllers/admin/product_options.php
update_shipping                                controllers/admin/shippings.php
delete_category                                controllers/admin/categories.php
delete_user                                    controllers/admin/profiles.php
get_manifest_definition                        controllers/admin/site_layout.php
localization_objects                           controllers/admin/localizations.php
get_carts                                      controllers/admin/cart.php
profile_fields_areas                           controllers/admin/profile_fields.php
update_product_feature                         controllers/admin/product_features.php
get_cart_product_data                          core/fn.cart.php
get_payment_methods                            core/fn.cart.php
summary_get_payment_method                     core/fn.cart.php
update_product_amount                          core/fn.cart.php
pre_place_order                                core/fn.cart.php
edit_place_order                               core/fn.cart.php
place_order                                    core/fn.cart.php
save_cart                                      core/fn.cart.php
extract_cart                                   core/fn.cart.php
get_cart_item_types                            core/fn.cart.php
get_order_info                                 core/fn.cart.php
change_order_status                            core/fn.cart.php
exclude_products_from_calculation              core/fn.cart.php
calculate_cart_items                           core/fn.cart.php
calculate_cart                                 core/fn.cart.php
is_cart_empty                                  core/fn.cart.php
calculate_shipping_rate                        core/fn.cart.php
calculate_shipping_rates                       core/fn.cart.php
check_amount_in_stock                          core/fn.cart.php
generate_cart_id                               core/fn.cart.php
order_placement_routines                       core/fn.cart.php
pre_add_to_cart                                core/fn.cart.php
add_to_cart                                    core/fn.cart.php
form_cart                                      core/fn.cart.php
get_status_data                                core/fn.cart.php
delete_cart_product                            core/fn.cart.php
apply_cart_shipping_rates                      core/fn.cart.php
get_external_discounts                         core/fn.cart.php
exclude_from_shipping_calculation              core/fn.cart.php
allow_place_order                              core/fn.cart.php
get_orders                                     core/fn.cart.php
order_notification                             core/fn.cart.php
prepare_package_info                           core/fn.cart.php
get_promotions                                 core/fn.promotions.php
pre_promotion_check_coupon                     core/fn.promotions.php
promotion_check_coupon                         core/fn.promotions.php
search_init                                    core/fn.search.php
search_by_objects                              core/fn.search.php
init_templater                                 core/fn.init.php
user_init                                      core/fn.init.php
init_secure_controllers                        core/fn.control.php
get_route                                      core/fn.control.php
get_pages                                      core/fn.cms.php
get_page_data                                  core/fn.cms.php
get_block_locations                            core/fn.cms.php
get_blocks                                     core/fn.cms.php
get_user_info                                  core/fn.users.php
fill_user_fields                               core/fn.users.php
get_profile_fields                             core/fn.users.php
fill_auth                                      core/fn.users.php
get_user_type_description                      core/fn.users.php
get_users                                      core/fn.users.php
init_user_session_data                         core/fn.users.php
update_profile                                 core/fn.users.php
user_need_login                                core/fn.users.php
check_user_type                                core/fn.users.php
get_product_data                               core/fn.catalog.php
get_product_data_more                          core/fn.catalog.php
get_additional_product_data_before_discounts   core/fn.catalog.php
get_additional_product_data                    core/fn.catalog.php
get_subcategories                              core/fn.catalog.php
get_categories                                 core/fn.catalog.php
get_category_data                              core/fn.catalog.php
delete_product                                 core/fn.catalog.php
update_category                                core/fn.catalog.php
delete_product_option                          core/fn.catalog.php
get_product_options                            core/fn.catalog.php
get_selected_product_options                   core/fn.catalog.php
apply_option_modifiers                         core/fn.catalog.php
get_product_features                           core/fn.catalog.php
get_product_feature_variants                   core/fn.catalog.php
get_product_filter_fields                      core/fn.catalog.php
additional_fields_in_search                    core/fn.catalog.php
get_products                                   core/fn.catalog.php
get_products_post                              core/fn.catalog.php
products_sorting                               core/fn.catalog.php
redirect                                       core/fn.common.php
add_breadcrumb                                 core/fn.common.php
save_log                                       core/fn.log.php
add_js_item                                    js/picker.js
check_exceptions                               js/exceptions.js
get_google_shipping_rate                       payments/google_calculations.php
apply_google_codes                             payments/google_calculations.php
form_google_codes_response                     payments/google_calculations.php
fill_google_shipping_info                      payments/google_checkout_response.php
get_google_codes                               payments/google_checkout_response.php
prepare_google_shippings                       payments/google_checkout.php
google_coupons_calculation                     payments/google_checkout.php
get_google_add_items                           payments/google_checkout.php
transfer_js_items                              skins/basic/admin/pickers/products_picker_contents.tpl


 
  • johndoe
  • Junior Member
  • Members
  • Join Date: 07-Apr 09
  • 10 posts

Posted 26 January 2010 - 07:50 PM #2

Here's the same list but ordered on the name of the hook:
HOOK                                           FILE
--------------------------------------------   -------------------------------------------------------
add_breadcrumb                                 core/fn.common.php
additional_fields_in_search                    core/fn.catalog.php
add_js_item                                    js/picker.js
add_to_cart                                    core/fn.cart.php
allow_place_order                              core/fn.cart.php
apply_cart_shipping_rates                      core/fn.cart.php
apply_google_codes                             payments/google_calculations.php
apply_option_modifiers                         core/fn.catalog.php
auth_routines                                  controllers/common/auth.php
buy_together_pre_add_to_cart                   addons/buy_together/func.php
buy_together_restricted_product                addons/buy_together/controllers/admin/products.post.php
buy_together_restricted_product                addons/buy_together/func.php
calculate_cart                                 core/fn.cart.php
calculate_cart_items                           core/fn.cart.php
calculate_shipping_rate                        core/fn.cart.php
calculate_shipping_rates                       core/fn.cart.php
change_order_status                            core/fn.cart.php
check_amount_in_stock                          core/fn.cart.php
check_exceptions                               js/exceptions.js
checkout_profile_update                        controllers/customer/checkout.php
checkout_summary                               controllers/customer/checkout.php
check_user_type                                core/fn.users.php
clone_page                                     controllers/admin/pages.php
clone_product                                  controllers/admin/products.php
convert_php_url                                addons/seo/func.php
convert_tpl_url                                addons/seo/func.php
delete_banners                                 addons/banners/controllers/admin/banners.php
delete_cart_product                            core/fn.cart.php
delete_category                                controllers/admin/categories.php
delete_event                                   addons/gift_registry/func.php
delete_gift_certificate                        addons/gift_certificates/func.php
delete_news                                    addons/news_and_emails/controllers/admin/news.php
delete_order                                   controllers/admin/orders.php
delete_page                                    controllers/admin/pages.php
delete_product                                 core/fn.catalog.php
delete_product_option                          core/fn.catalog.php
delete_user                                    controllers/admin/profiles.php
delete_wishlist_product                        addons/wishlist/controllers/customer/wishlist.php
edit_place_order                               core/fn.cart.php
exclude_from_shipping_calculation              core/fn.cart.php
exclude_products_from_calculation              core/fn.cart.php
exim_get_product_url                           controllers/admin/exim.php
extract_cart                                   core/fn.cart.php
fill_auth                                      core/fn.users.php
fill_google_shipping_info                      payments/google_checkout_response.php
fill_user_fields                               core/fn.users.php
form_cart                                      core/fn.cart.php
form_google_codes_response                     payments/google_calculations.php
generate_cart_id                               core/fn.cart.php
get_additional_product_data_before_discounts   core/fn.catalog.php
get_additional_product_data                    core/fn.catalog.php
get_banners                                    addons/banners/func.php
get_block_locations                            core/fn.cms.php
get_blocks                                     core/fn.cms.php
get_cart_item_types                            core/fn.cart.php
get_cart_product_data                          core/fn.cart.php
get_carts                                      controllers/admin/cart.php
get_categories                                 core/fn.catalog.php
get_category_data                              core/fn.catalog.php
get_discussion_object_data                     addons/discussion/func.php
get_discussion_objects                         addons/discussion/func.php
get_external_discounts                         core/fn.cart.php
get_gift_certificate_info                      addons/gift_certificates/func.php
get_google_add_items                           payments/google_checkout.php
get_google_codes                               payments/google_checkout_response.php
get_google_shipping_rate                       payments/google_calculations.php
get_manifest_definition                        controllers/admin/site_layout.php
get_news_data                                  addons/news_and_emails/func.php
get_order_info                                 core/fn.cart.php
get_orders                                     core/fn.cart.php
get_page_data                                  core/fn.cms.php
get_pages                                      core/fn.cms.php
get_payment_methods                            core/fn.cart.php
get_price_function                             addons/recurring_billing/js/func.js
get_product_data                               core/fn.catalog.php
get_product_data_more                          core/fn.catalog.php
get_product_features                           core/fn.catalog.php
get_product_feature_variants                   core/fn.catalog.php
get_product_filter_fields                      core/fn.catalog.php
get_product_options                            controllers/admin/product_options.php
get_product_options                            core/fn.catalog.php
get_products                                   core/fn.catalog.php
get_products_post                              core/fn.catalog.php
get_profile_fields                             core/fn.users.php
get_promotions                                 core/fn.promotions.php
get_rewrite_rules                              addons/seo/func.php
get_route                                      core/fn.control.php
get_selected_product_options                   core/fn.catalog.php
get_seo_vars                                   addons/seo/func.php
get_shipments                                  controllers/admin/shipments.php
get_status_data                                core/fn.cart.php
get_status_params_definition                   controllers/admin/statuses.php
get_subcategories                              core/fn.catalog.php
get_tag_objects                                addons/tags/controllers/admin/tags.php
get_user_info                                  core/fn.users.php
get_users                                      core/fn.users.php
get_user_type_description                      core/fn.users.php
global_update                                  controllers/admin/products.php
google_coupons_calculation                     payments/google_checkout.php
init_secure_controllers                        core/fn.control.php
init_templater                                 core/fn.init.php
init_user_session_data                         core/fn.users.php
is_accessible_discussion                       addons/discussion/func.php
is_cart_empty                                  core/fn.cart.php
localization_objects                           controllers/admin/localizations.php
order_notification                             core/fn.cart.php
order_placement_routines                       core/fn.cart.php
order_products_post                            addons/recurring_billing/func.php
page_object_by_type                            controllers/admin/pages.php
place_order                                    core/fn.cart.php
pre_add_to_cart                                core/fn.cart.php
pre_add_to_wishlist                            addons/wishlist/controllers/customer/wishlist.php
prepare_checkout_payment_methods               controllers/customer/checkout.php
prepare_google_shippings                       payments/google_checkout.php
prepare_package_info                           core/fn.cart.php
pre_place_order                                core/fn.cart.php
pre_promotion_check_coupon                     core/fn.promotions.php
products_sorting                               core/fn.catalog.php
profile_fields_areas                           controllers/admin/profile_fields.php
promotion_check_coupon                         core/fn.promotions.php
redirect                                       core/fn.common.php
reorder                                        controllers/customer/orders.php
rma_recalculate_order                          addons/rma/func.php
save_cart                                      core/fn.cart.php
save_log                                       core/fn.log.php
search_by_objects                              core/fn.search.php
search_init                                    core/fn.search.php
seo_is_indexed_page                            addons/seo/func.php
seo_link                                       addons/seo/func.php
sitemap_item                                   addons/google_sitemap/func.php
sitemap_link                                   addons/google_sitemap/func.php
sitemap_link_object                            addons/google_sitemap/func.php
stat_product_search_data                       addons/statistics/controllers/admin/statistics.php
summary_get_payment_method                     core/fn.cart.php
top_menu_form                                  controllers/customer/init.php
transfer_js_items                              skins/basic/admin/pickers/products_picker_contents.tpl
update_category                                core/fn.catalog.php
update_event                                   addons/gift_registry/func.php
update_news                                    addons/news_and_emails/func.php
update_newsletter                              addons/news_and_emails/func.php
update_page                                    controllers/admin/pages.php
update_product_amount                          core/fn.cart.php
update_product                                 controllers/admin/products.php
update_product_feature                         controllers/admin/product_features.php
update_profile                                 core/fn.users.php
update_shipping                                controllers/admin/shippings.php
user_init                                      core/fn.init.php
user_need_login                                core/fn.users.php
validate_sef_object                            addons/seo/func.php


 

Posted 26 January 2010 - 08:11 PM #3

THANK YOU SIR!

This will make things a lot easier for me in the future.
I've moved on from CS-Cart to WooC******** - If you need anything I can be of little help.

 
  • Tirade
  • Senior Member
  • Members
  • Join Date: 20-Oct 09
  • 253 posts

Posted 26 January 2010 - 09:18 PM #4

Excellent, can you do this query again but check all the TPL files for hooks as well? :D

*please*

 
  • johndoe
  • Junior Member
  • Members
  • Join Date: 07-Apr 09
  • 10 posts

Posted 27 January 2010 - 09:44 AM #5

Hooks in admin templates (ordered by name of the template file):

HOOK                                         FILE
------------------------------------------   -------------------------------------------------------------------------------
products:list_extra_links                    admin/addons/affiliate/views/banners_manager/manage.tpl
orders:product_info                          admin/addons/buy_together/hooks/orders/items_list_row.override.tpl
orders:product_info                          admin/addons/buy_together/hooks/orders/items_list_row.override.tpl
discussion:add_post                          admin/addons/discussion/views/discussion_manager/components/discussion.tpl
discussion:items_list_row                    admin/addons/discussion/views/discussion_manager/components/discussion.tpl
discussion_manager:items_list_row            admin/addons/discussion/views/discussion_manager/manage.tpl
order_management:product_info                admin/addons/gift_certificates/hooks/order_management/extra_list.post.tpl
orders:product_info                          admin/addons/gift_certificates/hooks/orders/extra_list.post.tpl
gift_registry:detailed_content               admin/addons/gift_registry/views/events/update.tpl
gift_registry:tabs_content                   admin/addons/gift_registry/views/events/update.tpl
gift_registry:tabs_extra                     admin/addons/gift_registry/views/events/update.tpl
news_and_emails:detailed_content             admin/addons/news_and_emails/views/news/update.tpl
news_and_emails:tabs_content                 admin/addons/news_and_emails/views/news/update.tpl
news_and_emails:tabs_extra                   admin/addons/news_and_emails/views/news/update.tpl
news:detailed_content                        admin/addons/news_and_emails/views/news/update.tpl
orders:product_info                          admin/addons/product_configurator/hooks/orders/items_list_row.override.tpl
orders:product_info                          admin/addons/product_configurator/hooks/orders/items_list_row.override.tpl
quickbooks:export_gift_certificates          admin/addons/quickbooks/views/orders/components/export_to_iif.tpl
quickbooks:export_items                      admin/addons/quickbooks/views/orders/components/export_to_iif.tpl
quickbooks:export_payments                   admin/addons/quickbooks/views/orders/components/export_to_iif.tpl
orders:items_list_row                        admin/addons/recurring_billing/views/subscriptions/update.tpl
orders:product_info                          admin/addons/recurring_billing/views/subscriptions/update.tpl
revard_points:userlog                        admin/addons/reward_points/views/reward_points/userlog.tpl
orders:returned_product_info                 admin/addons/rma/hooks/orders/totals.pre.tpl
rma:details_tools                            admin/addons/rma/views/rma/details.tpl
rma:items_content                            admin/addons/rma/views/rma/details.tpl
rma:returned_items_amount                    admin/addons/rma/views/rma/details.tpl
rma:returned_items_content                   admin/addons/rma/views/rma/details.tpl
rma:returned_items_header                    admin/addons/rma/views/rma/details.tpl
tags:search_form                             admin/addons/tags/views/tags/components/tags_search_form.tpl
cart:products_list                           admin/addons/wishlist/hooks/cart/items_list_row.post.tpl
fileuploader:links                           admin/common_templates/fileuploader.tpl
fileuploader:uploaded_files                  admin/common_templates/fileuploader.tpl
index:scripts                                admin/common_templates/scripts.tpl
index:styles                                 admin/common_templates/styles.tpl
index:main_content                           admin/main.tpl
product_picker:table_column_options          admin/pickers/js_product.tpl
product_picker:table_header                  admin/pickers/products_picker.tpl
product_picker:table_rows                    admin/pickers/products_picker.tpl
index:top                                    admin/top.tpl
addons:options                               admin/views/addons/update.tpl
block_manager:columns                        admin/views/block_manager/manage.tpl
block_manager:settings                       admin/views/block_manager/update.tpl
cart:items_list                              admin/views/cart/cart_list.tpl
cart:items_list_header                       admin/views/cart/cart_list.tpl
cart:items_list_row                          admin/views/cart/cart_list.tpl
cart:products_list                           admin/views/cart/cart_list.tpl
cart:search_form                             admin/views/cart/components/carts_search_form.tpl
categories:fields_to_edit                    admin/views/categories/components/categories_select_fields.tpl
categories:detailed_content                  admin/views/categories/update.tpl
categories:tabs_content                      admin/views/categories/update.tpl
categories:tabs_extra                        admin/views/categories/update.tpl
index:extra                                  admin/views/index/index.tpl
index:index                                  admin/views/index/index.tpl
index:inventory                              admin/views/index/index.tpl
index:users                                  admin/views/index/index.tpl
order_management:items_list_row              admin/views/order_management/products.tpl
order_management:extra_list                  admin/views/order_management/totals.tpl
order_management:product_info                admin/views/order_management/totals.tpl
order_management:totals                      admin/views/order_management/totals.tpl
order_management:totals_extra                admin/views/order_management/totals.tpl
order_management:totals_shipping             admin/views/order_management/totals.tpl
orders:search_form                           admin/views/orders/components/orders_search_form.tpl
orders:customer_info                         admin/views/orders/details.tpl
orders:customer_shot_info                    admin/views/orders/details.tpl
orders:details_tools                         admin/views/orders/details.tpl
orders:extra_list                            admin/views/orders/details.tpl
orders:items_list_row                        admin/views/orders/details.tpl
orders:product_info                          admin/views/orders/details.tpl
orders:staff_only_note                       admin/views/orders/details.tpl
orders:tabs_content                          admin/views/orders/details.tpl
orders:tabs_extra                            admin/views/orders/details.tpl
orders:totals                                admin/views/orders/details.tpl
orders:totals_content                        admin/views/orders/details.tpl
orders:list_extra_links                      admin/views/orders/manage.tpl
orders:list_tools                            admin/views/orders/manage.tpl
orders:totals_stats                          admin/views/orders/manage.tpl
pages:search_form                            admin/views/pages/components/pages_search_form.tpl
pages:detailed_content                       admin/views/pages/update.tpl
pages:tabs_content                           admin/views/pages/update.tpl
pages:tabs_extra                             admin/views/pages/update.tpl
payments:properties                          admin/views/payments/update.tpl
product_features:search_form                 admin/views/product_features/components/product_features_search_form.tpl
product_features:extended_feature            admin/views/product_features/update.tpl
product_features:extended_feature            admin/views/product_features/update.tpl
product_filters:search_form                  admin/views/product_filters/components/product_filters_search_form.tpl
product_options:edit_product_options         admin/views/product_options/update.tpl
product_options:edit_product_options         admin/views/product_options/update.tpl
product_options:properties                   admin/views/product_options/update.tpl
product_list:table_columns                   admin/views/products/components/products_list.tpl
products:search_form                         admin/views/products/components/products_search_form.tpl
block_manager:columns                        admin/views/products/components/product_tabs.tpl
products:select_options                      admin/views/products/components/select_product_options.tpl
products:select_options                      admin/views/products/components/select_product_options.tpl
products:select_options                      admin/views/products/components/select_product_options.tpl
products:select_options_js                   admin/views/products/components/select_product_options.tpl
products:global_update                       admin/views/products/global_update.tpl
products:list_extra_links                    admin/views/products/manage.tpl
products:manage_body                         admin/views/products/manage.tpl
products:manage_head                         admin/views/products/manage.tpl
products:update_fields                       admin/views/products/m_update.tpl
products:update_fields_extra                 admin/views/products/m_update.tpl
products:update_fields_inner                 admin/views/products/m_update.tpl
products:update_fields_inner_extra           admin/views/products/m_update.tpl
products:detailed_content                    admin/views/products/update.tpl
products:tabs_content                        admin/views/products/update.tpl
products:tabs_extra                          admin/views/products/update.tpl
profiles:account                             admin/views/profiles/components/profiles_account.tpl
orders:payment_info                          admin/views/profiles/components/profiles_info.tpl
profiles:search_form                         admin/views/profiles/components/users_search_form.tpl
profiles:list_extra_links                    admin/views/profiles/manage.tpl
profiles:detailed_content                    admin/views/profiles/update.tpl
profiles:general_content                     admin/views/profiles/update.tpl
profiles:tabs_content                        admin/views/profiles/update.tpl
profiles:tabs_extra                          admin/views/profiles/update.tpl
revisions_workflow:objects                   admin/views/revisions_workflow/components/select.tpl
search:search_results                        admin/views/search/results.tpl
shipments:search_form                        admin/views/shipments/components/shipments_search_form.tpl
shipments:customer_shot_info                 admin/views/shipments/details.tpl
shipments:details_tools                      admin/views/shipments/details.tpl
shipments:product_info                       admin/views/shipments/details.tpl
shipments:list_extra_links                   admin/views/shipments/manage.tpl
shipments:list_tools                         admin/views/shipments/manage.tpl
shippings:cost_dependences_body              admin/views/shippings/components/rates.tpl
shippings:cost_dependences_head              admin/views/shippings/components/rates.tpl
shippings:cost_dependences_new               admin/views/shippings/components/rates.tpl
shippings:items_dependences_body             admin/views/shippings/components/rates.tpl
shippings:items_dependences_head             admin/views/shippings/components/rates.tpl
shippings:items_dependences_new              admin/views/shippings/components/rates.tpl
shippings:weight_dependences_body            admin/views/shippings/components/rates.tpl
shippings:weight_dependences_head            admin/views/shippings/components/rates.tpl
shippings:weight_dependences_new             admin/views/shippings/components/rates.tpl
shippings:update                             admin/views/shippings/update.tpl
site_layout:detailed_content                 admin/views/site_layout/manage.tpl
site_layout:tabs_content                     admin/views/site_layout/manage.tpl
site_layout:tabs_extra                       admin/views/site_layout/manage.tpl
static_data:list_extra_links                 admin/views/static_data/components/multi_list.tpl
usergroups:tabs_content                      admin/views/usergroups/update.tpl


 
  • johndoe
  • Junior Member
  • Members
  • Join Date: 07-Apr 09
  • 10 posts

Posted 27 January 2010 - 09:45 AM #6

Hooks in customer and email templates (ordered by name of the template file):

HOOK                                         FILE
------------------------------------------   -------------------------------------------------------------------------------
products:prices_block                        customer/addons/affiliate/views/banner_products/view.tpl
checkout:product_info                        customer/addons/buy_together/hooks/checkout/items_list.override.tpl
checkout:product_info                        customer/addons/buy_together/hooks/checkout/items_list_row.override.tpl
orders:product_info                          customer/addons/buy_together/hooks/orders/items_list_row.override.tpl
orders:product_info                          customer/addons/buy_together/hooks/orders/items_list_row.override.tpl
discussion:add_post                          customer/addons/discussion/views/discussion/view.tpl
discussion:items_list_row                    customer/addons/discussion/views/discussion/view.tpl
pages:page_content                           customer/addons/form_builder/hooks/pages/page_content.override.tpl
checkout:product_info                        customer/addons/gift_certificates/hooks/checkout/cart_content.pre.tpl
checkout:product_info                        customer/addons/gift_certificates/hooks/checkout/extra_list.post.tpl
orders:product_info                          customer/addons/gift_certificates/hooks/orders/extra_list.pre.tpl
gift_certificates:buttons                    customer/addons/gift_certificates/views/gift_certificates/update.tpl
events:fields                                customer/addons/gift_registry/views/events/update.tpl
events:update                                customer/addons/gift_registry/views/events/update.tpl
events:view                                  customer/addons/gift_registry/views/events/view.tpl
news:list                                    customer/addons/news_and_emails/views/news/list.tpl
news:view                                    customer/addons/news_and_emails/views/news/view.tpl
checkout:product_info                        customer/addons/product_configurator/hooks/checkout/items_list.override.tpl
checkout:product_info                        customer/addons/product_configurator/hooks/checkout/items_list_row.override.tpl
orders:product_info                          customer/addons/product_configurator/hooks/orders/items_list_row.override.tpl
orders:product_info                          customer/addons/product_configurator/hooks/orders/items_list_row.override.tpl
products:buttons_content                     customer/addons/product_configurator/hooks/products/view_main_info.override.tpl
products:product_option_content              customer/addons/product_configurator/hooks/wishlist/items_list.override.tpl
orders:items_list_row                        customer/addons/recurring_billing/views/subscriptions/view.tpl
orders:product_info                          customer/addons/recurring_billing/views/subscriptions/view.tpl
reward_points:userlog                        customer/addons/reward_points/views/reward_points/userlog.tpl
orders:product_details                       customer/addons/rma/hooks/orders/details.post.tpl
orders:return_info                           customer/addons/rma/views/rma/details.tpl
tags:summary                                 customer/addons/tags/views/tags/summary.tpl
tags:view                                    customer/addons/tags/views/tags/view.tpl
wishlist:items_list                          customer/addons/wishlist/views/wishlist/view.tpl
wishlist:view                                customer/addons/wishlist/views/wishlist/view.tpl
products:product_multicolumns_list           customer/blocks/list_templates/grid_list2.tpl
products:product_multicolumns_list           customer/blocks/list_templates/grid_list.tpl
products:product_block                       customer/blocks/list_templates/products_list.tpl
products:product_small_list                  customer/blocks/list_templates/small_list.tpl
profiles:my_account_menu                     customer/blocks/my_account.tpl
search:additional_fields                     customer/blocks/search.tpl
index:bottom                                 customer/bottom.tpl
fileuploader:links                           customer/common_templates/fileuploader.tpl
fileuploader:uploaded_files                  customer/common_templates/fileuploader.tpl
products:buttons_block                       customer/common_templates/product_data.tpl
products:buy_now                             customer/common_templates/product_data.tpl
products:data_block                          customer/common_templates/product_data.tpl
products:options_advanced                    customer/common_templates/product_data.tpl
products:prices_block                        customer/common_templates/product_data.tpl
products:product_option_content              customer/common_templates/product_data.tpl
index:scripts                                customer/common_templates/scripts.tpl
search:additional_fields                     customer/common_templates/search.tpl
index:styles                                 customer/common_templates/styles.tpl
index:footer                                 customer/index.tpl
index:columns                                customer/main.tpl
index:main_content                           customer/main.tpl
index:meta                                   customer/meta.tpl
categories:catalog                           customer/views/categories/catalog.tpl
categories:view                              customer/views/categories/view.tpl
checkout:cart_item                           customer/views/checkout/checkout.tpl
checkout:extra_list                          customer/views/checkout/components/cart_items.tpl
checkout:form_data                           customer/views/checkout/components/cart_items.tpl
checkout:items_list                          customer/views/checkout/components/cart_items.tpl
checkout:product_info                        customer/views/checkout/components/cart_items.tpl
index:cart_status                            customer/views/checkout/components/cart_status.tpl
checkout:checkout_steps                      customer/views/checkout/components/checkout_steps.tpl
checkout:checkout_steps                      customer/views/checkout/components/checkout_steps.tpl
checkout:checkout_steps                      customer/views/checkout/components/checkout_steps.tpl
checkout:checkout_totals                     customer/views/checkout/components/checkout_totals.tpl
checkout:payment_extra                       customer/views/checkout/components/checkout_totals.tpl
checkout:payment_options                     customer/views/checkout/components/checkout_totals.tpl
checkout:payment_methods                     customer/views/checkout/components/payment_methods.tpl
checkout:shipping_estimation                 customer/views/checkout/components/shipping_estimation.tpl
checkout:shipping_rates                      customer/views/checkout/components/shipping_rates.tpl
checkout:terms_and_conditions                customer/views/checkout/summary.tpl
checkout:terms_and_conditions_downloadable   customer/views/checkout/summary.tpl
index:index                                  customer/views/index/index.tpl
orders:confirmation                          customer/views/orders/details.tpl
orders:details                               customer/views/orders/details.tpl
orders:details_bullets                       customer/views/orders/details.tpl
orders:extra_list                            customer/views/orders/details.tpl
orders:info                                  customer/views/orders/details.tpl
orders:items_list_header                     customer/views/orders/details.tpl
orders:items_list_row                        customer/views/orders/details.tpl
orders:product_info                          customer/views/orders/details.tpl
orders:repay                                 customer/views/orders/details.tpl
orders:totals                                customer/views/orders/details.tpl
pages:page_content                           customer/views/pages/view.tpl
pages:page_extra                             customer/views/pages/view.tpl
products:product_block                       customer/views/products/components/one_product.tpl
products:notification_control                customer/views/products/components/product_notification.tpl
products:options_js                          customer/views/products/components/product_options.tpl
products:options_modifiers                   customer/views/products/components/product_options.tpl
products:options_modifiers                   customer/views/products/components/product_options.tpl
products:options_modifiers                   customer/views/products/components/product_options.tpl
products:options_modifiers_js                customer/views/products/components/product_options.tpl
products:search_in                           customer/views/products/components/products_search_form.tpl
products:view_main_info                      customer/views/products/view.tpl
profiles:account_info                        customer/views/profiles/components/profiles_account.tpl
profiles:account_update                      customer/views/profiles/update.tpl
promotions:list_item                         customer/views/promotions/list.tpl
search::search_results                       customer/views/search/results.tpl
orders:product_info                          mail/addons/buy_together/hooks/orders/items_list_row.override.tpl
orders:product_info                          mail/addons/buy_together/hooks/orders/items_list_row.override.tpl
orders:product_info                          mail/addons/gift_certificates/hooks/orders/extra_list.post.tpl
orders:product_info                          mail/addons/product_configurator/hooks/orders/items_list_row.override.tpl
orders:product_info                          mail/addons/product_configurator/hooks/orders/items_list_row.override.tpl
orders:product_info                          mail/addons/rma/hooks/orders/ordered_products.post.tpl
orders:extra_list                            mail/orders/invoice.tpl
orders:invoice                               mail/orders/invoice.tpl
orders:items_list_row                        mail/orders/invoice.tpl
orders:ordered_products                      mail/orders/invoice.tpl
orders:product_info                          mail/orders/invoice.tpl
orders:totals                                mail/orders/invoice.tpl
orders:invoice                               mail/orders/print_packing_slip.tpl


 
  • johndoe
  • Junior Member
  • Members
  • Join Date: 07-Apr 09
  • 10 posts

Posted 27 January 2010 - 09:47 AM #7

Hooks ordered by name of the hook (addons through orders):

HOOK                                         FILE
------------------------------------------   -------------------------------------------------------------------------------
addons:options                               admin/views/addons/update.tpl
block_manager:columns                        admin/views/block_manager/manage.tpl
block_manager:columns                        admin/views/products/components/product_tabs.tpl
block_manager:settings                       admin/views/block_manager/update.tpl
cart:items_list                              admin/views/cart/cart_list.tpl
cart:items_list_header                       admin/views/cart/cart_list.tpl
cart:items_list_row                          admin/views/cart/cart_list.tpl
cart:products_list                           admin/addons/wishlist/hooks/cart/items_list_row.post.tpl
cart:products_list                           admin/views/cart/cart_list.tpl
cart:search_form                             admin/views/cart/components/carts_search_form.tpl
categories:catalog                           customer/views/categories/catalog.tpl
categories:detailed_content                  admin/views/categories/update.tpl
categories:fields_to_edit                    admin/views/categories/components/categories_select_fields.tpl
categories:tabs_content                      admin/views/categories/update.tpl
categories:tabs_extra                        admin/views/categories/update.tpl
categories:view                              customer/views/categories/view.tpl
checkout:cart_item                           customer/views/checkout/checkout.tpl
checkout:checkout_steps                      customer/views/checkout/components/checkout_steps.tpl
checkout:checkout_steps                      customer/views/checkout/components/checkout_steps.tpl
checkout:checkout_steps                      customer/views/checkout/components/checkout_steps.tpl
checkout:checkout_totals                     customer/views/checkout/components/checkout_totals.tpl
checkout:extra_list                          customer/views/checkout/components/cart_items.tpl
checkout:form_data                           customer/views/checkout/components/cart_items.tpl
checkout:items_list                          customer/views/checkout/components/cart_items.tpl
checkout:payment_extra                       customer/views/checkout/components/checkout_totals.tpl
checkout:payment_methods                     customer/views/checkout/components/payment_methods.tpl
checkout:payment_options                     customer/views/checkout/components/checkout_totals.tpl
checkout:product_info                        customer/addons/buy_together/hooks/checkout/items_list.override.tpl
checkout:product_info                        customer/addons/buy_together/hooks/checkout/items_list_row.override.tpl
checkout:product_info                        customer/addons/gift_certificates/hooks/checkout/cart_content.pre.tpl
checkout:product_info                        customer/addons/gift_certificates/hooks/checkout/extra_list.post.tpl
checkout:product_info                        customer/addons/product_configurator/hooks/checkout/items_list.override.tpl
checkout:product_info                        customer/addons/product_configurator/hooks/checkout/items_list_row.override.tpl
checkout:product_info                        customer/views/checkout/components/cart_items.tpl
checkout:shipping_estimation                 customer/views/checkout/components/shipping_estimation.tpl
checkout:shipping_rates                      customer/views/checkout/components/shipping_rates.tpl
checkout:terms_and_conditions                customer/views/checkout/summary.tpl
checkout:terms_and_conditions_downloadable   customer/views/checkout/summary.tpl
discussion:add_post                          admin/addons/discussion/views/discussion_manager/components/discussion.tpl
discussion:add_post                          customer/addons/discussion/views/discussion/view.tpl
discussion:items_list_row                    admin/addons/discussion/views/discussion_manager/components/discussion.tpl
discussion:items_list_row                    customer/addons/discussion/views/discussion/view.tpl
discussion_manager:items_list_row            admin/addons/discussion/views/discussion_manager/manage.tpl
events:fields                                customer/addons/gift_registry/views/events/update.tpl
events:update                                customer/addons/gift_registry/views/events/update.tpl
events:view                                  customer/addons/gift_registry/views/events/view.tpl
fileuploader:links                           admin/common_templates/fileuploader.tpl
fileuploader:links                           customer/common_templates/fileuploader.tpl
fileuploader:uploaded_files                  admin/common_templates/fileuploader.tpl
fileuploader:uploaded_files                  customer/common_templates/fileuploader.tpl
gift_certificates:buttons                    customer/addons/gift_certificates/views/gift_certificates/update.tpl
gift_registry:detailed_content               admin/addons/gift_registry/views/events/update.tpl
gift_registry:tabs_content                   admin/addons/gift_registry/views/events/update.tpl
gift_registry:tabs_extra                     admin/addons/gift_registry/views/events/update.tpl
index:bottom                                 customer/bottom.tpl
index:cart_status                            customer/views/checkout/components/cart_status.tpl
index:columns                                customer/main.tpl
index:extra                                  admin/views/index/index.tpl
index:footer                                 customer/index.tpl
index:index                                  admin/views/index/index.tpl
index:index                                  customer/views/index/index.tpl
index:inventory                              admin/views/index/index.tpl
index:main_content                           admin/main.tpl
index:main_content                           customer/main.tpl
index:meta                                   customer/meta.tpl
index:scripts                                admin/common_templates/scripts.tpl
index:scripts                                customer/common_templates/scripts.tpl
index:styles                                 admin/common_templates/styles.tpl
index:styles                                 customer/common_templates/styles.tpl
index:top                                    admin/top.tpl
index:users                                  admin/views/index/index.tpl
news_and_emails:detailed_content             admin/addons/news_and_emails/views/news/update.tpl
news_and_emails:tabs_content                 admin/addons/news_and_emails/views/news/update.tpl
news_and_emails:tabs_extra                   admin/addons/news_and_emails/views/news/update.tpl
news:detailed_content                        admin/addons/news_and_emails/views/news/update.tpl
news:list                                    customer/addons/news_and_emails/views/news/list.tpl
news:view                                    customer/addons/news_and_emails/views/news/view.tpl
order_management:extra_list                  admin/views/order_management/totals.tpl
order_management:items_list_row              admin/views/order_management/products.tpl
order_management:product_info                admin/addons/gift_certificates/hooks/order_management/extra_list.post.tpl
order_management:product_info                admin/views/order_management/totals.tpl
order_management:totals                      admin/views/order_management/totals.tpl
order_management:totals_extra                admin/views/order_management/totals.tpl
order_management:totals_shipping             admin/views/order_management/totals.tpl
orders:confirmation                          customer/views/orders/details.tpl
orders:customer_info                         admin/views/orders/details.tpl
orders:customer_shot_info                    admin/views/orders/details.tpl
orders:details_bullets                       customer/views/orders/details.tpl
orders:details                               customer/views/orders/details.tpl
orders:details_tools                         admin/views/orders/details.tpl
orders:extra_list                            admin/views/orders/details.tpl
orders:extra_list                            customer/views/orders/details.tpl
orders:extra_list                            mail/orders/invoice.tpl
orders:info                                  customer/views/orders/details.tpl
orders:invoice                               mail/orders/invoice.tpl
orders:invoice                               mail/orders/print_packing_slip.tpl
orders:items_list_header                     customer/views/orders/details.tpl
orders:items_list_row                        admin/addons/recurring_billing/views/subscriptions/update.tpl
orders:items_list_row                        admin/views/orders/details.tpl
orders:items_list_row                        customer/addons/recurring_billing/views/subscriptions/view.tpl
orders:items_list_row                        customer/views/orders/details.tpl
orders:items_list_row                        mail/orders/invoice.tpl
orders:list_extra_links                      admin/views/orders/manage.tpl
orders:list_tools                            admin/views/orders/manage.tpl
orders:ordered_products                      mail/orders/invoice.tpl
orders:payment_info                          admin/views/profiles/components/profiles_info.tpl
orders:product_details                       customer/addons/rma/hooks/orders/details.post.tpl
orders:product_info                          admin/addons/buy_together/hooks/orders/items_list_row.override.tpl
orders:product_info                          admin/addons/buy_together/hooks/orders/items_list_row.override.tpl
orders:product_info                          admin/addons/gift_certificates/hooks/orders/extra_list.post.tpl
orders:product_info                          admin/addons/product_configurator/hooks/orders/items_list_row.override.tpl
orders:product_info                          admin/addons/product_configurator/hooks/orders/items_list_row.override.tpl
orders:product_info                          admin/addons/recurring_billing/views/subscriptions/update.tpl
orders:product_info                          admin/views/orders/details.tpl
orders:product_info                          customer/addons/buy_together/hooks/orders/items_list_row.override.tpl
orders:product_info                          customer/addons/buy_together/hooks/orders/items_list_row.override.tpl
orders:product_info                          customer/addons/gift_certificates/hooks/orders/extra_list.pre.tpl
orders:product_info                          customer/addons/product_configurator/hooks/orders/items_list_row.override.tpl
orders:product_info                          customer/addons/product_configurator/hooks/orders/items_list_row.override.tpl
orders:product_info                          customer/addons/recurring_billing/views/subscriptions/view.tpl
orders:product_info                          customer/views/orders/details.tpl
orders:product_info                          mail/addons/buy_together/hooks/orders/items_list_row.override.tpl
orders:product_info                          mail/addons/buy_together/hooks/orders/items_list_row.override.tpl
orders:product_info                          mail/addons/gift_certificates/hooks/orders/extra_list.post.tpl
orders:product_info                          mail/addons/product_configurator/hooks/orders/items_list_row.override.tpl
orders:product_info                          mail/addons/product_configurator/hooks/orders/items_list_row.override.tpl
orders:product_info                          mail/addons/rma/hooks/orders/ordered_products.post.tpl
orders:product_info                          mail/orders/invoice.tpl
orders:repay                                 customer/views/orders/details.tpl
orders:returned_product_info                 admin/addons/rma/hooks/orders/totals.pre.tpl
orders:return_info                           customer/addons/rma/views/rma/details.tpl
orders:search_form                           admin/views/orders/components/orders_search_form.tpl
orders:staff_only_note                       admin/views/orders/details.tpl
orders:tabs_content                          admin/views/orders/details.tpl
orders:tabs_extra                            admin/views/orders/details.tpl
orders:totals                                admin/views/orders/details.tpl
orders:totals_content                        admin/views/orders/details.tpl
orders:totals                                customer/views/orders/details.tpl
orders:totals                                mail/orders/invoice.tpl
orders:totals_stats                          admin/views/orders/manage.tpl


 
  • johndoe
  • Junior Member
  • Members
  • Join Date: 07-Apr 09
  • 10 posts

Posted 27 January 2010 - 09:47 AM #8

Hooks ordered by name of the hook (pages through wishlist):

pages:detailed_content                       admin/views/pages/update.tpl
pages:page_content                           customer/addons/form_builder/hooks/pages/page_content.override.tpl
pages:page_content                           customer/views/pages/view.tpl
pages:page_extra                             customer/views/pages/view.tpl
pages:search_form                            admin/views/pages/components/pages_search_form.tpl
pages:tabs_content                           admin/views/pages/update.tpl
pages:tabs_extra                             admin/views/pages/update.tpl
payments:properties                          admin/views/payments/update.tpl
product_features:extended_feature            admin/views/product_features/update.tpl
product_features:extended_feature            admin/views/product_features/update.tpl
product_features:search_form                 admin/views/product_features/components/product_features_search_form.tpl
product_filters:search_form                  admin/views/product_filters/components/product_filters_search_form.tpl
product_list:table_columns                   admin/views/products/components/products_list.tpl
product_options:edit_product_options         admin/views/product_options/update.tpl
product_options:edit_product_options         admin/views/product_options/update.tpl
product_options:properties                   admin/views/product_options/update.tpl
product_picker:table_column_options          admin/pickers/js_product.tpl
product_picker:table_header                  admin/pickers/products_picker.tpl
product_picker:table_rows                    admin/pickers/products_picker.tpl
products:buttons_block                       customer/common_templates/product_data.tpl
products:buttons_content                     customer/addons/product_configurator/hooks/products/view_main_info.override.tpl
products:buy_now                             customer/common_templates/product_data.tpl
products:data_block                          customer/common_templates/product_data.tpl
products:detailed_content                    admin/views/products/update.tpl
products:global_update                       admin/views/products/global_update.tpl
products:list_extra_links                    admin/addons/affiliate/views/banners_manager/manage.tpl
products:list_extra_links                    admin/views/products/manage.tpl
products:manage_body                         admin/views/products/manage.tpl
products:manage_head                         admin/views/products/manage.tpl
products:notification_control                customer/views/products/components/product_notification.tpl
products:options_advanced                    customer/common_templates/product_data.tpl
products:options_js                          customer/views/products/components/product_options.tpl
products:options_modifiers                   customer/views/products/components/product_options.tpl
products:options_modifiers                   customer/views/products/components/product_options.tpl
products:options_modifiers                   customer/views/products/components/product_options.tpl
products:options_modifiers_js                customer/views/products/components/product_options.tpl
products:prices_block                        customer/addons/affiliate/views/banner_products/view.tpl
products:prices_block                        customer/common_templates/product_data.tpl
products:product_block                       customer/blocks/list_templates/products_list.tpl
products:product_block                       customer/views/products/components/one_product.tpl
products:product_multicolumns_list           customer/blocks/list_templates/grid_list2.tpl
products:product_multicolumns_list           customer/blocks/list_templates/grid_list.tpl
products:product_option_content              customer/addons/product_configurator/hooks/wishlist/items_list.override.tpl
products:product_option_content              customer/common_templates/product_data.tpl
products:product_small_list                  customer/blocks/list_templates/small_list.tpl
products:search_form                         admin/views/products/components/products_search_form.tpl
products:search_in                           customer/views/products/components/products_search_form.tpl
products:select_options                      admin/views/products/components/select_product_options.tpl
products:select_options                      admin/views/products/components/select_product_options.tpl
products:select_options                      admin/views/products/components/select_product_options.tpl
products:select_options_js                   admin/views/products/components/select_product_options.tpl
products:tabs_content                        admin/views/products/update.tpl
products:tabs_extra                          admin/views/products/update.tpl
products:update_fields                       admin/views/products/m_update.tpl
products:update_fields_extra                 admin/views/products/m_update.tpl
products:update_fields_inner                 admin/views/products/m_update.tpl
products:update_fields_inner_extra           admin/views/products/m_update.tpl
products:view_main_info                      customer/views/products/view.tpl
profiles:account                             admin/views/profiles/components/profiles_account.tpl
profiles:account_info                        customer/views/profiles/components/profiles_account.tpl
profiles:account_update                      customer/views/profiles/update.tpl
profiles:detailed_content                    admin/views/profiles/update.tpl
profiles:general_content                     admin/views/profiles/update.tpl
profiles:list_extra_links                    admin/views/profiles/manage.tpl
profiles:my_account_menu                     customer/blocks/my_account.tpl
profiles:search_form                         admin/views/profiles/components/users_search_form.tpl
profiles:tabs_content                        admin/views/profiles/update.tpl
profiles:tabs_extra                          admin/views/profiles/update.tpl
promotions:list_item                         customer/views/promotions/list.tpl
quickbooks:export_gift_certificates          admin/addons/quickbooks/views/orders/components/export_to_iif.tpl
quickbooks:export_items                      admin/addons/quickbooks/views/orders/components/export_to_iif.tpl
quickbooks:export_payments                   admin/addons/quickbooks/views/orders/components/export_to_iif.tpl
revard_points:userlog                        admin/addons/reward_points/views/reward_points/userlog.tpl
revisions_workflow:objects                   admin/views/revisions_workflow/components/select.tpl
reward_points:userlog                        customer/addons/reward_points/views/reward_points/userlog.tpl
rma:details_tools                            admin/addons/rma/views/rma/details.tpl
rma:items_content                            admin/addons/rma/views/rma/details.tpl
rma:returned_items_amount                    admin/addons/rma/views/rma/details.tpl
rma:returned_items_content                   admin/addons/rma/views/rma/details.tpl
rma:returned_items_header                    admin/addons/rma/views/rma/details.tpl
search:additional_fields                     customer/blocks/search.tpl
search:additional_fields                     customer/common_templates/search.tpl
search:search_results                        admin/views/search/results.tpl
search::search_results                       customer/views/search/results.tpl
shipments:customer_shot_info                 admin/views/shipments/details.tpl
shipments:details_tools                      admin/views/shipments/details.tpl
shipments:list_extra_links                   admin/views/shipments/manage.tpl
shipments:list_tools                         admin/views/shipments/manage.tpl
shipments:product_info                       admin/views/shipments/details.tpl
shipments:search_form                        admin/views/shipments/components/shipments_search_form.tpl
shippings:cost_dependences_body              admin/views/shippings/components/rates.tpl
shippings:cost_dependences_head              admin/views/shippings/components/rates.tpl
shippings:cost_dependences_new               admin/views/shippings/components/rates.tpl
shippings:items_dependences_body             admin/views/shippings/components/rates.tpl
shippings:items_dependences_head             admin/views/shippings/components/rates.tpl
shippings:items_dependences_new              admin/views/shippings/components/rates.tpl
shippings:update                             admin/views/shippings/update.tpl
shippings:weight_dependences_body            admin/views/shippings/components/rates.tpl
shippings:weight_dependences_head            admin/views/shippings/components/rates.tpl
shippings:weight_dependences_new             admin/views/shippings/components/rates.tpl
site_layout:detailed_content                 admin/views/site_layout/manage.tpl
site_layout:tabs_content                     admin/views/site_layout/manage.tpl
site_layout:tabs_extra                       admin/views/site_layout/manage.tpl
static_data:list_extra_links                 admin/views/static_data/components/multi_list.tpl
tags:search_form                             admin/addons/tags/views/tags/components/tags_search_form.tpl
tags:summary                                 customer/addons/tags/views/tags/summary.tpl
tags:view                                    customer/addons/tags/views/tags/view.tpl
usergroups:tabs_content                      admin/views/usergroups/update.tpl
wishlist:items_list                          customer/addons/wishlist/views/wishlist/view.tpl
wishlist:view                                customer/addons/wishlist/views/wishlist/view.tpl


 
  • 2020
  • Senior Member
  • Members
  • Join Date: 11-Feb 07
  • 509 posts

Posted 27 January 2010 - 01:04 PM #9

Thanks for posting - this should be part of docs.cs-cart.com!

 
  • Tirade
  • Senior Member
  • Members
  • Join Date: 20-Oct 09
  • 253 posts

Posted 27 January 2010 - 07:36 PM #10

Excellent post. Wish we had a thumbs up feature for each user!

 
  • teksigns
  • Senior Member
  • Members
  • Join Date: 26-Jun 09
  • 181 posts

Posted 28 January 2010 - 02:36 AM #11

awesum man ! thank you !

:D

 
  • unique2
  • Senior Member
  • Members
  • Join Date: 08-Sep 09
  • 117 posts

Posted 29 January 2010 - 05:08 PM #12

can you post the code you used to run this query so it can be used later when CS-Cart is eventually updated again?
Version : 2.0.11 (Testing)

 
  • johndoe
  • Junior Member
  • Members
  • Join Date: 07-Apr 09
  • 10 posts

Posted 29 January 2010 - 07:04 PM #13

There might be more efficient ways, but here's what I did:

grep -R "fn_set_hook" * | sed "s/\([^:]*\).*fn_set_hook('\([^']*\)'.*/\1 - \2/"
grep -R "{hook" * | sed "s/\([^:]*\).*{hook\s*name=\"\([^\"]*\).*/\1 - \2/"

This works on our Linux server. If you run on windows you could give it a try with Cygwin. You could pipe this to sort:

grep -R "fn_set_hook" * | sed "s/\([^:]*\).*fn_set_hook('\([^']*\)'.*/\1 - \2/" | sort

The final sed command does a search and replace to only keep the filename and the name of the hook. Switch the \1 and \2 around to have the name of the hook before the filename.

PS. I agree that this should something that is documented at docs.cs-cart.com. I'm building my own addon to integrate the payment systems of two sites in a rather complex way and there's lots of reference stuff missing from docs.cs-cart.com. Looking at the source code does help a bit but it would be great if they include comments like JavaDoc/phpDocumentor

 
  • frednurk
  • Junior Member
  • Members
  • Join Date: 21-Jan 10
  • 17 posts

Posted 30 January 2010 - 07:40 PM #14

Don't we also need a list of all the params that each of these hooks takes?
Why isn't this in the cscart api documentation? It seems like a critical part of building addons.

 
  • vinic
  • Junior Member
  • Members
  • Join Date: 21-Nov 07
  • 57 posts

Posted 07 February 2010 - 08:54 AM #15

Thanks for sharing, list of template hooks will really help in modifying theme.

I was using dreamweaver's search function to find this data -

- do a simple search on "[active skin]" folder for string "{hook " and it will list all defined template hooks along with template path.
- you can save search result in xml format too.

 
  • frednurk
  • Junior Member
  • Members
  • Join Date: 21-Jan 10
  • 17 posts

Posted 13 February 2010 - 10:45 PM #16

Why can't I hook into all functions? I can hook into fn_update_product, but not fn_delete_image. Why? Where is the rule that tells me what I can hook into?

 
  • johndoe
  • Junior Member
  • Members
  • Join Date: 07-Apr 09
  • 10 posts

Posted 15 February 2010 - 08:58 PM #17

There is a "update_product" hook (see above), but it seems there is no "delete_image" hook. The original code has to explicitly call fn_set_hook to invoke the hook. You register to a hook in init.php and implement a hook handler in your func.php.

You'll have to look in the original code to see if the function(s) implementing the delete-image functionality call out to a hook by using fn_set_hook. If they don't call a hook you can't handle it.

Another option is to use pre- and post-controllers if the delete image is a controller action.

See the documentation on Code Hooks for (some) more detail.

 
  • Page
  • Senior Member
  • Members
  • Join Date: 06-Sep 07
  • 491 posts

Posted 18 February 2010 - 09:25 PM #18

Pin it maybe ?
*** Trying to help and trying to learn ***
Running an upgraded v135sp3 to v2.0.12 on live store(05/02/10) but not really right after update by Dr SnoRocket

 
  • btrials
  • Senior Member
  • Members
  • Join Date: 03-Jul 07
  • 193 posts

Posted 21 February 2010 - 02:13 AM #19

Awesome! I agree with sticky!

 

Posted 21 February 2010 - 03:35 AM #20

Pin it maybe ?


Awesome! I agree with sticky!


Your wish is my command this time.
I've moved on from CS-Cart to WooC******** - If you need anything I can be of little help.