improvement proposal on session variables use and campaign_id value retrieval

Created on 27 June 2019, over 5 years ago
Updated 11 December 2024, 11 days ago

Hi, I propose some changes on 2 function in mailchimp_ecommerce.module:

  • mailchimp_ecommerce_page_attachments
  • mailchimp_ecommerce_get_campaign_id

The changes on mailchimp_ecommerce_page_attachments are basically a try to do the things in "the Drupal way".
Essentially to prevent unwanted behavior in the presence of aggressive caching like Varnish.

In the mailchimp_ecommerce_get_campaign_id I only add an alter hook to allow other modules to alter the campaign_id.
In the comment I also provided a simple use case:
"you have an audience for B2B and another for B2C customers so you may want to differentiate the campaign automation".

What do you think?

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇹Italy emanuelrighetto Verona

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024