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
aeofwc_offer_success_message
Allows you to modify the message users see when they have successfully submitted an offer.
Hello,
I like this plugin very much, but have a few issues:
1. Despite having declined offers, the single product page still displays ” x offer(s) pending”.
2. Having some issues with centering the Add to Cart with Submit Offer below it, followed by pending offers centered below that.
1. Offers that have been declined are no longer pending.
2. This would likely involve some custom CSS adjustment within your theme/child theme.
Sorry, this product is unavailable. Please choose a different product.
It sounds like you updated to WooCommerce 3.0, and unfortunately our plugin is not yet compatible. We are working on the update to fix this and it should be released within a week or so.
Hello and thanks for the plugin. So far its pretty cool, except for the white text on the offer form. I’ve looked everywhere I can and I am not skilled enough to change it to black or something besides white. Thanks, Bill
Can you provide a URL to a product page on your site so I can take a look?
hi i have the same problem the form shows a white background and white text. how to change the text colour please?
That means you must have some CSS in your theme (or from another plugin) with rules to set font colors that way. You’ll need to adjust that in your theme’s style.css, or if your theme has a way to edit styles within its tools you could do that, too. One way or another you’ll need to adjust that directly.
Thank you for a great plugin!I have a suggestion, We offer free shipping and it is hard to decide if the offer makes financial sense without knowing the location of the customer. Is it possible to require a customer to input the shipping address so we can estimate the shipping cost? Thank you for your time.
At the bottom of the hooks guide is a sample download of hooks for adding your own custom fields to the offer form. You could add a zip code field if you want, for example.
I use a lot of grouped products in my webshop. If the user places an offer for the grouped product I would like him to place an offer for every single product in the group. So I’d like to extend the offer-form to have a price field for every product in the group. I thougth of using custom fields but that doesn’t seem very elegant and kind of breaks with the logic of the plugin. Do have a better solution in mind?
Not sure I fully understand what you’re after here. Can you provide a URL for a product page where you have this type of thing going on? So you’ve got a product that’s made up of 4 separate products, for example…and you want the person to be able to submit offer amounts for each of the 4 individual products instead of the group as a whole..??
Can you tell me why this plugin is not working in wcfm plugin store manager?
I am able to access the offers from admin but want to access this from storemanager.
Is there any option to do that?
It sounds like functionality we would have to specifically build into our plugin so that it’s compatible with the store manager plugin you mentioned. Please submit a feature request ticket here and we can get that into our backlog. Thanks!
Hello,
We can only select 1 product when creating a new offer. How can I edit this so I can select several products? (I want to combine several products and send offers in this way)
I’m sorry, but this functionality is not (yet) available in the plugin. We do plan to add this as a “cart offer” feature, so people could add multiple items to a cart on your site, and then from the cart page they could make an offer on the full cart. Does that sound like what you’d be looking for? Any feedback on how you’d like to see this function would be great. Thanks!
That sounds like a great idea. Just starting to use your plugin, and was thinking the same thing.
Yes, lots of people enjoying this plugin! Just let me know if you have any questions or concerns.
The plugin does not show on the product page when using a woocommerce booking product. How do I fix this?
Sorry, I meant to say that the offer button does not show on the product page, when using a bookable product. How do I fix this? Also, are there any updates on the wcfm compatibility integration? Thank you
I’ve spoken with the wcfm frontend manager team and they are willing to make their plugin compatible with offers woocommerce. Would you mind reaching out to them? I just purchased offers for woocommerce and offers for wc vendor and need these to be functional with wcfm frontend manager. Thank you
We are selling one of a kind items and have no use for these fields. Quantity, Price Each,
how can I stop them from displaying?
In the woocommerce product settings check the box for individually sold. That should give you what you are after.
When I go into each product and check “Enable this to only allow one of this item to be bought in a single order” the offer button disappears. What am I doing wrong?
Thanks,
Do you have a value set for the price of the product?
Yes I do.
Here is a product that I enabled for only one. https://redwoodartgroup.com/product/in-the-zone-by-layla-dangelo/
and here is one that I didn’t. I see the button here.
https://redwoodartgroup.com/product/emily-2-0-by-shelley-lake/
Please submit a ticket to our help desk. Provide the details of what you’re trying to do, and temporary login credentials for your site if you don’t mind. We can jump in and figure out what’s going on here for you, and get it working the way you want.
hii , please let me know how did you dusabled those fields.
In the WooCommerce product settings there is a checkbox for “Sold Individually.” If you check the box you should get what you’re after. 🙂
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!
Hello, i would like to hide the “each price” button or automatic set the each price as regular product price. but when i set “display none” in css, the form doesn’t submit… what can i do ? because i dont want the user to set the price himself, i’m using this plugin for another purpose and i want only the vendor to set the price.
I’m not sure I fully understand the goal. You just want to hide the label? We do have filter hooks available for the labels if that helps you. If not, please elaborate and I’ll see if there’s some other way I can help.
Hi Drew, thanks for the plugin. I just bought it and am testing it out. So far, it is working as advertised! I did have one question regarding the available filters. In specific, aeofwc_offer_form_label_price_each. Can you please show an example of how to use it? In other words, does it need to be added to the functions.php file and if so, can you please provide the snippet of code? I am basically trying to change the label from “Price Each” to “Please enter an offer amount”. If it is not too much trouble, can you please also provide an example how the actions would be used and where the snippet needs to go?
I’m sorry for the delay replying here. For future reference it’s best to submit a ticket to our help desk. If you’re still looking for help with this please do so and we’ll get you taken care of one way or another. Thanks!
hi, how i can call programatically the button send an offer to show in a custom table
We do not currently have short codes available for placing the button anywhere you want. That said, you should be able to get this done with the regular Woo product shortcodes. If you have the offer button enabled on home page / shop pages, and you place Woo add to cart buttons using their shortcodes, our button should show up there with it. Did you try that already?
Hello, on the store page, is it possible that the button will open the offer directly? and thus avoid entering the product?
Hi Peter,
Possible, sure, but we’d have to add code logic to handle that. When you click the offer button from the home page, though, it should go directly to the Offer form on the product page. Can you elaborate on why you don’t like this?
Hello,
Is there a way to set the make an offer popup to open directly on clicking the button on the home page, without having to enter the product page?
Thank you for the support!
Hi Antonio,
Possible, sure, but we’d have to add code logic to handle that. When you click the offer button from the home page, though, it should go directly to the Offer form on the product page. Can you elaborate on why you don’t like this?
Hi
Is it possible to manage auto accept offers with fixed prices, instead of a percentage?
We could add that, but we don’t have many requests for it, so it would difficult to make it a priority unless you wanted to pay for some premium support to get it done soon. What sort of example do you have of when you need that? You should be able to get to whatever flat rate you’re thinking of by calculating what the percentage would be, no..??
Hi, for bids with a price lower than the auto deny price, it lets the customer enter the price and submit the bid. Then you get a denial email. Is there a possibility that when the client enters a price lower than the minimum, then a denial message will appear, without generating any email, and would allow the client to continue entering offers.
best regards
Hi, yes, we could certainly do that. Please submit that request through our Help Desk at https://angelleye.com/support. This way we can get it into our backlog and get it scheduled for completion at some point. Thanks!
Could you empower the buyer to specify the validity period for their offer?
If the offer isn’t accepted by the seller within this specified timeframe, it would automatically become invalid
Hi Murat,
There is currently an option to set an expiration date when accepting or countering an offer. You can see in the screenshot here: https://imgur.com/a/GR5HctH
Just click in the box and it’ll give you a calendar so you can specify the expiration date.
Let me know if you have any questions or concerns about that.
Thanks!
Drew
In wordpress ‘offer for woocommerce dokan’ plugin make an offer form after successufully submit then form if vendors approves the offer how to change that vendor’s ownership of that product automatically which hook will be use for this or is there easy way to do this
I’m not sure I understand the question. You are wanting to change the vendor that owns the product..?? Please clarify and I’ll try to help more.
I have worked on offer for woocommerce and offer for woocommerce dokan plugin in core files so now update came how would we process for it because as we have worked on core files is your plugin allow us to create in child theme so i can paste there changes