Posted on Leave a comment

Developers documentation

Available hooks-

 

The following action is triggered after changing or marking a branch as the main branch:

do_action('wcfmu_main_branch_updated', $branch, $vendor_id);

 

The following action is triggered after the shipping status update for a specific branch

do_action( 'wcfmu_branch_shipping_pref_updated', $branch, $vendor_id );

 

The following action is triggered after the pickup status update for a specific branch

do_action( 'wcfmu_branch_pickup_pref_updated', $branch, $vendor_id );

 

The following filter can be used to force shipping from the main branch only.

apply_filters('wcfmu_shipping_default_to_main_branch', false);

 

To control the visibility of the shipping checkbox on the branch list table the following filter can be used.

apply_filters('wcfm_is_allow_individual_branch_shipping', true);

 

To control the visibility of the pickup checkbox on the branch list table the following filter can be used.

apply_filters('wcfm_is_allow_individual_branch_pickup', true);

 

Add/remove/update branch details fields using the following filter. The store name is the only field available under this.

apply_filters('wcfm_marketplace_settings_fields_branch_details', $fields <array>);

 

Add/remove/update store branch address fields with the following filter. The available fields include Street, Street 2, City/Town, Postcode/Zip, Country, and State/County.

apply_filters('wcfm_marketplace_settings_fields_branch_address', $fields <array>);

Add/remove/update store branch geolocation/map location fields.

apply_filters('wcfm_marketplace_settings_fields_branch_map_location', $fields <array>);

Leave a Reply

Your email address will not be published. Required fields are marked *