Forum Replies Created
- AuthorPosts
- September 5, 2019 at 7:26 pm in reply to: Conflict with Theme/Woocommerce and Stripe Integration #29911
danieltjohnston
ParticipantThanks so much! Everything is working great. I really appreciate your help.
September 4, 2019 at 11:00 pm in reply to: Conflict with Theme/Woocommerce and Stripe Integration #29900danieltjohnston
ParticipantI 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.
September 4, 2019 at 2:23 pm in reply to: Conflict with Theme/Woocommerce and Stripe Integration #29899danieltjohnston
ParticipantThanks so much. I will give this a try. Also, is there a way to implement the stripe add on for two different forms?
danieltjohnston
ParticipantHi 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);
danieltjohnston
ParticipantThanks!
danieltjohnston
ParticipantHi Ally,
I figured it out, I had failed to update theadd_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.
danieltjohnston
ParticipantHi 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.
danieltjohnston
ParticipantHi Ally,
I enabled the debug mode logging.Here’s a copy of the log:
http://www.johnstoncompanies.com/debug.logand the page with the form:
http://www.johnstoncompanies.com/locations/joplin/Thanks.
- This reply was modified 10 years, 2 months ago by
danieltjohnston.
danieltjohnston
ParticipantHi 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);danieltjohnston
ParticipantThanks 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.
danieltjohnston
ParticipantThanks for your help!
danieltjohnston
ParticipantThanks. That worked great.
danieltjohnston
ParticipantThanks 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).
danieltjohnston
ParticipantThanks 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”.
- This reply was modified 10 years, 2 months ago by
- AuthorPosts