Send Enquiry + Form

This topic contains 2 replies, has 3 voices, and was last updated by  Giri 6 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #381050

    Tim Sanford
    Full Member
    Post count: 157

    Hi Guys,

    My js is a little rusty and I’m hoping you can help me with 2 quick things
    Reference thread: https://wpgeodirectory.com/support/topic/moved-send-enquiry-button-not-working/

    I’ve added an additional location for send enquiry much like the thread above, however I’d like the 2nd link to be conditionally visible like the default in the event that the listing doesn’t have an email assigned to it.

    Also, for the enquiry form itself, I’d like to use a different form entirely. Would it be better to create a different form template file or update the existing to accommodate the desired fields/content and by chance is it possible to integrate something like contact form 7 into this?

    #381144

    Paolo
    Site Admin
    Post count: 31206

    I’ve flagged your request for the developers. They’ll let you know asap.

    Thanks

    #381266

    Giri
    Expired Member
    Post count: 3155

    Hi Tim,

    I’d like the 2nd link to be conditionally visible like the default in the event that the listing doesn’t have an email assigned to it.

    You have to wrap paolo code inside an if check like this

    
    
    global $post;
    if (!isset($post->geodir_email) || empty($post->geodir_email)) {
    	?>
    	<a href="javascript:void(1);" class="b_send_inquiry2" onclick="jQuery( '.b_send_inquiry' ).click();">Send Enquiry</a>
    	<?php
    }

    Also, for the enquiry form itself, I’d like to use a different form entirely. Would it be better to create a different form template file or update the existing to accommodate the desired fields/content and by chance is it possible to integrate something like contact form 7 into this?

    This is not possible without hiring a developer. You can reference this code if you wanna link send enquiry button to another page.

    https://wpgeodirectory.com/support/topic/listing-detail-author-link/#post-361147

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket