Introduction
Offers for WooCommerce provides developer hooks so that you can customize and/or extend the plugin to suit your own needs.
Offers for WooCommerce Hooks Library
The following list includes all of the hooks that are currently available with the Offers for WooCommerce plugin.
Actions
make_offer_form_before_submit_button
make_offer_after_save_form_data
make_offer_after_buyer_meta_display
make_offer_email_display_custom_field_after_buyer_contact_details
ofwc_before_delete_woocoomerce_offer
Before any offer deletion
Parameter: $OfferID
angelleye_offer_for_woocommerce_admin_add_offer
On offer add/edit page in the admin panel
Parameter: $post
before_offer_summary_meta_box
Before offer summary meta box
Parameter: $post
after_offer_summary_meta_box
After offer summary meta box
Parameter: $post
angelleye_ofw_before_offer_action
Before saving the actual offer in the admin panel
Parameter: $post, $request
angelleye_ofw_offer_updated
Once the offer is updated
Parameter: $offer_args, $post_data
woocommerce_before_offer_submit
Fires when admin submits a response to the offer
Parameter: $is_counter_offer, $post,$formData,$newPostData
Angelleye_ofw_offer_received / woocommerce_after_offer_submit
Parameter: $is_counter_offer, $offer_args, $post
before_add_offer_to_cart
When someone adds the offer in cart
Parameter: $offer_id
woocommerce_make_offer_form_end
Offer form customization. This action can be used to customize the offer form on the front-end.
Parameter: $is_counter_offer, $on_exit_enabled
make_offer_form_before_submit_button
Offer form customization
Parameter: $is_counter_offer, $on_exit_enabled
ofw_before_auto_approve_offer
Triggered to be displayed before the Auto Approve Offer option.
Parameters: $offer_id, $product_id, $variant_id, $emails
ofw_before_auto_approve_offer_admin
Triggered to be displayed before the Auto Approve Offer option on the Admin side.
Parameters: $post_id
ofw_after_auto_approve_offer
Triggered to be displayed after the Auto Approve Offer option in enabled.
Parameters: $offer_id, $product_id, $variant_id, $emails
ofw_after_auto_approve_offer_admin
Triggered to be displayed after the Auto Approve Offer option is enabled in the admin side.
Parameters: $post_id
ofw_before_auto_decline_offer
Triggered to be displayed before the Auto Decline Offer option.
Parameters: $offer_id, $product_id, $variant_id, $emails
ofw_before_auto_decline_offer_admin
Triggered before ‘declining an offer‘ in admin panel manage list page
Parameters: $post_id
ofw_after_auto_decline_offer
Triggered to be displayed after the Auto Decline Offer option in enabled.
Parameters: $offer_id, $product_id, $variant_id, $emails
ofw_after_auto_decline_offer_admin
Triggered after ‘declining an offer‘ in admin panel manage list page
Parameters: $post_id
Filters
aeofwc_offer_form_top_message
aeofwc_offer_form_label_quantity
aeofwc_offer_form_label_price_each
aeofwc_offer_form_label_total_offer_amount
aeofwc_offer_form_label_your_name
aeofwc_offer_form_label_company_name
aeofwc_offer_form_label_phone_number
aeofwc_offer_form_label_your_email_address
aeofwc_offer_form_label_offer_notes
aeofwc_offer_form_bottom_message
aeofwc_seller_email_address
Allows you to change the offer recipient email, helps with multi-vendor environments.
Parameters: $recipient, $offer_args
aeofwc_offer_form_label_submit_button
angelleye_ofw_pre_email_sent
Fires before sending an email to users.
Parameters: $offer_email, $offer_args
angelleye_ofw_pre_offer_request
When some user submits the new offer
Parameters: $submit_request
ofw_not_allow_invalid_offer_status
Validation when someone makes an offer on an expired post or deleted post
Parameters: $boolean = false, $offer_post
ofw_admin_created_offer_status
Change post-offer status
Parameters: $post_status, $post_id
ofw_my_account_my_offers_columns
Allows you to modify visible columns on offer listing
Parameters: Array $columns
ofw_my_account_my_offers_query
Allows you to modify the listing query, helps when you want to fetch offer only by one vendor
Parameters: $query_args
make offer button doesn’t direct me directly to make offer form but directs me to description. Is it possible for it to take me directly to the make offer form without pressing make offer under it’s button?
Yes, it should take you straight to the form. There must be some sort of a conflict with your theme or something causing that because we don’t have any reports of it. Have you tried using using Lightbox instead? Go to Settings -> Offers for WooCommerce -> Display Settings Tab, and then set Form Display Type to Lightbox. Save the settings, and then see if that does better for you. If you still have problems please submit a ticket to our help desk with details and our guys will get you taken care of.
Thank you, that suggestion worked for my. Prior to making this change the “make offer” button on the home page was taking me to the single product page and not the actual make offer form.
Glad you got it worked out!