Moved Send Enquiry Button not working

This topic contains 10 replies, has 4 voices, and was last updated by  Paolo 9 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #34799

    dave@ocl.ie
    Buyer
    Post count: 59

    Hi Guys

    Im trying to add the Send Enquiry button to a another position on the detail form. (Under the Title )

    But when I click it the enquiry link the form starts loading but does not actually get displayed. You can only see the X to close the form

    You can see this happening here
    http://showroom.ie/showroom/ireland/dublin/dublin-city/cabinet-maker/christy-bird-co/

    The SEND ENQUIRY on the Left hand side of the page under the Listing Name does not work while the standard one on the right hand side works perfectly.

    Im using Geo Version 1.3.9 and the Avada Theme

    A screen print of my code is attached

    Any Ideas?

    Thanks
    dave

    #34817

    Guust
    Moderator
    Post count: 29970

    I am pretty sure that you cannot have 2 of these same forms on the one page, but I’ll alert Paolo to look at your topic too.

    #34854

    dave@ocl.ie
    Buyer
    Post count: 59

    Thanks Guust

    #34910

    dave@ocl.ie
    Buyer
    Post count: 59

    Although, You are able to have two SEND INQUIRY Forms (as per normal GD)
    One in the Tabs and one in the list (see attached)

    #34911

    dave@ocl.ie
    Buyer
    Post count: 59

    Although, You are able to have two SEND INQUIRY Forms (as per normal GD)
    One in the Tabs and one in the list (see attached)

    thanks
    dave

    #34926

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    ok the problem is that it searches from the link location for the post id

    We can get around this by just making the new link call the old link

    Try:

    <a href="javascript:void(1);" class="b_send_inquiry2" onclick="jQuery( '.b_send_inquiry' ).click();">Send Enquiry</a>

    Let us know,

    Thx

    #34927

    dave@ocl.ie
    Buyer
    Post count: 59

    Fantastic Paolo

    That works great

    Thanks so much

    dave

    #34929

    Paolo
    Site Admin
    Post count: 31206

    we need to thank Stiofan, me I was stuck all week end trying to solve like you… 🙂

    #34935

    dave@ocl.ie
    Buyer
    Post count: 59

    Nice one Stiofan…. Appreciate it

    dave

    #35261

    adriangraham
    Expired Member
    Post count: 426

    Guys. This works a treat, but for one small issue I am hoping you can guide me with. When I added this change enquiries definitely have increased. So this is a good change.

    However, I have noticed a trend that enquiries are getting sent twice a lot… this is because it’s not obvious (if you send an enquiry by clicking the “Send Enquiry” button from this new location) if the enquiry for sent or not…. as there is no message under the button in this new location.

    I notice there is a class “sucess_msg” that shows the “Enquiry Sent Successfully” message. When I add this just under the new button the success message shows all the time…. instead of just when an enquiry is sent. So I am missing something small:

    
    
    <a href="javascript:void(1);" class="b_send_inquiry2" onclick="jQuery( '.b_send_inquiry' ).click();">Send Enquiry</a>
    <p class="sucess_msg">Enquiry Sent Successfully</p>
    #35296

    Paolo
    Site Admin
    Post count: 31206

    hi,

    the Sent Successfully message appear after sending the message becuase the URL change and ?send_inquiry=success
    is added at the end of it.
    This should be the correct code to be placed under the link calling the form
    :

    
    
    
     if (isset($_REQUEST['send_inquiry']) && $_REQUEST['send_inquiry'] == 'success') {
                                    echo '<p class="sucess_msg">' . SEND_INQUIRY_SUCCESS . '</p>';}

    I say should, cause I haven’t tested it, but I’m 99% sure it will work.

    Let us know,

    Thanks

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

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

Open Support Ticket