jayk1
Forum Replies Created
-
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] Phone number field not syncsolution found here
https://github.com/mailchimp/mc-woocommerce/issues/725
this should work by putting that exact snippet as is in your theme functions.php file.
/**
* @param array $merge_tags
* @param MailChimp_WooCommerce_Order $order
* @return array
*/
function mailchimp_custom_order_merge_tags($merge_tags, $order) {
// the phone number can be used from either the shipping address, or the billing address.
//$shipping_phone_number = (string) $order->getShippingAddress()->getPhone();
$billing_phone_number = (string) $order->getBillingAddress()->getPhone();// this is what I would do – only supply it if the phone number is there.
if (!empty($billing_phone_number)) {
$merge_tags[‘PHONE’] = $billing_phone_number;
}
// return the merge tags to be submitted.
return $merge_tags;
}add_filter(‘mailchimp_get_ecommerce_merge_tags’, ‘mailchimp_custom_order_merge_tags’, 10, 2);
- This reply was modified 5 years, 4 months ago by jayk1.
Hi, i am facing the same issue.
While troubleshooting, i have the following error
Meaning this would only work when ‘Button text, isn’t blank. correct?
So i added some text. but GA Event still doesn’t trigger.
thoughts?
Forum: Plugins
In reply to: [Contact Form 7] Can’t get custom DOM events to work?@edikitt, side question:
why do you use ‘wpcf7submit’ instead of ‘wpcf7mailsent’?You probably want to track a submission event only when mail has been sent successfully
see more at the plugin source
Forum: Plugins
In reply to: [Simple Shopping Cart] Need buyers to provide their namewould love to know when you figure this out
i also have some data i want to pass to paypal and to be recorded withing the order (hidden field preferred)