Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter tylerriversadmin

    (@tylerriversadmin)

    I can’t think you enough! Everything is taken care of.

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    Between what you’ve told me and my own digging, I believe I’m on the right track. At current though I can’t get it to work.

    My code is currently:

    var sagePaymentsURL1 = (function(){
    var subtotal = fieldname69;
    var tax = fieldname61;
    var shipping = fieldname49;
    document.location.href="https://www.sagepayments.net/eftcart/forms/express.asp?M_id=XXXXXXX&T_amt="+subtotal+"&T_ta
    x="+tax+"&T_shipping="+shipping;
    })()

    I’m unfamiliar with the document.location.href method (still rather new to javascript). I’d like to pass the value of the above function to an HTML content field where I can build a simple button to send the customer to the URL. At current, I have this:

    <script type="text/javascript">
    document.write('"<div class="pbSubmit" style="color: #FFF;"><a href="')
    document.write(sagePaymentsURL1)
    document.write('" data-featherlight="iframe" data-featherlight-variant="flDownloads" style="iframeWidth: 1200px;" iframe scrolling="no">Check Out</a>
    </div>')
    </script>

    Please let me know if I’m missing anything. If I can hash this out, the forms will be essentially complete and I can stop bothering you 🙂

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    Alternatively, it appears that I could do this without PHP or javascript if only I were able to set the ‘name’ attribute of specific fields – meaning I could set the ‘name’ of the calculated field in which I have the order total to “amt”.

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    I appreciate you taking me through it. With a little extra testing, I realized that the issue is specific to certain email programs, as you mentioned. We will be migrating our site once it is finished, so the issue of our emails being filtered as spam or phishing emails should clear up then, once we’re permanently located at the correct domain.

    Thank you.

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    Thank you! It works.

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    I’m sorry to report that the new code has the same effect as the old.

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    Sure. Many pages on the site have forms, but I’ve only hidden the fields on one of them thus far: http://72.41.28.254/wordpress/products/print-only-home/post-cards/

    I’ve re-implemented the above code so that you can test it after the change. If I remove the offending line, the functionality does return to normal (albeit while displaying the hidden fields in the summary page, bummer).

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    Apologies, but that little bit of code seems to be killing my submit buttons. Upon submitting the page hangs and never goes to the Thank You page, and I don’t get a form-submission notification email. I believe I’ve put it in the correct place.

    The code before my edit is :

    $dexQuery("#cp_calculatedfieldsf_pform<?php echo $CP_CFF_global_form_count; ?>").find( '.ignore' ).closest( '.fields' ).remove();
    $dexQuery("#form_structure<?php echo $CP_CFF_global_form_count; ?>").remove();
    $dexQuery("#cp_calculatedfieldsf_pform<?php echo $CP_CFF_global_form_count; ?>")[ 0 ].submit();

    The code after my edit:

    $dexQuery("#cp_calculatedfieldsf_pform<?php echo $CP_CFF_global_form_count; ?>").find( '.ignore' ).closest( '.fields' ).remove();
    $dexQuery("#form_structure<?php echo $CP_CFF_global_form_count; ?>").remove();
    $dexQuery("#cp_calculatedfieldsf_pform<?php echo $CP_CFF_global_form_count; ?>").find("[type='hidden']").remove();
    $dexQuery("#cp_calculatedfieldsf_pform<?php echo $CP_CFF_global_form_count; ?>")[ 0 ].submit();

    Please let me know if I have somehow failed to Ctrl-C > Ctrl-V correctly. Thank you.

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    Thank you very much! I forgot to ask in my original post – will this change also affect the summary email that is sent to the customer?

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    Thanks for your reply.

    I did find the Submit button option under Paypal, which seems to work. I didn’t expect to find it there since we aren’t using Paypal for payments.

    I have correctly included the fieldname url tag in the notification email text as per your instructions. Unfortunately I’m not receiving the uploaded file as an email attachment, or through a link in the email. Can you help? You can find the form I am testing here

    Any thoughts on if it is possible to move the submit button and/or captcha fields? I would like to embed them in different places in the form.

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    It’s working perfectly, thank you so much! Let me know if you still want me to create a ticket just for your records.

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    Just had a chance to implement this, and sadly it isn’t having any effect; any suggestions?

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    Perhaps I’m just setting up the fields incorrectly, but I would like to be able to have a daisy-chain of selections. I’m not sure I can reliably describe the technicalities of the settings, but perhaps I can give you the use-case:

    In the form on the site that you looked at you’ll notice there are multiple Quantity fields, where I’d like only 1 of them to have been visible. The Customer would select the product they want, then the size that they want, and then the quantity. Right now they go through that series of selections, but they always end up with at least 5 different quantity fields, rather than the that 1 corresponds to their selection.

    In terms of the fields, right now that means that the chain of dependency is as follows:
    Product Radio Buttons > Size Options > Quantity

    Basically, because I have selected a default size option for each product, I’m currently seeing 5 Quantity fields (one for each of the default sizes of the products).

    My apologies if what I’m trying to get across is unclear.

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    Sure.

    http://72.41.28.254/wordpress/products/banners-signs/

    Check the form near the top of the “Window Signage” tab. There is another, simpler form on the first tab that is working as intended.

    Thread Starter tylerriversadmin

    (@tylerriversadmin)

    Thanks so much for your reply!

    That is definitely working, but only for individual pages – the way I have the forms set up is on one page using tabs. The Javascript changes the value on all of the instances of the form to whichever is the last value set in the last form shortcode. Any tips?

Viewing 15 replies - 1 through 15 (of 15 total)