-
AuthorPosts
-
January 16, 2020 at 8:08 am #1174760
Hi,
How can i ad a enquire button with pop-up form on my productpage
Is there a plugin for this or how can i do this? In private content a link to my product page
Can i ad a enquire button below the images ?January 16, 2020 at 2:14 pm #1174966Hey karel,
Please have a look at the following thread:
https://kriesi.at/support/topic/open-popup-modal-with-button/If you need further assistance please let us know.
Best regards,
VictoriaJanuary 19, 2020 at 7:16 pm #1176062Hi,
I managed to put a buton on my page but i dont see how to create a form popup window when i click on this button.
Also i wish that in the popup the product name is already filled in.
Do i need to do this with a popup plugin or Add-ons for the form or do enfold already have this installed ?
In private content i sent you a example from other website, click on enquere and you see that a popup opensSecond question
Can I place a button that when you click on it take you to the next productpage ?- This reply was modified 4 years, 10 months ago by karel.
January 19, 2020 at 10:29 pm #1176147Hi,
Well done on your buttons, I see that your “call us” and “enquere” buttons are opening popups. I also see that your “enquere” has a CF7 form. So I guess your last question is the redirect on submit?
For that please try the Redirection for Contact Form 7 plugin.
While this can be done with javascript, since you are using CF7 I would recommend using this plugin to keep everything working well.
Please let us know if there is anything else we can assist with.Best regards,
MikeJanuary 20, 2020 at 8:03 am #1176215Hi,
Thank you for your answer but i think there is a mistake.
The link that I sent in previous mail was an example of another website (see link n ° 1 in private content).
When there you click on Enquere you will see a pop-up form opens. This is what I want to reach on my page.You can find my page here, see link n ° 2 in private content
I was able to place the button on my page but I don’t know how to make a popup form now? How to place afterwards the link to the form is no problem.The intention is that when I click on the Click me button a popup opens. How do I make this popup form with a plugin?
I also wish that the product name in my case Ataija Azul is already entered in the pop-up form, see also example website product name .Second question
If I click on the button Previous or Next button then I wish to go to the previous or next productpage, how do I do this? Which link or codedo i putin the button?- This reply was modified 4 years, 10 months ago by karel.
January 20, 2020 at 1:06 pm #1176277Hi,
Oh, I see, so you want your “next” & “previous” buttons to link the same way as the “next” & “previous” fly-outs on the page?
Please see the screenshot in Private Content area.
To make a popup please read this article that has the script to use and if you follow the link in the post you will see the HTML & CSS.
If you are going to use the CF7 (Contact Form 7) it will give you the shortcode to create the form which you can add to the popup html. In CF7 you can use placeholders or Set the Default Value in the field. (advanced technique)Best regards,
MikeJanuary 21, 2020 at 8:16 am #1176589Hi Mike,
Yes, i wish my “next” & “previous” buttons to link the same way as the “next” & “previous” fly-outs on the page.
How do i do this ? I dont think that i need to put a link on each page to the next or previous page. it there not a code to go directly to next previous page ?To make the popup like you wrote I have to enter and adjust php, html and css codes that seems complex and difficult for me.
Is it not better and easyer for me to install CF7 plugin to make the popup or wat are your recommendations ?January 21, 2020 at 1:58 pm #1176722Hi,
I did a quick search & test for a popup plugin and found WP Popups it says it works with CF7 and in my test it worked fine with Enfold and the Enfold shortcode and was able to link to a button using a custom class trigger in the popup options, you’ll see the option under triggers when you build your popup.As for the next & previous, we don’t have an easy way to add these into a custom location or assign them to different buttons like you are asking, but I was able to write this function to get the current next & previous links and replace the links in your custom buttons. This will work now but if your buttons change when you add the popup we may need to adjust the script, but after that it should work for every product.
Try adding this code to the end of your functions.php file in Appearance > Editor:
function custom_next_prev(){ ?> <script> (function($){ $(document).ready(function(){ var getprev = $("a.avia-post-nav.avia-post-prev").attr("href"); var getnext = $("a.avia-post-nav.avia-post-next").attr("href"); $(".woocommerce-product-details__short-description .avia-buttonrow-wrap a.avia-button:nth-child(2)").attr("href", getprev); $(".woocommerce-product-details__short-description .avia-buttonrow-wrap a.avia-button:nth-child(3)").attr("href", getnext); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_next_prev');
Best regards,
Mike- This reply was modified 4 years, 10 months ago by Mike. Reason: correct an error
January 25, 2020 at 9:04 am #1178279Hi,
I placed the code in the functions.php but i geth a error message on line 117Your PHP changes have been reversed due to an error on line 117 in the wp-content / themes / enfold-child / functions.php file.
Repair and try again.
syntax error, unexpected ‘$’, expecting variable (T_VARIABLE)January 25, 2020 at 3:15 pm #1178365Hi,
Sorry about that, looks like I forgot a line, please try this instead:function custom_next_prev(){ ?> <script> (function($){ $(document).ready(function(){ var getprev = $("a.avia-post-nav.avia-post-prev").attr("href"); var getnext = $("a.avia-post-nav.avia-post-next").attr("href"); $(".woocommerce-product-details__short-description .avia-buttonrow-wrap a.avia-button:nth-child(2)").attr("href", getprev); $(".woocommerce-product-details__short-description .avia-buttonrow-wrap a.avia-button:nth-child(3)").attr("href", getnext); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_next_prev');
Best regards,
MikeJanuary 25, 2020 at 6:16 pm #1178388Great thank you everyting is working !!!
January 25, 2020 at 7:59 pm #1178398 -
AuthorPosts
- You must be logged in to reply to this topic.