Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: Conflict with Theme/Woocommerce and Stripe Integration #29911
    danieltjohnston
    Participant

    Thanks so much! Everything is working great. I really appreciate your help.

    in reply to: Conflict with Theme/Woocommerce and Stripe Integration #29900
    danieltjohnston
    Participant

    I made these changes. It did resolve the theme error/conflict, but I must have messed something else up on the form, because now it won’t load.

    test

    in reply to: Conflict with Theme/Woocommerce and Stripe Integration #29899
    danieltjohnston
    Participant

    Thanks so much. I will give this a try. Also, is there a way to implement the stripe add on for two different forms?

    in reply to: Version 2 – Visibility #21988
    danieltjohnston
    Participant

    Hi Ally,
    I was able to get the form input to take on the “hidden” type using the Admin only visibility and entering a parameter in the dynamic field, but now I have another issue because of it.

    I have my form set to load a value into that hidden field when it loads (it’s a url for a pdf download). That value is a custom meta field created by woocommerce. The code that I’m using populates that hidden field correctly. I’d then like to have the form redirect to the value in the hidden field, but the redirect won’t work. The form submits, but then just reloads the page it’s currently on. If I have the hidden field, displayed, it does re-direct correctly. Here’s the code that I’m using and the live page that I’m using it on:
    http://www.learninggoodnews.com/product/love-is-matching-flip-book/

    function my_populate_wc_attribute($form)
    {
        $value = get_post_meta( get_the_ID(), '_dwnfile', true );
    
        $form->setValue('quform_1_4', $value);
    }
    add_action('quform_pre_display_1', 'my_populate_wc_attribute');
    
    function my_success_redirect_url($url, Quform_Confirmation $confirmation, Quform_Form $form, $post)
    {
        // Custom code example
        $url = $form->getValue('quform_1_4');
     
        return $url;
    }
    add_action('quform_confirmation_redirect_url_1_1', 'my_success_redirect_url', 10, 3);
    in reply to: Change Form ID on imported form #21677
    danieltjohnston
    Participant

    Thanks!

    in reply to: MailChimp Integration – Opt-In Subscribe #14704
    danieltjohnston
    Participant

    Hi Ally,
    I figured it out, I had failed to update the

    add_action('iphorm_post_process_1', 'my_save_to_mailchimp', 10, 1);

    to point to the new function name. Once I changed it to this it worked fine.

    add_action('iphorm_post_process_1', 'my_save_to_mailchimp_location_opt_in', 10, 1);

    Thanks for your help.

    in reply to: MailChimp Integration – Opt-In Subscribe #14703
    danieltjohnston
    Participant

    Hi Ally,
    I temporarily disabled the sending emails on the Form Builder. Here’s the updated log:

    http://www.johnstoncompanies.com/debug.log

    I attempted the test @ 15:44 of 3/18.

    in reply to: MailChimp Integration – Opt-In Subscribe #14652
    danieltjohnston
    Participant

    Hi Ally,
    I enabled the debug mode logging.

    Here’s a copy of the log:
    http://www.johnstoncompanies.com/debug.log

    and the page with the form:
    http://www.johnstoncompanies.com/locations/joplin/

    Thanks.

    in reply to: MailChimp Integration – Opt-In Subscribe #14554
    danieltjohnston
    Participant

    Hi Ally,
    I finally got a chance to test it out, but it doesn’t seem to be working. No matter if I check the box or not, no email address is pushed through to Mailchimp.

    Here’s the code that I’m using, minus my API and list ID…


    function my_save_to_mailchimp_location_opt_in($form)
    {
    if (!in_array('Join our Newsletter - Sign Up for Additional Resources and Cost Savings Ideas', $form->getValue('iphorm_1_9'))) {
    return; }

    if (!class_exists('MCAPI')) {
    require_once dirname(__FILE__) . '/MCAPI.class.php';
    }

    $api = new MCAPI('1111111111111111111'); $listId = '11111111111'; $email = $form->getValue('iphorm_1_5');
    // OPTIONAL: if you are saving additional fields to MC, set the merge tags, otherwise set $mergeVars to an empty array
    /*$mergeVars = array(
    'MERGE1' => $form->getValue('iphorm_3_2'), 'MERGE2' => $form->getValue('iphorm_3_3'), 'MERGE3' => $form->getValue('iphorm_1_5') );
    */
    // Other settings
    $emailType = 'html';
    $doubleOptin = true;
    $updateExisting = false;
    $replaceInterests = false;
    $sendWelcome = false;

    $api->listSubscribe($listId, $email, $mergeVars, $emailType, $doubleOptin, $updateExisting, $replaceInterests, $sendWelcome);
    }
    add_action('iphorm_post_process_1', 'my_save_to_mailchimp', 10, 1);

    in reply to: MailChimp Integration – Opt-In Subscribe #13756
    danieltjohnston
    Participant

    Thanks for your help. If I wanted to apply this function to multiple forms, all connected to the same mailchimp list, how would I do that?

    Thanks again.

    in reply to: Popup Form Button Link? #9654
    danieltjohnston
    Participant

    Thanks for your help!

    in reply to: Center Error Messages #7817
    danieltjohnston
    Participant

    Thanks. That worked great.

    in reply to: Submit Button Conditionally #7397
    danieltjohnston
    Participant

    Thanks for your help. That works well, but there is one issue.

    When I load the form via this parameter that I have set…

    http://johnstonsafetysupply.com/contact/?topic=Quote

    …the send button doesn’t display. Is there a way to make it display if I load the page via that link (with the “Request a Quote” option automatically selected in the drop-down through the link setting).

    in reply to: Submit Button Conditionally #7356
    danieltjohnston
    Participant

    Thanks for your help.

    Here’s a link to the form:
    http://johnstonsafetysupply.com/contact/

    I’d like the send button to be hidden if the “Select Your Topic” dropdown is equal to “Select Your Topic”.

Viewing 14 posts - 1 through 14 (of 14 total)
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy