Hello! Thanks for a great video! Could you please help me explaining how to add different enquiry forms to at least 4 different categories? What code to use?
Thank you ! I'm designing a website for my company , I had to put feature of this type in it, but I was not able to put it. You helped me a lot. thank you so much once again !!!!!
One small question: Can we create a inquiry form where we can add the products to cart and then isnetad of check out we could send the cart as an email with all products added
Thanks for the sub! You may be also interested in video How to Show Contact Form Only When Product Is Out Of Stock. See here ua-cam.com/video/u78jVDCyWEE/v-deo.html
Thanks :) You me also be interested in video on How to Show Contact Form When Product Is Out Of Stock. See here ua-cam.com/video/u78jVDCyWEE/v-deo.html
Hi there. Great tutorial. Thank you. QUESTION: How do I add more fields to the form? I've tried but it is not displaying on the front end? Is there perhaps addition code that needs to be added to the code snippets after adding new fields for the form?
Hi, Thanks for the video this is great! I have a question. Maybe you have a video tutorial or idea about it. I need a product page where there are varations. Let us say colors and the inquiry button. once they choose the color and click the inquire now, form will pop out and the selected color will be there together with the required contact fields. thanks in advance.
3:38 - Where did that code snippet come from? He didn't even copy the shortcode for the form... I have re-watched this video more than 10 times but I don't understand where that code snippet popped out from. Please help, people.
As I said in the video (at 3:45 mark): the link the snippet is in the video description. Open it up and then you can use it on your site. At 4:10 mark I even show where did I get the shortcode for Fluent Forms (that I use in this video).
Then you wouod need to output your Gutenberg template as a shortcode. If you have Kadence Pro theme then create an Element which containt your form and use the element shortcode.
Great video! Well done! Is there a way to get information back on wich variation of the product they have selected? Say I have some different sizes and colors i make my products in.
I haven’t figured out a way to do that with the regular contact forms. There is a plugin that does that but you have to pay for it. If you’re interested then it is here www.piwebsolution.com/product/enquiry-quotation-for-woocommerce-pro/
Replace this single_add_to_cart_button button alt with something else, for example "button-2". Now go to Appearance >> Customizer >> Additional CSS and customize your button. For example: .button-2 { background: #ffcc00; color: #000000; padding: 10px 30px; }
@@wpsimplehacks Replacing class name didn't. I think it's theme I am using, I used #trigger_cf to style button which worked but I am getting a block on hover. you know how to style that?
Hello, thank you so much for your video! You have helped me out A LOT! Just one question please, I don't want to Remove the Add to Cart button all over my site, only for these items with a contact form. Other items on the website should still be purchasable as per normal. How can I modify this code to get it right, please?
Woo! The exact video I have been looking for the whole time. Thanks very much. However, I have one worry, I am using the divi them, and the contact form does not show up when on mobile. Any ideas how i could remedy the situation? Thanks.
Thank you so much for that Video, but unfortantly it does not work on my side, i use Astra Theme with Elementor. Doing all steps, but the Button do not display on the Product page. Shuld i set up something special in the Themebuilder on the Single Product Page?
If you are using Elementor for creating custom single product pages then pay attention that Elementor overrides all Woocommerce default templates and therefore my snippet is not working.
Hi. Thanks for the video. When i put my enquiry form code on snippet . after putting the code, Im facing an issue of disturbance onproduct page footer. Means the main headings of footer has been moved to right position because of Enquiry form code. And when i disable this form code , footer work perfectly!!
@@wpsimplehacks Thank for answer. I asked because it didn't work for me. Turned out you have to leave the Placement option on the Element Settings to blank(None) and set it to show on the Entire Site in the Display Settings. Maybe it hels someone.
You would need to find a custom solution for it because this snippet is not intended for adding something to cart or is not in any way connected to the add to cart button.
Hello, thanks for the video. But I need your help. I have done all the things which you mentioned in the video but the "Enquiry Now" button is not showing on my product page. Can you help me, please?
Excelent video! I´ve been looking for this. When I add the code in the plugin and save it, it says that I don't have permission to access this resource. Can you help me with this? Thanks!
Hi I am going to give this a try but my product is extremely complex variable product using extra product options. Is it possible for us to have that button as “build quote” and after customizing it, we send this quote directly to customer email where they accept and it redirects them to check out? We can use fluent forms pro with CRM so this is only for the store people to use not for the customer. Please advise how. I would love to connect with you if you could help. Thanks in advance
@@wpsimplehacks As much as that plugin is powerful the video tutorials are repetitive and scenario based tutorial will be helpful. But if fluent is not involved, what would be your recommendation to achieve this?
@@wpsimplehacks tried YITH, but i want to send it from the front end. It acts as if for the customer. But we need it for the store. But thanks for your response.
Thank you :) I'm using Gravity Forms shortcode. After submitting, the form closes and the confirmation text is not visible. If I click the Enquiry button again the confirmation text becomes visible. How can I disable hiding the form after submission?
Congratulations on the content, it worked very well! I would like to know if it is possible to include two buttons in a product, Example: I have products with a quotation form and products available for approval which is another form, but in this product with an approval category I would like to make both buttons available (Request Quotation / Request Homologation ), it would be possible?
hI and thank you for this awsome tips! how can i add a custom fiels that customer can fill for some customizable products. Like the name he want for a customizable necklace fir example and i wish that this text would be display on order notifications. Is there a solution for this using code ?
Hi, This can be done by using custom code but it is a bit more difficult than a couple of lines of code. Take a look at this plugin here: wordpress.org/plugins/woo-extra-product-options/ This on helps you do the things you asked.
Salaam, brother I'm Abdelaziz from Morocco. First of all thanks a lot for your purposive videos. Q: how can I hide a product price ( price will be on application) yet at the sane time keep the add to cart button) Best greetings.
I have tested it with Astra and works well here. If you’re using any page builder (Elementor etc) that overrides Woocommerce default hooks then those snippets won’t work.
@@benjaminhammond9648 Hi, Sorry Benjamin, but at the moment I am fully booked and have no time to spare for these kinds of project. See, whether a freelancer from Upwork can help you out www.upwork.com/hire/woocommerce-developers/
Try this: add_action( 'woocommerce_single_product_summary', 'wpsh_enquiry_form_without_button', 30 ); function wpsh_enquiry_form_without_button() { echo do_shortcode('[fluentform id="1"]'); // Add your own shortcode here }
Hi, If I want to Show Woocommerce Product Enquiry form For a Specific Sub_category. E.g. Animals (Parent category), Tigers (subcategory of Animals), Cats(subcategory of Tigers). So how to display it in code if in you category for parent category you mentioned "product_cat". What will it be for Cats and Tigers in my example. Thank you in advance. @@wpsimplehacks
Hi, Thank you for the sub. The basic Woo stuff is a bit out of my niche and there are a lot of videos on "how to set up a woo site" or "how to confifure a woo site" and therefore I think I will stay with the small hacks like this :) Is there anything particular you would like me to make a video on?
Hello, thank you for the great snippet! I am having one issue - When I click my form button to expand it, it seems to treat the form button as the add to cart button as well. Giving me an error that I need to select quantity and dates before adding to cart (I use a booking base product purchase system called Easy Booking). Have you or anyone else encountered this error?
Nope. Either your theme or Easy booking button has a conflict with the snippet. Try to change this part here: class="single_add_to_cart_button button alt". For example, instead of "single_add_to_cart_button" rename it as "enquiry_button"
I haven’t figured out a way to do that with the regular contact forms. There is a plugin that does that but you have to pay for it. If you’re interested then it is here www.piwebsolution.com/product/enquiry-quotation-for-woocommerce-pro/
@@vinaymohanvny3589 It depends on your form. Fluent forms for exampla has tan option to add it as a popup wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/modal-popup-lightbox-wp-fluent-forms/
Hello, thanks for your video. Is it possible to do the following ? For non-registered users : Hide the price and add to cart button Display an enquiry form on the short description section of the product page. For registered users : Show prices and add to cart Hide the enquiry form
Hi, Yes, it can be done, but you need to tweak the code with conditionals. For example, "is_user_logged_in" conditional. Here are some examples on how to use conditional logic www.businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/
Yeah, but the submit button depends from your theme colors and form submit button depends on the form you are using. If you are using Fluent forms then you can customize this button from the form edit page.
Fluent Forms allows you to make a popup form. See tutorial here wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/modal-popup-lightbox-wp-fluent-forms/ Also, with Caldera forms you can create pop-up forms. See here calderaforms.com/doc/caldera-forms-shortcode/
@@wpsimplehacks I have tried this WP Fluent Forms popup/modal forms, but it doesn't work for me. The shortcode for the form itself works, but the shortcode for the modal doesn't. Can you make a tutorial and see if I'm doing something wrong? I was also thinking that the popup option might be a premium feature & maybe that's why it doesn't work for me.
@@CaerelsJan The modal should also work with the free version. Take a look at the Fluent Forms docs site here wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/modal-popup-lightbox-wp-fluent-forms/ If it still does not work then probably the best way to get the solution is to ask from the Flurent forms support team here wordpress.org/support/plugin/fluentform/
@@wpsimplehacks Hi! Yes I followed the instructios from the docs exactly! The form shortcode works, but the form-modal shortcode doesn't :( The suggestion for the support team: I already did :-) But I sent a request via their website directly (not via wordpress.org). I will see what they say
Hi ive added and it look sgreat but im using if ( has_term( 'unique', 'product_cat' ) ) { with unique being my slug for categoey - however its showing on all categpry products , any ideas please ?
Hi, Did you try this one here? wpsimplehacks.com/woocommerce-product-enquiry-form/#how-to-show-woocommerce-product-enquiry-form-for-a-specific-category I just tested it and it works as promised. Pay attention though that your product doesn’t belong to the category "unique" if you don’t want it to show the form.
I have the below: 'unique' is the category I only want the enquire form to show - but its showing on all categories for me ? thanks add_action( 'woocommerce_single_product_summary', 'enquiry_form', 30 ); function enquiry_form() { if ( has_term( 'unique', 'product_cat' ) ) { echo 'Enquire for more colours'; echo ''; echo do_shortcode('[contact-form-7 id="1580" title="colour form"]'); echo ''; } else { echo 'Enquire for more colours'; echo ''; echo do_shortcode('[contact-form-7 id="1580" title="colour form"]'); echo ''; } } add_action( 'woocommerce_single_product_summary', 'enquiry_form_1', 40); function enquiry_form_1() { ?> jQuery('#trigger_cf').on('click', function(){ if ( jQuery(this).text() == 'Enquire for more colours' ) { jQuery('#product_inq').css("display","block"); jQuery("#trigger_cf").html('Close'); } else { jQuery('#product_inq').hide(); jQuery("#trigger_cf").html('Enquire for more colours'); } });
You're using wrong snippet. You're using snippet that should show one form for specific category and other one for everything else. Although you're using same form for everything. See my link in my previous comment which contains the snippet you should use.
when I finish, it gets me this error message: "A potentially unsafe operation has been detected in your request to this site Your access to this service has been limited. (HTTP response code 403) If you think you have been blocked in error, contact the owner of this site for assistance." I suppose it's because i'm entering new code but.. I'm not sure :S Is this normal?
Code snippet used in the video is here: wpsimplehacks.com/woocommerce-product-enquiry-form/
Hello! Thanks for a great video! Could you please help me explaining how to add different enquiry forms to at least 4 different categories? What code to use?
Thank you !
I'm designing a website for my company , I had to put feature of this type in it, but I was not able to put it. You helped me a lot.
thank you so much once again !!!!!
Thank you for watching ☺️
@@wpsimplehacks Same for me, I searched for a lot of time and even the newer tutorials are not as good as this one. Thanks a lot
Thanks a lot bro. I was trying 5+ free plugins - nothing are satisfactory. yours is a Perfect solution.
Glad it helped! 😊
One small question: Can we create a inquiry form where we can add the products to cart and then isnetad of check out we could send the cart as an email with all products added
Nope. You would have to find a plugin for that.
hello, did you find a solution ?
@@semehboubaker613 How about this? ua-cam.com/video/qpDZlrzPK3U/v-deo.html
@@wpsimplehacks Thank you very much for the quick answer and the solution. ❤
I searched a lot to do that but i wasn't able to do, I found your video form blog and I helped me !!
Glad I could help!
Thanks a lot, for many weeks looking for a method like this, I found it now.
Greetings to you from Morocco
@Smart Crafts
You'e welcome 😊
I can't explain how helpful it was ❤️
Glad you liked it!!
Mate! Well done. This was to the point. Keep up the good work. New SUB
Thanks for the sub!
You may be also interested in video How to Show Contact Form Only When Product Is Out Of Stock. See here ua-cam.com/video/u78jVDCyWEE/v-deo.html
@@wpsimplehacks easier to find if you put a link either in a comment or in the description of this video👆
What do you think?
Best tutorials on youtube... Super awesome mate.. Keep going.. 👍👌
Thanks, will do!
Subscribed, eagerly waiting for content like this.
Thanks :)
You me also be interested in video on How to Show Contact Form When Product Is Out Of Stock. See here ua-cam.com/video/u78jVDCyWEE/v-deo.html
Hi there. Great tutorial. Thank you. QUESTION: How do I add more fields to the form? I've tried but it is not displaying on the front end? Is there perhaps addition code that needs to be added to the code snippets after adding new fields for the form?
Forms fields come from your form plugin, so it's not rwlated to the code snippet. You're just using the shortcode to display it.
Hi, Thanks for the video this is great! I have a question. Maybe you have a video tutorial or idea about it.
I need a product page where there are varations. Let us say colors and the inquiry button. once they choose the color and click the inquire now, form will pop out and the selected color will be there together with the required contact fields. thanks in advance.
Sorry, can't help you with this
hi thank you for sharing this trick,
I have one question if we don't want to show the product price how can we use this trick.
See whether this video helps you out ua-cam.com/video/-EzCP-4V_mk/v-deo.html
Great video thank you.
Just one question, how can I add 'add to cart' button after completing a form (such as questionnaire)
Sorry, can’t help with that
Great tutorial, Thank you very much. I want the form to display only certain categories. How to do that?
You need to use conditionals. See here www.businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/
Very helpful and easy to follow. Thanks so much!
Great to hear!
Thanks a lot, really good guide for a total beginner
Glad it helped
Great video and tutorial!!! You my friend have earned yourself a new sub!
Thanks for the sub!
Thank you for a great way of explaining it :)
Thank you for watching
Do you have a video on how to create a quotation form ?
Maybe this will help you out ua-cam.com/video/KsJK3-GzwLI/v-deo.html
3:38 - Where did that code snippet come from? He didn't even copy the shortcode for the form... I have re-watched this video more than 10 times but I don't understand where that code snippet popped out from. Please help, people.
As I said in the video (at 3:45 mark): the link the snippet is in the video description. Open it up and then you can use it on your site.
At 4:10 mark I even show where did I get the shortcode for Fluent Forms (that I use in this video).
@@wpsimplehacks Thank you so much. I had mistaken the information, and now my form is working perfectly. Thanks a ton!
This guy is amazing at what he does.
Thanks :)
Thanks very much , exactly what I've been looking for . I needed to add application form I think this will help ❤️
Glad it helped ☺️
thanks a lot , how can add vendor profile to single product page
I don't know ☺️
Hello, Thanks for the video. But is it possible to disable Add to cart button for some products?
Try with conditional logic www.businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/
Best Video ever. God bless brother.
Thanks 🙂
Awesome - anyway to do this using the Gutenberg block forms, like from Kadence?
Then you wouod need to output your Gutenberg template as a shortcode. If you have Kadence Pro theme then create an Element which containt your form and use the element shortcode.
Great video! Well done! Is there a way to get information back on wich variation of the product they have selected? Say I have some different sizes and colors i make my products in.
I haven’t figured out a way to do that with the regular contact forms. There is a plugin that does that but you have to pay for it. If you’re interested then it is here www.piwebsolution.com/product/enquiry-quotation-for-woocommerce-pro/
@@wpsimplehacks Thanks for answering! Do you know of a way to show different forms depending on product category?
You have to use conditionals. here a tutorial for you www.businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/
Hello! It's just what I was looking for. Is there any option to display the form into a pop-up or light box? Thank you in advance.
Depends on the plugin you're using. Some of them have an option to display it inside the modal.
Thank you for this video, how do I style the button "Enquiry" and close? I don't need it to be the same as "add to cart" button.
Replace this single_add_to_cart_button button alt with something else, for example "button-2". Now go to Appearance >> Customizer >> Additional CSS and customize your button. For example:
.button-2 {
background: #ffcc00;
color: #000000;
padding: 10px 30px;
}
@@wpsimplehacks Hope you don't stop here for this chnnel!! Thank you.
@@wpsimplehacks Replacing class name didn't. I think it's theme I am using, I used #trigger_cf to style button which worked but I am getting a block on hover. you know how to style that?
@@lehlohonolomokoena2204 Try this:
#trigger_cf.single_add_to_cart_button {
background: #000;
color: #fff;
}
@@wpsimplehacks I solved this with #trigger_cf:focus {
background: #FFF !important;
}
Thank you for your this video. 🙏
Is there any way we can change the button in the form?
Customize this here below accordingly:
#trigger_cf.single_add_to_cart_button {
background: #000;
color: #fff;
}
Hey great tutorial but it dosent seem to be working when using elementor pro and the theme builder or am I overlooking sommething
It's because Elementor overrides default Woocommerce hooks and uses their own hooks.
@@wpsimplehacks okay and how would i use the elementor hooks or find them?
Hello, thank you so much for your video! You have helped me out A LOT!
Just one question please, I don't want to Remove the Add to Cart button all over my site, only for these items with a contact form. Other items on the website should still be purchasable as per normal. How can I modify this code to get it right, please?
Try to add conditionals like displayed here www.businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/
Thanks Its a great informative video. Very easy and simple explanation.
Glad it was helpful!
Man, You are a life saver. Thank you for this video it help me a lot
I've been looking at this since last week, But thankyou you are the only one I saw having this kind of video thankyou so much.
Glad it helped :)
@@wpsimplehacks Do you have full tutorial making a woo commerce website from login and registration until the website finished?
i am a ui developer . i ask many people to do this for me but know one have time i see this video now i can do this . thanks
You’re welcome :)
About embed product title, and product URL issue. Could you please let me know how to make it by Contact form 7? Thanks so much.
Sorry, but I haven't used CF7. Here's something for you, though wordpress.org/support/topic/how-to-embed-the-wordpress-page-title-on-the-contact-form/
Very helpful video, thank you!!
Glad it was helpful!
Simply amazing. Thank you
Glad you like it
Hey, it worked but how can i set the button's bottom margin (the button that code snippets creates)
See whether this helps you out. Code goes to Customizer >> Additional CSS.
#trigger_cf.single_add_to_cart_button {
margin-bottom: 2em;
}
@@wpsimplehacks thanks, it worked :)
Woo! The exact video I have been looking for the whole time. Thanks very much. However, I have one worry, I am using the divi them, and the contact form does not show up when on mobile. Any ideas how i could remedy the situation? Thanks.
Sorry, can’t help you with that. It would be wise to ask about it from the Divi support team.
Thank you so much for that Video, but unfortantly it does not work on my side, i use Astra Theme with Elementor. Doing all steps, but the Button do not display on the Product page. Shuld i set up something special in the Themebuilder on the Single Product Page?
If you are using Elementor for creating custom single product pages then pay attention that Elementor overrides all Woocommerce default templates and therefore my snippet is not working.
I succeeded the rest of the stuff. but I cannot set a custom email other than the admin email to sent the notification
It depends on your form plugin. Every plugin has an option to add sender and a receiver emails-
You're appreciated! Thank you!
My pleasure!
wow this video was a great help. However, I am having problems with changing submit this form button name and color. please help
It depends on your contact form plugin you’re using. For example: Fluent forms allows you to change submit button colors.
Fantástico, procurava por isso a alguns meses. Obrigado (Fantastic, I've been looking for this for a few months. Thanks)
Glad it helped :)
Thanks a lot!Working just right!If we want to play the form only for the product with no price?Is a way for that?Thanks again!
I’m not sure but you may play with the conditional
if ( '' === $product->get_price() || 0 == $product->get_price() ) :
How can i choose the right place to put the button? i want it after category section...
Visual hooks guide for you www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/
good video, can codes be used in Blocksy theme?
Yes, it works well with the Blocksy theme
Wowww, this is very helpful!!!
Glad it helped 😊
What if I want to enquire several products, can I add it to a list and then inquire all together??
You would need to find a Woocommerce quotation plugin for this
thanks i was looking for thing for hours
Glad it worked
Hi. Thanks for the video. When i put my enquiry form code on snippet . after putting the code, Im facing an issue of disturbance onproduct page footer. Means the main headings of footer has been moved to right position because of Enquiry form code. And when i disable this form code , footer work perfectly!!
Probably your theme overrides some hooks. Try to use another hook location.
Can I add Kadence Element instead of fluent form? I ask coz Kadence also provides shortcodes for Elements
I haven't tested but most likely yes.
@@wpsimplehacks
Thank for answer. I asked because it didn't work for me. Turned out you have to leave the Placement option on the Element Settings to blank(None) and set it to show on the Entire Site in the Display Settings. Maybe it hels someone.
How to apply the form only to a specific product category? thank you
See the post here wpsimplehacks.com/woocommerce-product-enquiry-form/
I added the conditional category chapter for you.
@@wpsimplehacks Thank you for the help
sir can you make video on product hover zoom plz
Usually it is built in for Woocommerce
Can you suggest me a best plugin or code for hover zoom for product in woo commerce
Nice tutorial. I was wondering on how to addd enquiry form on product result page if no product results was found.
Add this snippet and replace the heading and shortcode
add_action( 'woocommerce_no_products_found', 'show_products_on_no_products_found', 20 );
function show_products_on_no_products_found() {
echo '' . __( 'Send us an enquiry.', 'domain' ) . '';
echo do_shortcode( '[your shortcode goes here]' );
}
my question is can you enable on a particular product
You need to use conditional logic in your snippet. See here www.businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/
Thanks a lot. you saved my day
You're welcome
Can i add different enquiry form for different variations?
You would need to modify the code but unfortunately I can’t help you with that.
Sir you are the best thankyou so much 👍👍😀🤙
Thank you for your kind words :)
How can we enable 'add to cart' after submitting the form? (add to cart will be disabled before the form submission.
You would need to find a custom solution for it because this snippet is not intended for adding something to cart or is not in any way connected to the add to cart button.
Bro thanks awesome video..
Glad you liked it
thank you this made my life easier
Glad it helped 😊
Great tutorials! How can I add the "Send us inquiry" button in my single page?
Well... this tutorial you’re commenting here should showe you exactly this :)
Hello, thanks for the video. But I need your help. I have done all the things which you mentioned in the video but the "Enquiry Now" button is not showing on my product page. Can you help me, please?
Please post a screenshot of the code you pasted on your theme.
@@wpsimplehacks I have installed the plugin and do the same procedure. I have to change in theme as well?
@@wpsimplehacks I have sent you screenshot by email. Kindly check
Perfect sir, just Perfect
Thanks :)
Excelent video! I´ve been looking for this. When I add the code in the plugin and save it, it says that I don't have permission to access this resource. Can you help me with this? Thanks!
Problably there is something wrong with your role permissions or there is a plugin that interferes. Hard to say.
Hi
I am going to give this a try but my product is extremely complex variable product using extra product options. Is it possible for us to have that button as “build quote” and after customizing it, we send this quote directly to customer email where they accept and it redirects them to check out? We can use fluent forms pro with CRM so this is only for the store people to use not for the customer. Please advise how. I would love to connect with you if you could help. Thanks in advance
Hi,
I’m not sure that this kind of solution can be done with it. It would be wise to ask Fluent CRM / Fluent Forms team about it.
@@wpsimplehacks As much as that plugin is powerful the video tutorials are repetitive and scenario based tutorial will be helpful. But if fluent is not involved, what would be your recommendation to achieve this?
I haven’ t used any but try to search for a Woocommerce quatation plugins. Maybe some of them is offering such a features.
@@wpsimplehacks tried YITH, but i want to send it from the front end. It acts as if for the customer. But we need it for the store. But thanks for your response.
You save me a lot of stress.i mean a lot . Thank you
Glad it worked :)
Muchísimas gracias! Thank you so much!
Thank you for watching :)
where can i found the snippet code to copy please?
How about the video description as said in the video? :)
@@wpsimplehacks There is no Snippet in the description, mate. Plz check and re-post it
Thank you :) I'm using Gravity Forms shortcode. After submitting, the form closes and the confirmation text is not visible. If I click the Enquiry button again the confirmation text becomes visible. How can I disable hiding the form after submission?
Sorry, but I’m not familiar with the GF.
after doing all step, after testing the button doesnt open form, tried many times
You may have some kind of conflick with the theme or any other plugin
Congratulations on the content, it worked very well! I would like to know if it is possible to include two buttons in a product, Example: I have products with a quotation form and products available for approval which is another form, but in this product with an approval category I would like to make both buttons available (Request Quotation / Request Homologation ), it would be possible?
It would need re-writing the code from the scratch.
hI and thank you for this awsome tips! how can i add a custom fiels that customer can fill for some customizable products. Like the name he want for a customizable necklace fir example and i wish that this text would be display on order notifications. Is there a solution for this using code ?
Hi,
This can be done by using custom code but it is a bit more difficult than a couple of lines of code. Take a look at this plugin here: wordpress.org/plugins/woo-extra-product-options/ This on helps you do the things you asked.
@@wpsimplehacks Okay thank you for quick reply. I will try it. keep going with your good tips, especially for Kadence ;)
@@wpsimplehacks Thank you!
Salaam, brother I'm Abdelaziz from Morocco.
First of all thanks a lot for your purposive videos.
Q: how can I hide a product price ( price will be on application) yet at the sane time keep the add to cart button)
Best greetings.
See this video "Woocommerce Catalog Mode & Conditionally hide add to cart button and price"
ua-cam.com/video/-EzCP-4V_mk/v-deo.html
thanks for video after whole day i find your video. i have a qustion.. how can we use subcategories ?
What do you mean by that? :)
@@wpsimplehacks i want to use this enquiry form in specific subcategory not in main category how will its possible ?
You need to use conditionals for thet. See here www.businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/
@@wpsimplehacks thanks its work 🙂 ..... But its not show on my product page which i created by elementor pro
It’s because Elementor overrides default Woocommerce template. Us Elementor Pro modal option to insert a enquiry form on product pages.
How can we add simple send enquiry button form in a simple wordpress website ? In product varieties display ?
So you want to show enquiry form for variations only? This need custom coding so you would need to hire someone who can code it for you.
@@wpsimplehacks thanks for your valuable response
I'm using astra theme and when press the buttom nothing is happening . Wa na change astra theme without breaking my website . Is that possible ?
I have tested it with Astra and works well here. If you’re using any page builder (Elementor etc) that overrides Woocommerce default hooks then those snippets won’t work.
@@wpsimplehacks yes I'm using Elementor may be that's why
@@wpsimplehacks I got it right finally . Thank you very much ❤️
when i click on the button it does not call the form why is that
I don’t know :) Did you use correct shortcode etc?
Such a great tutorial -Thanks! Quick Q: How to remove enquire button when out of stock?
It would require a modification of the snippet but unfortunatley I have too much stuff going on at the moment to take a closer look at it.
@@wpsimplehacks I would be willing to pay if that makes a difference!
@@benjaminhammond9648 Hi, Sorry Benjamin, but at the moment I am fully booked and have no time to spare for these kinds of project. See, whether a freelancer from Upwork can help you out www.upwork.com/hire/woocommerce-developers/
Hey I just want add the form without the enquiry button is it possible?
Try this:
add_action( 'woocommerce_single_product_summary', 'wpsh_enquiry_form_without_button', 30 );
function wpsh_enquiry_form_without_button() {
echo do_shortcode('[fluentform id="1"]'); // Add your own shortcode here
}
Hi, If I want to Show Woocommerce Product Enquiry form For a Specific Sub_category. E.g. Animals (Parent category), Tigers (subcategory of Animals), Cats(subcategory of Tigers). So how to display it in code if in you category for parent category you mentioned "product_cat". What will it be for Cats and Tigers in my example. Thank you in advance.
@@wpsimplehacks
Absolutely brilliant supper easy to follow.. Subs.. It would be great if you could start a complete woocommerce series basic to advance..
Hi,
Thank you for the sub. The basic Woo stuff is a bit out of my niche and there are a lot of videos on "how to set up a woo site" or "how to confifure a woo site" and therefore I think I will stay with the small hacks like this :)
Is there anything particular you would like me to make a video on?
Thanks for this video.
You're welcome
Can the product category be extracted using this form?
@@silvestarspasov2470 No, it doesn't.
thank you it worked ....
Great :)
Hello, thank you for the great snippet! I am having one issue - When I click my form button to expand it, it seems to treat the form button as the add to cart button as well. Giving me an error that I need to select quantity and dates before adding to cart (I use a booking base product purchase system called Easy Booking). Have you or anyone else encountered this error?
Nope. Either your theme or Easy booking button has a conflict with the snippet. Try to change this part here: class="single_add_to_cart_button button alt". For example, instead of "single_add_to_cart_button" rename it as "enquiry_button"
sir..Is there any way to display name of the particular product automatically in the Enquiry form?
Dont use the hidden field. Use HTML field and add this inside the content {embed_post.post_title}. This will display product name in your form.
@@wpsimplehacks Thanks sir . Working fine.:)
Can I add enquiry form to a variable product
I haven’t figured out a way to do that with the regular contact forms. There is a plugin that does that but you have to pay for it. If you’re interested then it is here www.piwebsolution.com/product/enquiry-quotation-for-woocommerce-pro/
Awesome video its works perfectly on the desktop site. But The button is not working on mobiles
Just tested on four of my sites and works well everywhere.
@@wpsimplehacks I am using ocean wp theme is that any conflict ?
is there any option to add like popup for enquiry form ?
@@vinaymohanvny3589 It depends on your form. Fluent forms for exampla has tan option to add it as a popup wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/modal-popup-lightbox-wp-fluent-forms/
I did it following these steps, but no button showing. What's wrong?
I don't know because I have no access to your site 🙂
helped a lot I've to do the same work you did Jazakallah
Glad it helped
I'll save it and watch it later
Thanks
How can we do css of this form ?
Fominator -> Forms -> [Your form->edit] -> Appearance -> Custom CSS
Hello, thanks for your video. Is it possible to do the following ?
For non-registered users :
Hide the price and add to cart button
Display an enquiry form on the short description section of the product page.
For registered users :
Show prices and add to cart
Hide the enquiry form
Hi,
Yes, it can be done, but you need to tweak the code with conditionals. For example, "is_user_logged_in" conditional. Here are some examples on how to use conditional logic www.businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/
how to add custom CSS in "Send us your enquiry" button ?
It depends on the form you are using. If you know what plugin is that then you should ask from the contact form plugin support.
@@wpsimplehacks i using your snippet which you used in your video
Yeah, but the submit button depends from your theme colors and form submit button depends on the form you are using. If you are using Fluent forms then you can customize this button from the form edit page.
Hi please make a tutorial to open contact form in a popup. Thanks for the great video.
Fluent Forms allows you to make a popup form. See tutorial here wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/modal-popup-lightbox-wp-fluent-forms/
Also, with Caldera forms you can create pop-up forms. See here calderaforms.com/doc/caldera-forms-shortcode/
Website working now thanks :)
@@wpsimplehacks I have tried this WP Fluent Forms popup/modal forms, but it doesn't work for me. The shortcode for the form itself works, but the shortcode for the modal doesn't. Can you make a tutorial and see if I'm doing something wrong? I was also thinking that the popup option might be a premium feature & maybe that's why it doesn't work for me.
@@CaerelsJan The modal should also work with the free version. Take a look at the Fluent Forms docs site here wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/modal-popup-lightbox-wp-fluent-forms/
If it still does not work then probably the best way to get the solution is to ask from the Flurent forms support team here wordpress.org/support/plugin/fluentform/
@@wpsimplehacks Hi! Yes I followed the instructios from the docs exactly! The form shortcode works, but the form-modal shortcode doesn't :(
The suggestion for the support team: I already did :-) But I sent a request via their website directly (not via wordpress.org). I will see what they say
thank you
You're welcome
Hi ive added and it look sgreat but im using if ( has_term( 'unique', 'product_cat' ) ) { with unique being my slug for categoey - however its showing on all categpry products , any ideas please ?
Hi,
Did you try this one here? wpsimplehacks.com/woocommerce-product-enquiry-form/#how-to-show-woocommerce-product-enquiry-form-for-a-specific-category
I just tested it and it works as promised. Pay attention though that your product doesn’t belong to the category "unique" if you don’t want it to show the form.
I have the below: 'unique' is the category I only want the enquire form to show - but its showing on all categories for me ? thanks
add_action( 'woocommerce_single_product_summary', 'enquiry_form', 30 );
function enquiry_form() {
if ( has_term( 'unique', 'product_cat' ) ) {
echo 'Enquire for more colours';
echo '';
echo do_shortcode('[contact-form-7 id="1580" title="colour form"]');
echo '';
}
else {
echo 'Enquire for more colours';
echo '';
echo do_shortcode('[contact-form-7 id="1580" title="colour form"]');
echo '';
}
}
add_action( 'woocommerce_single_product_summary', 'enquiry_form_1', 40);
function enquiry_form_1() {
?>
jQuery('#trigger_cf').on('click', function(){
if ( jQuery(this).text() == 'Enquire for more colours' ) {
jQuery('#product_inq').css("display","block");
jQuery("#trigger_cf").html('Close');
} else {
jQuery('#product_inq').hide();
jQuery("#trigger_cf").html('Enquire for more colours');
}
});
You're using wrong snippet. You're using snippet that should show one form for specific category and other one for everything else. Although you're using same form for everything. See my link in my previous comment which contains the snippet you should use.
@@wpsimplehacks Thankd went through it all again and it works - thats great help ...
when I finish, it gets me this error message:
"A potentially unsafe operation has been detected in your request to this site
Your access to this service has been limited. (HTTP response code 403)
If you think you have been blocked in error, contact the owner of this site for assistance."
I suppose it's because i'm entering new code but.. I'm not sure :S Is this normal?
Probably you are usinf Wordfence or any other security plugin which gives this warning. You may not pay attention to it