Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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 ?

    #1174966

    Hey 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,
    Victoria

    #1176062

    Hi,
    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 opens

    Second 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.
    #1176147

    Hi,
    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,
    Mike

    #1176215

    Hi,
    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.
    #1176277

    Hi,
    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,
    Mike

    #1176589

    Hi 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 ?

    #1176722

    Hi,
    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
    #1178279

    Hi,
    I placed the code in the functions.php but i geth a error message on line 117

    Your 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)

    #1178365

    Hi,
    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,
    Mike

    #1178388

    Great thank you everyting is working !!!

    #1178398

    Hi,
    Glad to hear :) If you have tried adding your buttons to other products and the buttons continue to work properly, then perhaps we can close this thread?

    Best regards,
    Mike

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.