MaxMind’s GeoIP country database was updated to the latest version (used by the fn_get_country_by_ip()
function).
This hook is executed right before usergroups are fetched, allowing you to modify the SQL query:
fn_set_hook('get_usergroups', $params, $lang_code, $field_list, $join, $condition, $group_by, $order_by, $limit);
This hook is executed at the beginning of the fn_get_discussions
function, allowing you to modify the arguments passed to the function:
fn_set_hook('get_discussions_pre', $params, $items_per_page);
This hook is executed right before discussions are fetched, allowing you to modify the SQL query:
fn_set_hook('get_discussions', $params, $items_per_page, $fields, $join, $condition, $sorting, $limit);
This hook is executed after all discussions are fetched from the database and all data post-processing is done:
fn_set_hook('get_discussions_post', $params, $items_per_page, $posts);
This hook is executed at the beginning of the fn_get_discussion
function, allowing you to modify the arguments passed to the function:
fn_set_hook('get_discussion_pre', $object_id, $object_type, $get_posts, $params);
This hook is executed right before a discussion is fetched, allowing you to modify the SQL query:
fn_set_hook('get_discussion_before_sql', $object_id, $object_type, $get_posts, $params, $field_list, $join, $condition, $order_by, $limit);
This hook is executed after a discussion is fetched from the database and all data post-processing is done:
fn_set_hook('get_discussion_post', $object_id, $object_type, $get_posts, $params, $discussion);
This hook is executed after the feed items and properties are fetched from the database and all data post-processing is done:
fn_set_hook('generate_rss_feed', $items_data, $additional_data, $block_data, $lang_code);
This hook is executed at the beginning of a function, allowing you to modify the arguments passed to the function:
fn_set_hook('update_product_feature_variant_pre', $feature_id, $feature_type, $variant, $lang_code);
This hook is executed after the identifier of a product feature variant is checked:
fn_set_hook('update_product_feature_variant', $feature_id, $feature_type, $variant, $lang_code, $variant_id);
This hook is executed after a product feature variant is updated/inserted:
fn_set_hook('update_product_feature_variant_post', $feature_id, $feature_type, $variant, $lang_code, $variant_id);
Check if a file or directory is writable:
fn_is_writable($file_path)
Get the current promotions of the order:
fn_promotion_get_order_promotions($order_id)
Calculate the offset of the given timezone to the UTC timezone:
\Tygh\Tools\DateTimeHelper::getTimeZoneOffsetString($time_zone_name)
Set the given timezone as the PHP runtime timezone and as the current MySQL connection timezone:
fn_init_time_zone($time_zone_name)
Check whether the current URL’s hostname is a subdomain of the given URL’s hostname:
\Tygh\Tools\Url::isSubDomainOf(self $url)
Prepare the RSS feed items and properties:
fn_rssf_get_items($params, $lang_code = CART_LANGUAGE)
Sanitize a filename, replacing special characters:
\Tygh\Tools\SecurityHelper::sanitizeFileName($filename)
The list of store locations now uses location identifiers as array keys:
fn_get_store_locations($params, $items_per_page = 0, $lang_code = CART_LANGUAGE)
Questions & Feedback
Have any questions that weren't answered here? Need help with solving a problem in your online store? Want to report a bug in our software? Find out how to contact us.