-
AuthorPosts
-
January 7, 2019 at 8:13 pm #1051031
I would like to customize the MailChimp script, but cannot find it in all the files. Could you give me the location, file name, class name?
-
This topic was modified 6 years, 10 months ago by
tomherold.
January 9, 2019 at 11:07 am #1051719Hey tomherold,
The mailchimp element can be found in wp-content > themes > enfold > config-templatebuilder > avia-shortcodes > mailchimp > mailchimp.php.
As for the class name, you can use a web inspector to inspect element and check the class names.Best regards,
NikkoJanuary 9, 2019 at 11:42 am #1051737Thank you Nikko!
January 9, 2019 at 12:33 pm #1051783Hi tomherold,
Glad that we could help :)
Let us know if you need further assistance.Best regards,
NikkoJanuary 9, 2019 at 12:53 pm #1051803Hello Nikko,
Well, it probably goes beyond a support question. I added an extra field with the referrer information. Using the php function $_SERVER[‘HTTP_REFERER’]. But it does not work – giving me my own domain name. Probably because of a page change.
January 12, 2019 at 1:28 pm #1053051Hi tomherold,
What do you expect to get adding this code?
Best regards,
VictoriaJanuary 12, 2019 at 2:27 pm #1053087Add this to the function.php file:
// Set Cookie for Referrer
function register_bar_ref_cookie() { if(!isset($_COOKIE['origin_ref'])) { setcookie('origin_ref', $_SERVER['HTTP_REFERER']); } } add_action('init', 'register_bar_ref_cookie');and then this code into mailchimp.php in the subfolder avia-shortcodes:
// Get Referrer if (isset($_COOKIE['origin_ref'])) { $referer = $_COOKIE['origin_ref']; } else { $referer = $_SERVER['HTTP_REFERER']; } $data_to_send = array( 'email_address' => $mail, 'status' => $status, 'interests' => array('xxx-your-code' => true),‘merge_fields’ => array(‘REFER’ => $referer),
);This will give you the original referrer in your MailChimp list (add field REFER in MailChimp).
-
This reply was modified 6 years, 10 months ago by
tomherold.
January 13, 2019 at 11:15 pm #1053438Hi,
Thank u very much for sharing this out.
Best regards,
Basilis -
This topic was modified 6 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
