• Hi everybody,

    First of all sorry for my bad english.

    I have a problem with using easy fancybox and contactform7 in my functions.php

    I edited my functions.php so you have request the price of a product.

    add_filter(‘woocommerce_empty_price_html’, ‘custom_call_for_price’);

    function custom_call_for_price() {
    return ‘Call for price’;
    }

    No i wanted to change this so when clicking on call for price it pop ups a contact form.

    i changed it like this:

    add_filter(‘woocommerce_empty_price_html’, ‘custom_call_for_price’);

    function custom_call_for_price() {
    return ‘Prijs aanvraag
    <div style=”display:none” class=”fancybox-hidden”>
    <div id=”contact_form_pop”>
    [contact-form-7 id=”2302″ title=”Prijsaanvraag”]
    </div>
    </div>
    ‘;
    }

    But now, when clicking on Prijs aanvraag (price request) it shows
    The requested content cannot be loaded.
    Please try again later.

    here is the link: https://test.futuregrowing.nl/shop/aquarium-paneel-540w/

    Is there anybody that can help me solving this problem? thank you!!

Viewing 1 replies (of 1 total)
  • Hi FutureGrowing, you need to do (at least) two things:
    1. use the class “fancybox-inline” for inline content.
    2. replace [contact-form-7 id="2302" title="Prijsaanvraag"]” with:

    '.do_shortcode('[contact-form-7 id="2302" title="Prijsaanvraag"]').'

Viewing 1 replies (of 1 total)
  • The topic ‘Problem Contactform / easyfancybox’ is closed to new replies.