Best practices #
If you are unsure about how to add the code snippet to your website, check our article:
How to safely add code snippets to your WooCommerce website
Actions #
Checkout flow #
fc_pro_before_shipping_calculatorFires before the shipping calculator is rendered in the cart page.fc_pro_after_shipping_calculatorFires after the shipping calculator is rendered in the cart page.fc_pro_{$address_type}_address_book_before_entriesFires before the address book entries list is rendered.fc_pro_{$address_type}_address_book_after_entriesFires after the address book entries list is rendered.fc_pro_address_book_before_checkout_entries_listFires before the address book entries list items are rendered inside the address book entries list element.fc_pro_address_book_after_checkout_entries_listFires after the address book entries list items are rendered inside the address book entries list element.
Account page #
fc_pro_edit_account_address_formFires when rendering the edit address form in the customer account area.
Filters #
Checkout flow #
fc_pro_address_book_save_checkout_fieldAllows customization of the “Save address” checkout field.fc_pro_address_book_is_address_entry_valid_for_checkoutAllows setting custom validation criteria to determine if an address entry should be available to use at checkout.fc_pro_{$address_type}_address_label_checkout_fieldCustomize the checkout field attributes for the address label field.
Cart page #
fc_pro_cart_shipping_calculator_initially_expandedControls the initial state of the shipping calculator, whether to make it initially expanded or collapsed.fc_pro_cart_shipping_calculator_button_classesCustomize the shipping calculator update button classes.
Account page #
fc_pro_address_book_entries_account_start_tag_markupCustomize start tag markup for address book entries list on the account page.fc_pro_address_book_entries_account_end_tag_markupCustomize end tag markup for address book entries list on the account page.fc_pro_address_book_entry_account_markupCustomize address book list entries markup on the account page.fc_pro_address_book_entry_account_edit_button_classesCustomize classes for the “Edit” button in address book entries on the account page.fc_pro_address_book_entry_account_delete_button_classesCustomize classes for the “Delete” button in address book entries on the account page.fc_pro_address_book_entry_account_add_button_classesCustomize classes for the “Add new address” button on the account page.fc_pro_address_book_entry_account_save_button_classesCustomize classes for the “Save address” button on the account page.fc_pro_address_book_entry_account_cancel_button_classesCustomize classes for the “Cancel” button on the account page.fc_pro_address_book_edit_address_entry_titleCustomize address editing page title on the account pages.fc_pro_address_book_edit_address_entry_title_elementCustomize HTML element used to display the address editing page title on the account pages.
Address entries list #
fc_pro_address_book_address_sources_optionsCustomize the address source options that should be available for an address type.fc_pro_address_book_entries_start_tag_markupCustomize start tag markup for checkout address book entries list element.fc_pro_address_book_entries_end_tag_markupCustomize end tag markup for checkout address book entries list element.fc_pro_address_book_entry_markupCustomize the markup for an individual address book entry list item at checkout.fc_pro_address_book_entry_display_dataModify address entry data before displaying it on a list of available addresses.fc_pro_address_book_entry_display_label_remove_skip_listDefine which fields to skip when displaying address labels on a list of available addresses.fc_pro_address_book_entry_label_markupCustomize address book entry label markup when displaying on a list of available addresses.
Data processing #
fc_pro_address_book_entry_before_addModify the individual address entry before being added to the address book entries list.fc_pro_address_book_entries_before_add_entryModify the address book entries list before adding the new entry to it.fc_pro_address_book_entry_before_updateModify the individual address entry before updating it in the address book entries list.fc_pro_address_book_entries_before_update_entryModify the address book entries list before updating an individual entry.fc_pro_before_save_address_from_accountModify an address entry before saving it from the account edit address pages.fc_pro_process_address_book_entry_field_{$key}Process the value of individual address book entry fields when saving an address book entry from the account edit address pages.fc_pro_address_book_entry_is_empty_field_keys_skip_listDefine fields to skip when checking if an address entry is considered empty or incomplete.fc_pro_address_book_entry_compare_field_keys_skip_listDefine fields to skip when comparing whether two address book entries should be considered the equal.fc_pro_address_book_save_from_order_skip_fieldsDefine which fields to skip saving to new address book entries when created from a new order at checkout.fc_pro_address_book_save_from_order_extra_fieldsDefine which extra fields to save to a new address book entry when created from a new order at checkout.
Address fields settings #
fc_pro_address_book_field_keysCustomize which fields to set with data from an address book entry at checkout.fc_pro_address_book_shipping_force_set_value_field_keysDefine shipping fields that should have its value forced from the address book entry value.fc_pro_address_book_billing_force_set_value_field_keysDefine billing fields that should have its value forced from the address book entry value.fc_pro_address_book_fields_remove_skip_listDefine address fields to skip when preparing address book entries to match the available checkout fields.fc_pro_address_book_fields_add_skip_listDefine checkout fields to skip when preparing address book entries to match the available checkout fields.fc_pro_address_book_address_fieldsCustomize which address fields are used in the account address edit pages, and their attributes.
System & Integrations #
fc_override_template_with_theme_fileAllows themes to override template files with their own versions, whether original templates from WooCommerce or Fluid Checkout.fc_pro_address_book_js_settingsModify JavaScript settings for address book functionality.fc_pro_address_book_migration_users_per_requestControl batch size for the address book migration process.fc_pro_address_book_privacy_export_address_book_entry_propsDefine which fields to export for privacy personal data report.fc_pro_address_book_privacy_export_address_book_entry_field_valueCustomize field values when exporting for privacy personal data report.fc_adb_enable_compat_plugin_{plugin_slug}Controls whether Address Book should load compatibility features for a specific plugin.fc_adb_enable_compat_theme_{theme_slug}Controls whether Address Book should load compatibility features for a specific theme.fc_adb_enable_compat_plugin_style_{plugin_slug}Controls whether Address Book should load compatibility styles for specific pages and plugins.fc_adb_enable_compat_theme_style_{theme_slug}Controls whether Address Book should load compatibility styles for specific pages and theme.
